@import (reference) '~antd/lib/style/themes/default';

@prefix: sula-tabs;

@tab-padding: 17px 16px 18px 16px;

.@{prefix} {
  .ant-tabs-bar {
    .tabBar();
  }

  .ant-tabs-tab {
    padding: @tab-padding; // height 56px 与 card tabs一致
  }

  &-split {
    .ant-tabs-bar {
      margin-bottom: 8px;
    }
  }

  &-card {
    .ant-tabs-bar {
      margin-bottom: 0;
    }
  }

  /** plugin style */
  &-tab {
    &-bars {
      position: relative;
      display: flex;
      overflow: hidden;
      color: @text-color;
      border-bottom: 1px solid @border-color-split;  // #e8e8e8
      .tabBar();
    }

    &-bar {
      margin-right: 32px;
      padding: @tab-padding;
      cursor: pointer;
    }

    &-line {
      position: absolute;
      bottom: 0;
      left: 0;
      width: auto;
      border-bottom: 2px solid @primary-color;
      transition: .3s ease-in-out;
    }

    &-split {
      margin-top: 8px;
    }

    &-card {
      padding: 24px;
      background: #FFF;
    }
  }
}


.tabBar {
  padding: 0 24px;
  background: #FFF;
  border-radius: 2px;
}