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.

245 lines
4.6 KiB

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