/*
 *  Document   : _navtabs.scss
 *  Author     : RedStar Template
 *  Description: This scss file for navbar tabs style classes
 */
@use "../common/mixins" as mix;
@use "../common/variables" as vars;
.nav-tabs {
  border-bottom: 2px solid #eee;

  > li {
    position: relative;
    top: 3px;
    left: -2px;

    > a {
      border: none !important;
      color: #999 !important;
      @include mix.border-radius(0);

      &:hover,
      &:active,
      &:focus {
        background-color: transparent !important;
      }

      &:before {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 0;
        border-bottom: 2px solid #2196f3;
        bottom: 2px;
        @include mix.transform(scaleX(0));
        @include mix.transition(0.1s ease-in);
      }

      .material-icons {
        position: relative;
        top: 7px;
        margin-bottom: 8px;
      }
    }
  }

  li {
    a.active {
      color: #222 !important;

      &:hover,
      &:active,
      &:focus {
        background-color: transparent !important;
      }

      &:before {
        @include mix.transform(scaleX(1));
      }
    }
  }

  + .tab-content {
    padding: 15px 0;
  }
}

@each $key, $val in vars.$colors {
  .nav-tabs.tab-col-#{$key} {
    > li {
      > a {
        &:before {
          border-bottom: 2px solid $val;
        }
      }
    }
  }
}
