////////tab分页////////
// 主容器
.d-tabs {
  background: @sys-color-snow;
}
// 标签导航
.d-tabs-nav {
  position: relative;
  height: @base-bar-height;
  white-space: nowrap;
  font-size: 0;
  transition: all @sys-duration-sm;
  .d-nav-list {
    position: relative;
  }
  .d-nav-item {
    position: relative;
    display: inline-block;
    padding: @sys-padding-horizontal-xs @sys-padding-horizontal-sm;
    min-width: 60px;
    max-width: 240px;
    vertical-align: middle;
    font-size: 14px;
    transition: all @sys-duration-sm;
    line-height: @base-bar-height - @sys-padding-horizontal-xs * 2;
    cursor: pointer;
  }
  .d-nav-item-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
  }
}
// 标签内容面板
.d-tabs-paner {
  .d-paner-item {
    display: none;
    &.active{
      display: block;
    }
  }
}

// 选项卡样式
.d-tabs-card {
  height: @base-bar-height;
  white-space: nowrap;
  font-size: 0;
  border-bottom: 1px solid @color-border;
  transition: all @sys-duration-sm;
  .d-nav-item {
    position: relative;
    display: inline-block;
    padding: 0 @sys-padding-horizontal-sm;
    min-width: 60px;
    vertical-align: middle;
    font-size: 14px;
    transition: all @sys-duration-sm;
    line-height: @base-bar-height;
    text-align: center;
    cursor: pointer;
    &.active:after {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: @base-bar-height;
      border-width: 1px;
      border-style: solid;
      border-color: @color-border;
      border-bottom-color: #fff;
      border-radius: 2px 2px 0 0;
      box-sizing: border-box;
      pointer-events: none;
    }
  }
}

// 下划线
.d-tabs,.d-tabs-underline {
  .d-tabs-nav {
    display: flex;
    &:after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 1px;
      background-color: #e4e7ed;
      z-index: 1;
    }
    .d-nav-item {
      &.active {
        color: @color-theme;
        &:after {
          content: "";
          position: absolute;
          left: @sys-padding-horizontal-sm;
          right: @sys-padding-horizontal-sm;
          bottom: 0;
          height: 2px;
          background-color: @color-theme;
          z-index: 1;
        }
      }
      &:hover {
        color: @color-theme;
      }
    }
  }
  .d-nav-list {
    flex: 1;
    overflow: auto;
    overflow-y: hidden;
  }
  .d-nav-container {
    white-space: nowrap;
    position: relative;
    transition: transform .3s;
    float: left;
    z-index: 2;
  }
  .d-paner-item-content {
    padding: @sys-padding-vertical-xs 0;
  }
}
.d-tabs-beforeline {
  .d-tabs-nav {
    &:after {
      left: 0;
      bottom: auto;
      top: 0;
    }
    .d-nav-item {
      &.active {
        color: @color-theme;
        &:after {
          top: 0;
          bottom: auto;
        }
      }
    }
  }
}
.d-tabs-leftline,.d-tabs-rightline {
  .d-tabs-nav {
    display: flex;
    flex-direction: column;
    min-width: 24px;
    height: auto;
    &:after {
      content: "";
      position: absolute;
      left: 0;
      right: auto;
      top: 0;
      bottom: 0;
      width: 1px;
      height: 100%;
      background-color: #e4e7ed;
      z-index: 1;
    }
    .d-nav-item {
      display: block;
      &.active {
        color: @color-theme;
        &:after {
          content: "";
          position: absolute;
          top: 0;
          bottom: 0;
          left: 0;
          right: auto;
          width: 2px;
          height: auto;
          background-color: @color-theme;
          z-index: 1;
        }
      }
      &:hover {
        color: @color-theme;
      }
      .d-nav-item-text {
        text-align: left;
      }
    }
  }
}
.d-tabs-rightline {
  .d-tabs-nav {
    &:after {
      right: 0;
      left: auto;
    }
    .d-nav-item {
      &.active {
        &:after {
          right: 0;
          left: auto;
        }
      }
    }
  }
}

// 头部与底部
.d-tabs,.d-tabs-top,.d-tabs-bottom {
  flex-direction: column;
}
.d-tabs-bottom {
  flex-direction: column-reverse;
}

// 左侧与右侧
.d-tabs-side-left,.d-tabs-side-right {
  display: flex;
  .d-nav-list {
    flex: 1;
    overflow: auto;
    overflow-x: hidden;
  }
  .d-nav-container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    white-space: nowrap;
    transition: transform .3s;
    z-index: 2;
  }
  .d-tabs-paner {
    flex: 1;
  }
  .d-paner-item-content {
    padding: 0 @sys-padding-horizontal-sm;
  }
}
.d-tabs-side-left {
  flex-direction: row;
}
.d-tabs-side-right {
  flex-direction: row-reverse;
}

////////扩展////////