2021-09-07 16:14:20 +08:00
|
|
|
@import '../../style/themes/index';
|
|
|
|
@tab-prefix-cls: ~'@{ant-prefix}-tabs';
|
2020-05-30 18:28:25 +08:00
|
|
|
|
|
|
|
.@{tab-prefix-cls} {
|
|
|
|
// ========================== Top & Bottom ==========================
|
|
|
|
&-top,
|
|
|
|
&-bottom {
|
|
|
|
flex-direction: column;
|
|
|
|
|
2020-06-02 11:31:03 +08:00
|
|
|
> .@{tab-prefix-cls}-nav,
|
|
|
|
> div > .@{tab-prefix-cls}-nav {
|
2020-05-30 18:28:25 +08:00
|
|
|
margin: @tabs-bar-margin;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{tab-prefix-cls}-ink-bar {
|
|
|
|
height: 2px;
|
|
|
|
|
|
|
|
&-animated {
|
|
|
|
transition: width @animation-duration-slow, left @animation-duration-slow,
|
|
|
|
right @animation-duration-slow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{tab-prefix-cls}-nav-wrap {
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
left: 0;
|
|
|
|
box-shadow: inset 10px 0 8px -8px fade(@shadow-color, 8%);
|
|
|
|
}
|
|
|
|
&::after {
|
|
|
|
right: 0;
|
|
|
|
box-shadow: inset -10px 0 8px -8px fade(@shadow-color, 8%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.@{tab-prefix-cls}-nav-wrap-ping-left::before {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
&.@{tab-prefix-cls}-nav-wrap-ping-right::after {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-top {
|
2020-06-02 11:31:03 +08:00
|
|
|
> .@{tab-prefix-cls}-nav,
|
|
|
|
> div > .@{tab-prefix-cls}-nav {
|
2020-05-30 18:28:25 +08:00
|
|
|
&::before {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{tab-prefix-cls}-ink-bar {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-bottom {
|
2020-06-02 11:31:03 +08:00
|
|
|
> .@{tab-prefix-cls}-nav,
|
|
|
|
> div > .@{tab-prefix-cls}-nav {
|
2020-05-30 18:28:25 +08:00
|
|
|
order: 1;
|
|
|
|
margin-top: @margin-md;
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{tab-prefix-cls}-ink-bar {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-02 11:31:03 +08:00
|
|
|
> .@{tab-prefix-cls}-content-holder,
|
|
|
|
> div > .@{tab-prefix-cls}-content-holder {
|
2020-05-30 18:28:25 +08:00
|
|
|
order: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================== Left & Right ==========================
|
|
|
|
&-left,
|
|
|
|
&-right {
|
2020-06-02 11:31:03 +08:00
|
|
|
> .@{tab-prefix-cls}-nav,
|
|
|
|
> div > .@{tab-prefix-cls}-nav {
|
2020-05-30 18:28:25 +08:00
|
|
|
flex-direction: column;
|
|
|
|
min-width: 50px;
|
|
|
|
|
|
|
|
// >>>>>>>>>>> Tab
|
|
|
|
.@{tab-prefix-cls}-tab {
|
|
|
|
padding: @tabs-vertical-padding;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2021-03-12 15:36:46 +08:00
|
|
|
.@{tab-prefix-cls}-tab + .@{tab-prefix-cls}-tab {
|
|
|
|
margin: @tabs-vertical-margin;
|
|
|
|
}
|
|
|
|
|
2020-05-30 18:28:25 +08:00
|
|
|
// >>>>>>>>>>> Nav
|
|
|
|
.@{tab-prefix-cls}-nav-wrap {
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
height: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
top: 0;
|
|
|
|
box-shadow: inset 0 10px 8px -8px fade(@shadow-color, 8%);
|
|
|
|
}
|
|
|
|
&::after {
|
|
|
|
bottom: 0;
|
|
|
|
box-shadow: inset 0 -10px 8px -8px fade(@shadow-color, 8%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.@{tab-prefix-cls}-nav-wrap-ping-top::before {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
&.@{tab-prefix-cls}-nav-wrap-ping-bottom::after {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// >>>>>>>>>>> Ink Bar
|
|
|
|
.@{tab-prefix-cls}-ink-bar {
|
|
|
|
width: 2px;
|
|
|
|
|
|
|
|
&-animated {
|
|
|
|
transition: height @animation-duration-slow, top @animation-duration-slow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{tab-prefix-cls}-nav-list,
|
|
|
|
.@{tab-prefix-cls}-nav-operations {
|
2021-04-12 16:22:45 +08:00
|
|
|
flex: 1 0 auto; // fix safari scroll problem
|
2020-05-30 18:28:25 +08:00
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-left {
|
2020-06-02 11:31:03 +08:00
|
|
|
> .@{tab-prefix-cls}-nav,
|
|
|
|
> div > .@{tab-prefix-cls}-nav {
|
2020-05-30 18:28:25 +08:00
|
|
|
.@{tab-prefix-cls}-ink-bar {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-02 11:31:03 +08:00
|
|
|
> .@{tab-prefix-cls}-content-holder,
|
|
|
|
> div > .@{tab-prefix-cls}-content-holder {
|
2020-05-30 18:28:25 +08:00
|
|
|
margin-left: -@border-width-base;
|
|
|
|
border-left: @border-width-base @border-style-base @border-color-split;
|
|
|
|
|
|
|
|
> .@{tab-prefix-cls}-content > .@{tab-prefix-cls}-tabpane {
|
|
|
|
padding-left: @padding-lg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-right {
|
2020-06-02 11:31:03 +08:00
|
|
|
> .@{tab-prefix-cls}-nav,
|
|
|
|
> div > .@{tab-prefix-cls}-nav {
|
2020-05-30 18:28:25 +08:00
|
|
|
order: 1;
|
|
|
|
|
|
|
|
.@{tab-prefix-cls}-ink-bar {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-02 11:31:03 +08:00
|
|
|
> .@{tab-prefix-cls}-content-holder,
|
|
|
|
> div > .@{tab-prefix-cls}-content-holder {
|
2020-05-30 18:28:25 +08:00
|
|
|
order: 0;
|
|
|
|
margin-right: -@border-width-base;
|
|
|
|
border-right: @border-width-base @border-style-base @border-color-split;
|
|
|
|
|
|
|
|
> .@{tab-prefix-cls}-content > .@{tab-prefix-cls}-tabpane {
|
|
|
|
padding-right: @padding-lg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|