You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
260 lines
4.9 KiB
260 lines
4.9 KiB
@tabPrefixClass: ant-tabs;
|
|
|
|
@effect-duration: .3s;
|
|
|
|
.@{tabPrefixClass} {
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
|
|
&-ink-bar {
|
|
z-index: 1;
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0;
|
|
box-sizing: border-box;
|
|
height: 2px;
|
|
background-color: @primary-color;
|
|
transform: scaleX(1);
|
|
transform-origin: 0 0;
|
|
&-transition-forward {
|
|
transition: right 0.3s @ease-in-out,
|
|
left 0.3s @ease-in-out 0.3s * 0.3;
|
|
}
|
|
&-transition-backward {
|
|
transition: right 0.3s @ease-in-out 0.3s * 0.3,
|
|
left 0.3s @ease-in-out;
|
|
}
|
|
}
|
|
|
|
&-nav-container {
|
|
font-size: 14px;
|
|
line-height: @line-height-base;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
position: relative;
|
|
white-space: nowrap;
|
|
border-bottom: 1px solid #e9e9e9;
|
|
margin-bottom: 15px;
|
|
.clearfix;
|
|
}
|
|
|
|
&-nav-container-scrolling {
|
|
padding-left: 32px;
|
|
padding-right: 32px;
|
|
}
|
|
|
|
&-tab-prev, &-tab-next {
|
|
user-select: none;
|
|
z-index: 2;
|
|
margin-right: -2px;
|
|
margin-top: 1px;
|
|
width: 32px;
|
|
height: 100%;
|
|
line-height: 32px;
|
|
cursor: pointer;
|
|
border: none;
|
|
background-color: transparent;
|
|
position: absolute;
|
|
text-align: center;
|
|
|
|
&-icon {
|
|
position: relative;
|
|
display: inline-block;
|
|
font-style: normal;
|
|
font-weight: bold;
|
|
font-variant: normal;
|
|
line-height: inherit;
|
|
vertical-align: baseline;
|
|
text-align: center;
|
|
text-transform: none;
|
|
font-family: sans-serif;
|
|
font-size: 12px;
|
|
|
|
&:before {
|
|
display: block;
|
|
font-family: "anticon" !important;
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
color: tint(@primary-color, 20%);
|
|
}
|
|
}
|
|
|
|
&-tab-btn-disabled {
|
|
cursor: default;
|
|
color: #ccc;
|
|
pointer-events: none;
|
|
}
|
|
|
|
&-tab-next {
|
|
right: 2px;
|
|
|
|
&-icon:before {
|
|
content: "\e611";
|
|
}
|
|
}
|
|
|
|
&-tab-prev {
|
|
left: 0;
|
|
transform: rotate(180deg);
|
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
|
|
&-icon:before {
|
|
content: "\e611";
|
|
}
|
|
|
|
:root & {
|
|
filter: none;
|
|
}
|
|
}
|
|
|
|
&-nav-wrap {
|
|
width: 100%;
|
|
overflow: hidden;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
&-nav-scroll {
|
|
width: 99999px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
&-nav {
|
|
box-sizing: border-box;
|
|
padding-left: 0;
|
|
transition: left 0.5s @ease-in-out;
|
|
position: relative;
|
|
margin: 0;
|
|
list-style: none;
|
|
float: left;
|
|
|
|
&:before, &:after {
|
|
display: table;
|
|
content: " ";
|
|
}
|
|
|
|
&:after {
|
|
clear: both;
|
|
}
|
|
|
|
div.@{tabPrefixClass}-tab-active {
|
|
> a, > a:hover, > a:focus {
|
|
color: tint(@primary-color, 20%);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
div.@{tabPrefixClass}-tab-disabled {
|
|
pointer-events: none;
|
|
cursor: default;
|
|
|
|
a {
|
|
color: #ccc;
|
|
}
|
|
}
|
|
|
|
.@{tabPrefixClass}-tab {
|
|
float: left;
|
|
height: 100%;
|
|
margin-right: 28px;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
|
|
> a {
|
|
padding: 8px 20px;
|
|
transition: color 0.3s @ease-in-out;
|
|
display: block;
|
|
color: #666;
|
|
|
|
.anticon {
|
|
width: 14px;
|
|
height: 14px;
|
|
margin-right: 8px;
|
|
top: -1px;
|
|
}
|
|
|
|
}
|
|
|
|
> a:hover {
|
|
color: tint(@primary-color, 30%);
|
|
cursor: pointer;
|
|
}
|
|
|
|
> a:hover, > a:focus {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-mini &-nav-container {
|
|
font-size: 12px;
|
|
}
|
|
|
|
&-mini &-tab {
|
|
margin-right: 24px;
|
|
> a {
|
|
padding: 8px 16px;
|
|
}
|
|
}
|
|
|
|
&-tabpane-hidden {
|
|
display: none;
|
|
}
|
|
|
|
&-content {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
&-slide-horizontal-backward-enter {
|
|
display: block !important;
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
&-slide-horizontal-backward-enter&-slide-horizontal-backward-enter-active {
|
|
transform: translateX(0);
|
|
transition: transform @effect-duration @ease-in-out;
|
|
}
|
|
|
|
&-slide-horizontal-backward-leave {
|
|
display: block !important;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
transform: translateX(0);
|
|
}
|
|
|
|
&-slide-horizontal-backward-leave&-slide-horizontal-backward-leave-active {
|
|
transform: translateX(100%);
|
|
transition: transform @effect-duration @ease-in-out;
|
|
}
|
|
|
|
&-slide-horizontal-forward-enter {
|
|
display: block !important;
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
&-slide-horizontal-forward-enter&-slide-horizontal-forward-enter-active {
|
|
transform: translateX(0);
|
|
transition: transform @effect-duration @ease-in-out;
|
|
}
|
|
|
|
&-slide-horizontal-forward-leave {
|
|
display: block !important;
|
|
position: absolute;
|
|
transform: translateX(0);
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
&-slide-horizontal-forward-leave&-slide-horizontal-forward-leave-active {
|
|
transform: translateX(-100%);
|
|
transition: transform @effect-duration @ease-in-out;
|
|
}
|
|
}
|
|
|