2023-03-18 13:10:54 +00:00
|
|
|
@prefix-cls: ~'@{namespace}-multiple-tabs';
|
|
|
|
|
|
|
|
html[data-theme='dark'] {
|
|
|
|
.@{prefix-cls} {
|
|
|
|
.ant-tabs-tab {
|
2023-05-12 09:35:14 +00:00
|
|
|
border-bottom: none !important;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html[data-theme='light'] {
|
|
|
|
.@{prefix-cls} {
|
|
|
|
.ant-tabs-tab:not(.ant-tabs-tab-active) {
|
2023-05-12 09:35:14 +00:00
|
|
|
border: none !important;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{prefix-cls} {
|
|
|
|
z-index: 10;
|
|
|
|
height: @multiple-height + 2;
|
|
|
|
line-height: @multiple-height + 2;
|
|
|
|
background-color: @component-background;
|
2023-05-12 09:35:14 +00:00
|
|
|
box-shadow: 0 1px 4px rgb(0 21 41 / 8%);
|
2023-03-18 13:10:54 +00:00
|
|
|
|
|
|
|
.ant-tabs-small {
|
|
|
|
height: @multiple-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-tabs.ant-tabs-card {
|
|
|
|
.ant-tabs-nav {
|
|
|
|
height: @multiple-height;
|
|
|
|
margin: 0;
|
|
|
|
background-color: @component-background;
|
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
2023-05-12 09:35:14 +00:00
|
|
|
padding-left: 10px;
|
2023-03-18 13:10:54 +00:00
|
|
|
|
|
|
|
.ant-tabs-nav-container {
|
|
|
|
height: @multiple-height;
|
2023-05-12 09:35:14 +00:00
|
|
|
margin-top: 12px;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ant-tabs-tab {
|
2023-05-12 09:35:14 +00:00
|
|
|
height: @multiple-height;
|
|
|
|
line-height: @multiple-height;
|
2023-03-18 13:10:54 +00:00
|
|
|
color: @text-color-base;
|
|
|
|
background-color: @component-background;
|
2023-05-12 09:35:14 +00:00
|
|
|
transition: padding 0.3s;
|
|
|
|
padding: 0 24px;
|
|
|
|
margin: 0 -14px 0 0 !important;
|
2023-05-12 09:40:58 +00:00
|
|
|
/* stylelint-disable-next-line function-url-quotes */
|
2023-05-12 09:35:14 +00:00
|
|
|
mask: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANoAAAAkBAMAAAAdqzmBAAAAMFBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlTPQ5AAAAD3RSTlMAr3DvEM8wgCBA379gj5//tJBPAAAAnUlEQVRIx2NgAAM27fj/tAO/xBsYkIHyf9qCT8iWMf6nNQhAsk2f5rYheY7Dnua2/U+A28ZEe8v+F9Ax2v7/F4DbxkUH2wzgtvHTwbYPo7aN2jZq26hto7aN2jZq25Cy7Qvctnw62PYNbls9HWz7S8/G6//PsI6H4396gAUQy1je08W2jxDbpv6nD4gB2uWp+J9eYPsEhv/0BPS1DQBvoBLVZ3BppgAAAABJRU5ErkJggg==);
|
|
|
|
mask-size: 100% 100%;
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
.ant-tabs-tab-btn {
|
|
|
|
color: @text-color-base;
|
|
|
|
}
|
2023-03-18 13:10:54 +00:00
|
|
|
|
|
|
|
&:hover {
|
2023-05-12 09:35:14 +00:00
|
|
|
z-index: 2;
|
|
|
|
padding: 0 30px 0 36px;
|
|
|
|
|
|
|
|
.ant-tabs-tab-remove .anticon-close {
|
2023-03-18 13:10:54 +00:00
|
|
|
opacity: 1;
|
2023-05-12 09:35:14 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: #fff;
|
|
|
|
background-color: #c0c4cc;
|
|
|
|
}
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-tabs-tab-remove {
|
2023-05-12 09:35:14 +00:00
|
|
|
top: 4px;
|
|
|
|
left: 10px;
|
|
|
|
margin-right: -10px;
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
|
|
.anticon-close {
|
|
|
|
position: relative;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
font-size: 18px;
|
|
|
|
color: inherit;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 0.15s;
|
|
|
|
vertical-align: middle;
|
|
|
|
line-height: 10px;
|
|
|
|
overflow: hidden;
|
|
|
|
transform-origin: 100% 50%;
|
|
|
|
border-radius: 100%;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
svg {
|
|
|
|
fill: #fff;
|
|
|
|
}
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// > div {
|
|
|
|
// display: flex;
|
|
|
|
// justify-content: center;
|
|
|
|
// align-items: center;
|
|
|
|
// }
|
|
|
|
|
|
|
|
svg {
|
|
|
|
fill: @text-color-base;
|
|
|
|
}
|
2023-05-12 09:35:14 +00:00
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
padding: 0 16px !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
padding: 0 16px !important;
|
|
|
|
}
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ant-tabs-tab:not(.ant-tabs-tab-active) {
|
|
|
|
&:hover {
|
2023-05-12 09:35:14 +00:00
|
|
|
color: inherit;
|
|
|
|
background-color: #dee1e6;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-tabs-tab-active {
|
|
|
|
position: relative;
|
2023-05-12 09:35:14 +00:00
|
|
|
padding: 0 20px;
|
|
|
|
color: @primary-color !important;
|
|
|
|
background: #e8f4ff;
|
2023-03-18 13:10:54 +00:00
|
|
|
border: 0;
|
2023-05-12 09:35:14 +00:00
|
|
|
font-weight: inherit;
|
|
|
|
z-index: 3;
|
2023-03-18 13:10:54 +00:00
|
|
|
|
|
|
|
span {
|
2023-05-12 09:35:14 +00:00
|
|
|
color: @primary-color !important;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
|
2023-05-12 09:35:14 +00:00
|
|
|
.ant-tabs-tab-btn {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-tabs-tab-remove .anticon-close {
|
2023-03-18 13:10:54 +00:00
|
|
|
opacity: 1;
|
2023-05-12 09:35:14 +00:00
|
|
|
|
|
|
|
svg {
|
|
|
|
width: 0.6em;
|
|
|
|
}
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
2023-05-12 09:35:14 +00:00
|
|
|
width: inherit;
|
|
|
|
fill: @primary-color;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-tabs-nav > div:nth-child(1) {
|
|
|
|
padding: 0 6px;
|
|
|
|
|
|
|
|
.ant-tabs-tab {
|
2023-05-12 09:35:14 +00:00
|
|
|
margin-right: -20px !important;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-tabs-tab:not(.ant-tabs-tab-active) {
|
|
|
|
.anticon-close {
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
width: 0.6em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-12 09:35:14 +00:00
|
|
|
.ant-tabs-extra-content {
|
|
|
|
position: relative;
|
|
|
|
top: 0;
|
|
|
|
line-height: calc(@multiple-height - 12px) !important;
|
|
|
|
}
|
|
|
|
|
2023-03-18 13:10:54 +00:00
|
|
|
.ant-dropdown-trigger {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--hide-close {
|
2023-05-12 09:35:14 +00:00
|
|
|
.ant-tabs-tab-remove .anticon-close {
|
2023-03-18 13:10:54 +00:00
|
|
|
opacity: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
&__extra-quick,
|
|
|
|
&__extra-redo,
|
|
|
|
&__extra-fold {
|
|
|
|
display: inline-block;
|
|
|
|
width: 36px;
|
|
|
|
height: @multiple-height;
|
|
|
|
line-height: @multiple-height;
|
|
|
|
color: @text-color-secondary;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
border-left: 1px solid @border-color-base;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: @text-color-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
span[role='img'] {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__extra-redo {
|
|
|
|
span[role='img'] {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__info {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
height: @multiple-height - 2;
|
|
|
|
padding-left: 0;
|
2023-05-12 09:35:14 +00:00
|
|
|
font-size: 14px;
|
2023-03-18 13:10:54 +00:00
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
}
|
2023-05-12 09:35:14 +00:00
|
|
|
|
|
|
|
&__prefix-icon {
|
|
|
|
& .app-iconify.anticon {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
}
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-tabs-dropdown-menu {
|
|
|
|
&-title-content {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.@{prefix-cls} {
|
|
|
|
&-content__info {
|
|
|
|
width: auto;
|
|
|
|
margin-left: 0;
|
|
|
|
line-height: 28px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-item-remove {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.multiple-tabs__dropdown {
|
|
|
|
.ant-dropdown-content {
|
2023-05-12 09:40:58 +00:00
|
|
|
width: 148px;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|