@import "../../style/index.less";

@ui-prefix-tabs: yyui-tabs;
@tabs-prefix-cls: ant-tabs;

.@{ui-prefix-tabs}{
    &-popup{
        z-index: 999;
        width: 125px;
        background-color: #fff;
        border: 1px solid #D2D2D2;
        padding: 15px 0;
        text-align:left;
        color: #666;
        background-color: #F8F8F8;
        box-shadow: 1px 1px 4px #eee;
        border-radius: 6px;
        .item{
            cursor: pointer;
            padding: 4px 16px;
            &:hover{
                background-color: #3A86FD;
                color: #fff;
            }
            &.disabled{
                color: #ccc;
                &:hover{
                    background-color: #F8F8F8;
                }
            }
        }
    }
    .@{tabs-prefix-cls} {
        &-ink-bar {
            background-color: @primary-color;
            //height: 3px;
        }
        &-bar {
            border-bottom: 1px solid @border-color-base;
            margin-bottom: 10px;
        }
        &-nav {
            .@{tabs-prefix-cls}-tab {
                &-inner {
                    &:hover {
                        color: tint(@primary-color, 20%);
                    }
                    &:active {
                        color: shade(@primary-color, 5%);
                    }
                }
            }
            .@{tabs-prefix-cls}-tab-active .@{tabs-prefix-cls}-tab-inner {
                color: @primary-color;
            }
        }
        &-page{
            > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab-active {
                    background-color: #fff;
            }
            > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab-inner .anticon-cross {
                margin-right: 0;
                color: #999;
                transition: all 0.3s @ease-in-out;
                transform-origin: 100% 50%;
                width: 0;
                text-align: right;
                vertical-align: middle;
                overflow: hidden;
                &:hover {
                    color: #404040;
                }
            }
            > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab-active .anticon-cross
            ,> .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab:hover .anticon-cross {
                width: 16px;
                transform: translateZ(0);
            }

            &.@{tabs-prefix-cls}-left,
            &.@{tabs-prefix-cls}-right{
                > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab {
                    border-top: 1px solid @border-color-base;
                    margin-bottom: 0;
                }
                .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab:last-child {
                }

            }
            &.@{tabs-prefix-cls}-left,
            &.@{tabs-prefix-cls}-right{
                > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab:first-child {
                    border-left: 1px solid @border-color-base;
                }
            }
            &.@{tabs-prefix-cls}-bottom {
                > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab{
                    margin-right: 0;
                    border-right: 1px solid @border-color-base;
                    border-top: 1px solid @border-color-base;
                }
                .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab-active {
                    border-top-color: transparent;
                }
            }
            &.@{tabs-prefix-cls}-top{
                > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-nav-container {
                    height: auto;
                }
                > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-ink-bar {
                    display: none !important;
                }
                > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab{
                    margin-right: 0;
                    border-radius: 0;
                    border: none;
                    border-right: 1px solid @border-color-base;
                    border-top: 1px solid @border-color-base;
                    padding-top: 2px;
                    transition: none;
                }
                > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab:first-child {
                    border-left: 1px solid @border-color-base;
                }
                > .@{tabs-prefix-cls}-bar .@{tabs-prefix-cls}-tab-active {
                    padding-top: 0;
                    border-top: 3px solid @primary-color;
                }
            }
        }
    }
}
//.@{ui-prefix-tabs}{
//    >.@{tabs-prefix-cls} {
//        // card style
//        &-card > &-bar &-nav-container {
//            height: 36px;
//        }
        //&&-card > &-bar &-ink-bar {
        //    visibility: hidden;
        //}
        //&&-card > &-bar &-tab {
        //    border-radius: 0;
        //    margin: 0;
        //}
        //&&-card > &-bar &-tab-inner {
        //    padding: 7px 16px 6px;
        //    transition: all 0.3s @ease-in-out;
        //}
        //&&-card > &-bar &-tab-active {
        //    background: #fff;
        //    transform: translateZ(0);
        //    border-color: @border-color-base;
        //    color: @primary-color;
        //}
        //&&-card > &-bar &-tab-active &-tab-inner {
        //    padding-bottom: 7px;
        //    transform: translateZ(0);
        //}
        //&&-card > &-bar &-nav-wrap {
        //    margin-bottom: 0;
        //}
        //&&-card > &-bar &-tab-inner .anticon-cross {
        //    margin-right: 0;
        //    color: #999;
        //    transition: all 0.3s @ease-in-out;
        //    transform-origin: 100% 50%;
        //    width: 0;
        //    text-align: right;
        //    vertical-align: middle;
        //    overflow: hidden;
        //    &:hover {
        //        color: #404040;
        //        font-weight: bold;
        //    }
        //}
//    }
//}

