antd
Version:
An enterprise-class UI design language and React-based implementation
515 lines (514 loc) • 14.3 kB
CSS
.ant-tabs {
box-sizing: border-box;
position: relative;
overflow: hidden;
zoom: 1;
color: #666;
}
.ant-tabs:before,
.ant-tabs:after {
content: " ";
display: table;
}
.ant-tabs:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
.ant-tabs-bar {
outline: none;
}
.ant-tabs-ink-bar {
z-index: 1;
position: absolute;
left: 0;
bottom: 1px;
box-sizing: border-box;
height: 2px;
background-color: #2db7f5;
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
-webkit-transform-origin: 0 0;
-ms-transform-origin: 0 0;
transform-origin: 0 0;
}
.ant-tabs-bar {
border-bottom: 1px solid #d9d9d9;
margin-bottom: 16px;
}
.ant-tabs-nav-container {
overflow: hidden;
font-size: 14px;
line-height: 1.5;
box-sizing: border-box;
position: relative;
white-space: nowrap;
margin-bottom: -1px;
zoom: 1;
}
.ant-tabs-nav-container:before,
.ant-tabs-nav-container:after {
content: " ";
display: table;
}
.ant-tabs-nav-container:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
.ant-tabs-nav-container-scrolling {
padding-left: 32px;
padding-right: 32px;
}
.ant-tabs-tab-prev,
.ant-tabs-tab-next {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: 2;
margin-right: -2px;
margin-top: 3px;
width: 32px;
height: 100%;
line-height: 32px;
cursor: pointer;
border: 0;
background-color: transparent;
position: absolute;
text-align: center;
color: #999;
-webkit-transition: color 0.3s ease;
transition: color 0.3s ease;
}
.ant-tabs-tab-prev:hover,
.ant-tabs-tab-next:hover {
color: #666;
}
.ant-tabs-tab-prev-icon,
.ant-tabs-tab-next-icon {
position: relative;
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;
display: inline-block;
font-size: 12px;
font-size: 10px \9;
-webkit-transform: scale(0.83333333) rotate(0deg);
-ms-transform: scale(0.83333333) rotate(0deg);
transform: scale(0.83333333) rotate(0deg);
/* IE6-IE8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)";
zoom: 1;
}
:root .ant-tabs-tab-prev-icon,
:root .ant-tabs-tab-next-icon {
-webkit-filter: none;
filter: none;
}
:root .ant-tabs-tab-prev-icon,
:root .ant-tabs-tab-next-icon {
font-size: 12px;
}
.ant-tabs-tab-prev-icon:before,
.ant-tabs-tab-next-icon:before {
display: block;
font-family: "anticon" ;
}
.ant-tabs-tab-btn-disabled {
cursor: not-allowed;
}
.ant-tabs-tab-btn-disabled,
.ant-tabs-tab-btn-disabled:hover {
color: #ccc;
}
.ant-tabs-tab-next {
right: 2px;
}
.ant-tabs-tab-next-icon:before {
content: "\e600";
}
.ant-tabs-tab-prev {
left: 0;
}
.ant-tabs-tab-prev-icon:before {
content: "\e601";
}
:root .ant-tabs-tab-prev {
-webkit-filter: none;
filter: none;
}
.ant-tabs-nav-wrap {
overflow: hidden;
margin-bottom: -1px;
}
.ant-tabs-nav-scroll {
overflow: hidden;
white-space: nowrap;
}
.ant-tabs-nav {
box-sizing: border-box;
padding-left: 0;
-webkit-transition: -webkit-transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: -webkit-transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
position: relative;
margin: 0;
list-style: none;
float: left;
}
.ant-tabs-nav:before,
.ant-tabs-nav:after {
display: table;
content: " ";
}
.ant-tabs-nav:after {
clear: both;
}
.ant-tabs-nav .ant-tabs-tab-disabled {
pointer-events: none;
cursor: default;
}
.ant-tabs-nav .ant-tabs-tab-disabled .ant-tabs-tab-inner {
color: #ccc;
}
.ant-tabs-nav .ant-tabs-tab {
display: inline-block;
height: 100%;
margin-right: 24px;
box-sizing: border-box;
position: relative;
}
.ant-tabs-nav .ant-tabs-tab-inner {
padding: 8px 20px;
-webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
display: block;
cursor: pointer;
text-decoration: none;
}
.ant-tabs-nav .ant-tabs-tab-inner:hover {
color: #57c5f7;
}
.ant-tabs-nav .ant-tabs-tab-inner:active {
color: #2baee9;
}
.ant-tabs-nav .ant-tabs-tab-inner .anticon {
width: 14px;
height: 14px;
margin-right: 8px;
}
.ant-tabs-nav .ant-tabs-tab-active .ant-tabs-tab-inner {
color: #2db7f5;
}
.ant-tabs-mini .ant-tabs-nav-container {
font-size: 12px;
}
.ant-tabs-mini .ant-tabs-tab {
margin-right: 0;
}
.ant-tabs-mini .ant-tabs-tab .ant-tabs-tab-inner {
padding: 8px 16px;
}
.ant-tabs-tabpane-hidden {
display: none;
}
.ant-tabs-content {
position: relative;
width: 100%;
}
.ant-tabs-slide-horizontal-backward-enter {
-webkit-animation-duration: .2s;
animation-duration: .2s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-play-state: paused;
animation-play-state: paused;
-webkit-animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
opacity: 0;
-webkit-animation-duration: 0.4s;
animation-duration: 0.4s;
}
.ant-tabs-slide-horizontal-backward-enter.ant-tabs-slide-horizontal-backward-enter-active {
-webkit-animation-name: antMoveLeftIn;
animation-name: antMoveLeftIn;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation-play-state: running;
animation-play-state: running;
}
.ant-tabs-slide-horizontal-backward-leave {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
-webkit-animation-duration: .2s;
animation-duration: .2s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-play-state: paused;
animation-play-state: paused;
-webkit-animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
-webkit-animation-duration: 0.4s;
animation-duration: 0.4s;
}
.ant-tabs-slide-horizontal-backward-leave.ant-tabs-slide-horizontal-backward-leave-active {
-webkit-animation-name: antMoveRightOut;
animation-name: antMoveRightOut;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation-play-state: running;
animation-play-state: running;
}
.ant-tabs-slide-horizontal-forward-enter {
-webkit-animation-duration: .2s;
animation-duration: .2s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-play-state: paused;
animation-play-state: paused;
-webkit-animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
opacity: 0;
-webkit-animation-duration: 0.4s;
animation-duration: 0.4s;
}
.ant-tabs-slide-horizontal-forward-enter.ant-tabs-slide-horizontal-forward-enter-active {
-webkit-animation-name: antMoveRightIn;
animation-name: antMoveRightIn;
-webkit-animation-play-state: running;
animation-play-state: running;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
.ant-tabs-slide-horizontal-forward-leave {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
-webkit-animation-duration: .2s;
animation-duration: .2s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
-webkit-animation-duration: 0.4s;
animation-duration: 0.4s;
-webkit-animation-play-state: paused;
animation-play-state: paused;
-webkit-animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
}
.ant-tabs-slide-horizontal-forward-leave.ant-tabs-slide-horizontal-forward-leave-active {
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation-name: antMoveLeftOut;
animation-name: antMoveLeftOut;
-webkit-animation-play-state: running;
animation-play-state: running;
}
.ant-tabs-vertical > .ant-tabs-bar {
border-bottom: 0;
}
.ant-tabs-vertical > .ant-tabs-bar .ant-tabs-tab {
float: none;
margin-right: 0;
margin-bottom: 16px;
display: block;
}
.ant-tabs-vertical > .ant-tabs-bar .ant-tabs-tab:last-child {
margin-bottom: 0;
}
.ant-tabs-vertical > .ant-tabs-bar .ant-tabs-tab .ant-tabs-tab-inner {
padding: 8px 24px;
}
.ant-tabs-vertical > .ant-tabs-bar .ant-tabs-nav-scroll {
width: auto;
}
.ant-tabs-vertical > .ant-tabs-bar .ant-tabs-nav-container {
margin-bottom: 0;
}
.ant-tabs-vertical > .ant-tabs-bar .ant-tabs-nav-wrap {
margin-bottom: 0;
}
.ant-tabs-vertical > .ant-tabs-bar .ant-tabs-ink-bar {
width: 2px;
left: auto;
height: auto;
top: 0;
}
.ant-tabs-vertical > .ant-tabs-content {
overflow: hidden;
width: auto;
}
.ant-tabs-vertical.ant-tabs-left > .ant-tabs-bar {
float: left;
border-right: 1px solid #e9e9e9;
margin-right: -1px;
margin-bottom: 0;
}
.ant-tabs-vertical.ant-tabs-left > .ant-tabs-bar .ant-tabs-tab .ant-tabs-tab-inner {
text-align: right;
}
.ant-tabs-vertical.ant-tabs-left > .ant-tabs-bar .ant-tabs-nav-container {
margin-right: -1px;
}
.ant-tabs-vertical.ant-tabs-left > .ant-tabs-bar .ant-tabs-nav-wrap {
margin-right: -1px;
}
.ant-tabs-vertical.ant-tabs-left > .ant-tabs-bar .ant-tabs-ink-bar {
right: 1px;
}
.ant-tabs-vertical.ant-tabs-left > .ant-tabs-content {
padding-left: 24px;
border-left: 1px solid #e9e9e9;
}
.ant-tabs-vertical.ant-tabs-right > .ant-tabs-bar {
float: right;
border-left: 1px solid #e9e9e9;
margin-left: -1px;
margin-bottom: 0;
}
.ant-tabs-vertical.ant-tabs-right > .ant-tabs-bar .ant-tabs-nav-container {
margin-left: -1px;
}
.ant-tabs-vertical.ant-tabs-right > .ant-tabs-bar .ant-tabs-nav-wrap {
margin-left: -1px;
}
.ant-tabs-vertical.ant-tabs-right > .ant-tabs-bar .ant-tabs-ink-bar {
left: 1px;
}
.ant-tabs-vertical.ant-tabs-right > .ant-tabs-content {
padding-right: 24px;
border-right: 1px solid #e9e9e9;
}
.ant-tabs-bottom > .ant-tabs-bar {
margin-bottom: 0;
margin-top: 16px;
}
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-nav-container {
height: 36px;
}
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-ink-bar {
visibility: hidden;
}
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab {
margin: 0;
border: 1px solid #d9d9d9;
border-bottom: 0;
border-radius: 6px 6px 0 0;
-webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
background: #f9f9f9;
margin-right: 2px;
}
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-inner {
padding: 7px 16px 6px;
-webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active {
background: #fff;
-webkit-transform: translateZ(0);
transform: translateZ(0);
border-color: #d9d9d9;
color: #2db7f5;
}
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active .ant-tabs-tab-inner {
padding-bottom: 7px;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-nav-wrap {
margin-bottom: 0;
}
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-inner .anticon-cross {
margin-right: 0;
color: #999;
-webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
display: inline-block;
font-size: 12px;
font-size: 9px \9;
-webkit-transform: scale(0.75) rotate(0deg);
-ms-transform: scale(0.75) rotate(0deg);
transform: scale(0.75) rotate(0deg);
/* IE6-IE8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)";
zoom: 1;
-webkit-transform-origin: 100% 50%;
-ms-transform-origin: 100% 50%;
transform-origin: 100% 50%;
width: 0;
text-align: right;
vertical-align: middle;
overflow: hidden;
}
:root .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-inner .anticon-cross {
-webkit-filter: none;
filter: none;
}
:root .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-inner .anticon-cross {
font-size: 12px;
}
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-inner .anticon-cross:hover {
color: #404040;
font-weight: bold;
}
.ant-tabs.ant-tabs-editable-card > .ant-tabs-bar .ant-tabs-tab:not(.ant-tabs-tab-active):hover .ant-tabs-tab-inner {
padding-left: 8px;
padding-right: 8px;
}
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active .anticon-cross,
.ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab:hover .anticon-cross {
width: 16px;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
.ant-tabs-extra-content {
float: right;
line-height: 32px;
}
.ant-tabs-extra-content .ant-tabs-new-tab {
width: 20px;
height: 20px;
line-height: 20px;
text-align: center;
cursor: pointer;
border-radius: 3px;
border: 1px solid #d9d9d9;
display: inline-block;
font-size: 12px;
font-size: 10px \9;
-webkit-transform: scale(0.83333333) rotate(0deg);
-ms-transform: scale(0.83333333) rotate(0deg);
transform: scale(0.83333333) rotate(0deg);
/* IE6-IE8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)";
zoom: 1;
color: #999;
-webkit-transition: color 0.3s ease;
transition: color 0.3s ease;
}
:root .ant-tabs-extra-content .ant-tabs-new-tab {
-webkit-filter: none;
filter: none;
}
:root .ant-tabs-extra-content .ant-tabs-new-tab {
font-size: 12px;
}
.ant-tabs-extra-content .ant-tabs-new-tab:hover {
color: #404040;
}