@charset "UTF-8";
@import "../theme/variables";
@import "~@jereation/sass-helpers/_mixins";

.vui-tab {
  @include display-flex;
  height: map-get($tab, height);
  text-align: center;
  background-color: #f7f7f8;
  &:not(.vui-tab-header):before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: #c0bfc4;
  }
  &:not(.vui-tab-footer):after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #c0bfc4;
  }
}

.vui-tab-header, .vui-tab-footer {
  position: absolute;
  right: 0;
  left: 0;
}

.vui-tab-header {
  top: 0;
}

.vui-tab-footer {
  bottom: 0;
}

.vui-tab-item {
  position: relative;
  @include display-flex;
  @include flex-direction(column);
  @include flex;
  color: #444;
  &.vui-activated {
    .vui-tab-icon, .vui-tab-title {
      color: map-get($tab, activated-color);
    }
  }
  .vui-badge{
    position: absolute;
    top: .1rem;
    left: 50%;
    min-width: .8rem;
    height: .8rem;
    margin-left: .1rem;
    padding: 0 .2rem;
    font-size: .6rem;
    line-height: .8rem;
    border-radius: .5rem;
    vertical-align: top;
    color: white;
    background-color: red;
  }
}

.vui-tab-icon {
  @include flex;
  font-size: 1.2rem;
  margin-top: .3rem;
  text-align: center;
  word-wrap: break-word;
  color: #929292;
  overflow: hidden;
}

.vui-tab-title {
  line-height: 1rem;
  font-size: 0.55rem;
  text-align: center;
  color: #929292;
}
