@use "common";

/***没有nav下划线***/
.tabs-nav-no-wrap {
    .el-tabs__nav-wrap::after {
        height: 0px !important;
        width: 0px !important;
    }
}

/***nav as card***/
.tabs-header-as-card {
    .el-tabs__header:not(.disinheritance .el-tabs__header) {
        @extend .background-as-card;
        padding: 2px;
    }
}

/***作为按钮样式的tabs-bar***/
/*选中无下划线*/
.tabs-bar-as-btn {
    .el-tabs__active-bar:not(.disinheritance .el-tabs__active-bar) {
        height: 0px;
    }

    /*定义字体*/
    .el-tabs__item:not(.disinheritance .el-tabs__item) {
        @extend .text-title-2;
        color: var(--text-primary-80-color);
    }

    /*激活时按钮样式*/
    .el-tabs__item.is-active:not(.disinheritance .el-tabs__item) {
        @extend .text-title-1-bold;
        color: var(--color-primary-100);
        border-width: 1px;
        border-style: solid;
        border-color: var(--color-primary-35);
        border-radius: 10px;
        background-color: var(--color-primary-2);
    }
}

/***允许tab-pane内部元素溢出***/
.tab-pane-overflow-visible {
    .el-tab-pane {
        overflow: visible !important;
    }

    // 同时确保父容器也允许溢出
    .el-tabs__content {
        overflow: visible !important;
    }
}

/***tabs-bar左边悬浮***/
.left-float-nav-tabs {
    .el-tabs__header.is-left {
        position: absolute;
        left: -140px;
        top: 0px;

        .el-tabs__nav {
            gap: 16px;
        }

        .el-tabs__active-bar {
            background-color: transparent;
            right: 12px;
            top: 11px;
            height: 8px !important;
            border-top: 6px solid transparent;
            /* 顶部边框透明 */
            border-bottom: 6px solid transparent;
            /* 底部边框透明 */
            border-left: 8px solid var(--bg-white-100);
            /* 左侧边框有颜色 */
        }
    }

    .el-tabs__item.is-left {
        @extend .text-tip-1;
        color: var(--text-primary-65-color);
        height: 32px;
        padding: 4px 26px 4px 28px;
        border-radius: 16px 16px 16px 16px;
        justify-content: center;
    }

    .el-tabs__item.is-left.is-active {
        color: var(--bg-white-100);
        background-color: var(--color-primary-100);
    }
}