@import '../../app.less';

.tabs.border {
  border-bottom: 1px solid @line_color;
}

.tabs.line {
  text-align: center;
  height: 44px;
  line-height: 44px;
  background: #fff;

  .tab {
    display: inline-block;
    position: relative;
    text-align: center;
    color: @base_color;
    width: 120px;
    margin: 0 30px;
    cursor: pointer;
  }

  .tab::after {
    content: '';
    width: 0;
    height: 4px;
    background: @theme_color;
    transform: translateX(-50%);
    transition: all 0.25s;
    position: absolute;
    bottom: 0;
    left: 50%;
  }

  .tab:hover,
  .tab.active {
    color: @theme_color;
  }

  .tab:hover::after,
  .tab.active::after {
    width: 100%;
  }
}

.tabs.card {
  display: flex;
  text-align: center;
  height: 44px;
  line-height: 44px;
  background: @theme_bg_color;

  a {
    display: inline-block;
    flex: 1;
  }

  .tab {
    width: 100%;
    display: inline-block;
    position: relative;
    text-align: center;
    color: @base_color;
    cursor: pointer;
  }

  .tab::after {
    content: '';
    width: 0;
    height: 4px;
    background: @theme_color;
    transform: translateX(-50%);
    position: absolute;
    top: 0;
    left: 50%;
  }

  .tab:hover,
  .tab.active {
    color: @theme_color;
    background: #fff;
  }

  .tab:hover::after,
  .tab.active::after {
    width: 100%;
  }
}

.tabs.text {
  height: 44px;
  line-height: 44px;
  padding-left: 44px;
  background: #fff;

  .tab {
    display: inline-block;
    position: relative;
    text-align: center;
    color: @base_color;
    margin: 0 13px;
    cursor: pointer;
  }

  .tab::after {
    content: '';
    width: 1px;
    height: 20px;
    background: @line_color;
    position: absolute;
    top: 12px;
    right: -13px;
  }

  .tab:hover,
  .tab.active {
    color: @theme_color;
  }

  a:nth-last-child(1) {
    .tab::after {
      display: none;
    }
  }
}