UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

445 lines (444 loc) • 11.9 kB
.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: #108ee9; -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" !important; } .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: "\e61f"; } .ant-tabs-tab-prev { left: 0; } .ant-tabs-tab-prev-icon:before { content: "\e620"; } :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; color: #ccc; } .ant-tabs-nav .ant-tabs-tab { display: inline-block; height: 100%; margin-right: 24px; box-sizing: border-box; position: relative; 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); cursor: pointer; text-decoration: none; } .ant-tabs-nav .ant-tabs-tab:hover { color: #40a5ed; } .ant-tabs-nav .ant-tabs-tab:active { color: #0f87dd; } .ant-tabs-nav .ant-tabs-tab .anticon { width: 14px; height: 14px; margin-right: 8px; } .ant-tabs-nav .ant-tabs-tab-active { color: #108ee9; } .ant-tabs-mini .ant-tabs-nav-container { font-size: 12px; } .ant-tabs-mini .ant-tabs-tab { margin-right: 0; padding: 8px 16px; } .ant-tabs:not(.ant-tabs-vertical) .ant-tabs-content-animated { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; will-change: transform; -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); } .ant-tabs:not(.ant-tabs-vertical) .ant-tabs-tabpane { -ms-flex-negative: 0; flex-shrink: 0; width: 100%; -webkit-transition: opacity 0.3s; transition: opacity 0.3s; opacity: 1; } .ant-tabs:not(.ant-tabs-vertical) .ant-tabs-tabpane-inactive { opacity: 0; height: 0; } .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; padding: 8px 24px; } .ant-tabs-vertical > .ant-tabs-bar .ant-tabs-tab:last-child { margin-bottom: 0; } .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 { 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: 32px; } .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 { padding: 5px 16px 4px; -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: #108ee9; } .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active { padding-bottom: 5px; -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 .anticon-close { 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 .anticon-close { -webkit-filter: none; filter: none; } :root .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab .anticon-close { font-size: 12px; } .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab .anticon-close:hover { color: #404040; font-weight: bold; } .ant-tabs.ant-tabs-editable-card > .ant-tabs-bar .ant-tabs-tab:not(.ant-tabs-tab-active):hover { padding-left: 8px; padding-right: 8px; } .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active .anticon-close, .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab:hover .anticon-close { 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; } .no-flex .ant-tabs-content-animated, .ant-tabs-no-animation .ant-tabs-content-animated, .ant-tabs-vertical .ant-tabs-content-animated { -webkit-transform: none!important; -ms-transform: none!important; transform: none!important; } .no-flex .ant-tabs-content > .ant-tabs-tabpane-inactive, .ant-tabs-no-animation .ant-tabs-content > .ant-tabs-tabpane-inactive, .ant-tabs-vertical .ant-tabs-content > .ant-tabs-tabpane-inactive { display: none; }