@import "src/assets/css/variable";
.nav-bar {
  display: flex;
  position: fixed;
  width: 100%;
  height: 50px;
  bottom: 0;
  left: 0;
  z-index: 50;
  background: $white;
  //border-top: 1px solid #ddd;

  .index-icon {
    background-image: url("./image/grey_sy_icon.png");
  }

  .index-icon-active {
    background-image: url("./image/sy_icon.png");
  }

  .classify-icon {
    background-image: url("./image/grey_liebiao_ed_icon.png");
  }

  .classify-icon-active {
    background-image: url("./image/liebiao_ed_icon.png");
  }

  .study-icon {
    background-image: url("./image/grey_study_icon.png");
  }

  .study-icon-active {
    background-image: url("./image/study_icon.png");
  }

  .my-icon {
    background-image: url("./image/grey_my_icon.png");
  }

  .my-icon-active {
    background-image: url("./image/my.png");
  }

  .icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-bottom: 4px;
  }

  .nav-item {
    flex: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    line-height: 1;
    color: #666;
    font-size: 12px;

    &.active {
      color: $active;
    }
  }

  &:after {
    content: " ";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background-image: linear-gradient(0deg, #ddd 50%, transparent 50%);
  }
}
