.nut-theme-dark {
  .nut-tabs {
    &__titles {
      background: $dark-background3;
      &-item {
        color: $dark-color-gray;
        &.active {
          color: $dark-color;
        }
      }
    }
    &.vertical {
      .nut-tabs__titles {
        &-item {
          &.active {
            background-color: $dark-background2;
          }
        }
      }
    }
  }
}
.nut-tabs {
  display: flex;
  overflow: hidden;
  &.horizontal {
    flex-direction: column;
  }
  &.vertical {
    flex-direction: row;
    width: 100%;
    .nut-tabs__titles {
      flex-direction: column;
      height: 100%;
      padding: 10px 0 !important;
      width: $tabs-vertical-titles-width;
      flex-shrink: 0;
      .nut-tabs__list {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
      }
      &.scrollable {
        overflow-x: hidden;
        overflow-y: auto;
        .nut-tabs__titles-item {
          padding: 0 10px 0 15px;
        }
      }
      &.scroll-vertical {
        overflow-y: scroll;
        height: auto;
        .nut-tabs__titles-placeholder {
          height: 22px;
        }
      }
      &-item {
        height: $tabs-vertical-titles-item-height;
        flex: none;
        &__smile {
          transition: width 0.3s ease;
        }
        &__line {
          bottom: none;
          transform: translate(0, -50%);
          transition: height 0.3s ease;
          width: 0;
          height: 0;
        }
        &.active {
          background-color: #fff;

          .nut-tabs__titles-item__line {
            left: 10px;
            width: 3px;
            background: $tabs-vertical-tab-line-color;
            height: $tabs-vertical-titles-item-active-line-height;
          }
          .nut-tabs__titles-item__smile {
            right: -2px;
            bottom: 2px;
            left: auto;
            width: 3px;
            transform: rotate(320deg);
            height: $tabs-vertical-titles-item-active-line-height;
          }
        }
      }
    }
    .nut-tabs__content {
      flex: 1;
      flex-direction: column;
      .nut-tabpane {
        height: 100%;
      }
    }
  }

  &__titles {
    height: $tabs-horizontal-titles-height;
    padding: 0 10px;
    display: flex;
    user-select: none;
    background: $tabs-titles-background-color;
    border-radius: $tabs-titles-border-radius;
    flex-shrink: 0;
    .nut-tabs__list {
      width: 100%;
      height: $tabs-horizontal-titles-height;
      display: flex;
      flex-shrink: 0;
    }
    &.large {
      .nut-tabs__titles-item {
        font-size: $tabs-titles-item-large-font-size;
      }
    }
    &.normal {
      .nut-tabs__titles-item {
        font-size: $tabs-titles-item-font-size;
      }
    }
    &.small {
      .nut-tabs__titles-item {
        font-size: $tabs-titles-item-small-font-size;
      }
    }
    &::-webkit-scrollbar {
      display: none;
      width: 0;
      background: transparent;
    }

    &.smile {
      .nut-tabs__titles-item {
        &.active {
          .nut-tabs__titles-item__smile {
            width: 20px;
            height: 8px;
          }
        }
      }
    }
    &.scrollable {
      overflow-x: auto;
      overflow-y: hidden;
      .nut-tabs__titles-item {
        width: auto;
      }
    }
    &-item {
      position: relative;
      font-size: $tabs-titles-item-font-size;
      flex: 1 0 auto;
      min-width: $tabs-horizontal-titles-item-min-width;
      width: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: $tabs-titles-item-color;
      &__text {
        &.ellipsis {
          @include oneline-ellipsis();
        }
        text-align: center;
      }
      &__smile,
      &__line {
        position: absolute;
        transition: width 0.3s ease;
        width: 0;
        height: 0;
        content: ' ';
        bottom: 15%;
        left: 50%;
        transform: translate(-50%, 0);
        overflow: hidden;
        border-radius: $tabs-titles-item-line-border-radius;
        opacity: $tabs-titles-item-line-opacity;
      }

      &__smile {
        .nut-icon {
          position: absolute;
          font-size: 12px;
          width: 100%;
          height: 100%;
          color: $tabs-tab-smile-color;
        }
      }

      &.disabled {
        color: $disable-color;
      }
      &.active {
        font-weight: 600;
        color: $tabs-titles-item-active-color;
        .nut-tabs__titles-item__line {
          content: ' ';
          width: $tabs-horizontal-titles-item-active-line-width;
          height: 3px;
          background: $tabs-horizontal-tab-line-color;
        }
      }
    }
  }
  &__content {
    display: flex;
    box-sizing: border-box;
  }
}
.tabs-scrollview {
  white-space: nowrap;
}
.nut-tabs__titles-item {
  &.nut-tabs__titles-placeholder {
    width: auto;
    min-width: 10px;
  }
  .taro {
    height: 46px;
    line-height: 46px;
  }
}
