2020-12-13 22:05:34 +08:00
|
|
|
@prefix-cls: ~'@{namespace}-multiple-tabs';
|
2020-09-28 20:19:10 +08:00
|
|
|
|
2020-12-13 22:05:34 +08:00
|
|
|
.@{prefix-cls} {
|
2020-11-10 23:50:47 +08:00
|
|
|
z-index: 10;
|
2020-11-25 22:28:58 +08:00
|
|
|
height: @multiple-height + 2;
|
|
|
|
|
line-height: @multiple-height + 2;
|
2020-11-10 23:50:47 +08:00
|
|
|
background: @white;
|
2020-11-25 22:28:58 +08:00
|
|
|
box-shadow: 0 1px 2px 0 rgba(29, 35, 41, 0.05);
|
2020-11-10 23:50:47 +08:00
|
|
|
|
2020-09-28 20:19:10 +08:00
|
|
|
.ant-tabs-small {
|
|
|
|
|
height: @multiple-height;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-tabs.ant-tabs-card {
|
|
|
|
|
.ant-tabs-card-bar {
|
|
|
|
|
height: @multiple-height;
|
|
|
|
|
margin: 0;
|
|
|
|
|
background: @white;
|
|
|
|
|
border: 0;
|
2020-10-31 19:51:24 +08:00
|
|
|
box-shadow: none;
|
2020-09-28 20:19:10 +08:00
|
|
|
|
|
|
|
|
.ant-tabs-nav-container {
|
|
|
|
|
height: @multiple-height;
|
|
|
|
|
padding-top: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-tabs-tab {
|
|
|
|
|
height: calc(@multiple-height - 2px);
|
2020-11-01 11:13:34 +08:00
|
|
|
padding-right: 12px;
|
2020-09-28 20:19:10 +08:00
|
|
|
line-height: calc(@multiple-height - 2px);
|
|
|
|
|
color: @text-color-call-out;
|
|
|
|
|
background: @white;
|
2020-12-13 22:05:34 +08:00
|
|
|
border: 1px solid darken(@border-color-light, 6%);
|
2020-09-28 20:19:10 +08:00
|
|
|
transition: none;
|
|
|
|
|
|
2020-12-15 00:13:23 +08:00
|
|
|
// &:not(.ant-tabs-tab-active)::before {
|
|
|
|
|
// position: absolute;
|
|
|
|
|
// top: -1px;
|
|
|
|
|
// left: 50%;
|
|
|
|
|
// width: 100%;
|
|
|
|
|
// height: 2px;
|
|
|
|
|
// background-color: @primary-color;
|
|
|
|
|
// content: '';
|
|
|
|
|
// opacity: 0;
|
|
|
|
|
// transform: translate(-50%, 0) scaleX(0);
|
|
|
|
|
// transform-origin: center;
|
|
|
|
|
// transition: none;
|
|
|
|
|
// }
|
2020-12-13 22:05:34 +08:00
|
|
|
|
2020-11-25 22:28:58 +08:00
|
|
|
&:hover {
|
|
|
|
|
.ant-tabs-close-x {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
2020-12-13 22:05:34 +08:00
|
|
|
|
2020-12-15 00:13:23 +08:00
|
|
|
// &:not(.ant-tabs-tab-active)::before {
|
|
|
|
|
// opacity: 1;
|
|
|
|
|
// transform: translate(-50%, 0) scaleX(1);
|
|
|
|
|
// transition: all 0.3s ease-in-out;
|
|
|
|
|
// }
|
2020-11-25 22:28:58 +08:00
|
|
|
}
|
|
|
|
|
|
2020-09-28 20:19:10 +08:00
|
|
|
.ant-tabs-close-x {
|
2020-11-25 22:28:58 +08:00
|
|
|
width: 8px;
|
2020-10-31 19:51:24 +08:00
|
|
|
height: 12px;
|
|
|
|
|
font-size: 12px;
|
2020-09-28 20:19:10 +08:00
|
|
|
color: inherit;
|
2020-11-25 22:28:58 +08:00
|
|
|
opacity: 0;
|
2020-10-31 19:51:24 +08:00
|
|
|
transition: none;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
svg {
|
2020-12-13 22:05:34 +08:00
|
|
|
width: 0.8em;
|
2020-10-31 19:51:24 +08:00
|
|
|
}
|
|
|
|
|
}
|
2020-09-28 20:19:10 +08:00
|
|
|
}
|
|
|
|
|
|
2020-10-15 21:12:38 +08:00
|
|
|
> div {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-28 20:19:10 +08:00
|
|
|
svg {
|
|
|
|
|
fill: @text-color-base;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-tabs-tab-active {
|
2020-11-25 22:28:58 +08:00
|
|
|
position: relative;
|
|
|
|
|
padding-left: 26px;
|
2020-09-28 20:19:10 +08:00
|
|
|
color: @white;
|
2020-10-31 19:51:24 +08:00
|
|
|
background: fade(@primary-color, 100%);
|
2020-09-28 20:19:10 +08:00
|
|
|
border: 0;
|
2020-12-13 22:05:34 +08:00
|
|
|
transition: none;
|
2020-09-28 20:19:10 +08:00
|
|
|
|
|
|
|
|
&::before {
|
2020-11-25 22:28:58 +08:00
|
|
|
position: absolute;
|
|
|
|
|
top: calc(50% - 3px);
|
|
|
|
|
left: 8px;
|
|
|
|
|
width: 6px;
|
|
|
|
|
height: 6px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
content: '';
|
|
|
|
|
transition: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-tabs-close-x {
|
|
|
|
|
opacity: 1;
|
2020-09-28 20:19:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
svg {
|
2020-10-31 19:51:24 +08:00
|
|
|
width: 0.7em;
|
2020-11-10 23:50:47 +08:00
|
|
|
fill: @white;
|
2020-09-28 20:19:10 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-tabs-nav > div:nth-child(1) {
|
2020-12-13 22:05:34 +08:00
|
|
|
padding: 0 6px;
|
2020-11-25 22:28:58 +08:00
|
|
|
|
|
|
|
|
.ant-tabs-tab {
|
|
|
|
|
margin-right: 3px !important;
|
|
|
|
|
}
|
2020-09-28 20:19:10 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-tabs-tab:not(.ant-tabs-tab-active) {
|
|
|
|
|
.anticon-close {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
|
|
|
|
svg {
|
2020-10-31 19:51:24 +08:00
|
|
|
width: 0.6em;
|
2020-09-28 20:19:10 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-02 21:11:37 +08:00
|
|
|
.ant-tabs-extra-content {
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
line-height: @multiple-height !important;
|
|
|
|
|
}
|
2020-10-31 19:51:24 +08:00
|
|
|
|
2020-12-02 21:11:37 +08:00
|
|
|
.ant-dropdown-trigger {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
}
|
2020-10-22 00:14:11 +08:00
|
|
|
|
2020-12-13 22:05:34 +08:00
|
|
|
&--hide-close {
|
|
|
|
|
.ant-tabs-close-x {
|
|
|
|
|
opacity: 0 !important;
|
2020-11-25 22:28:58 +08:00
|
|
|
}
|
2020-12-13 22:05:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-content {
|
2020-12-15 00:13:23 +08:00
|
|
|
&__extra-quick,
|
2021-01-06 20:10:16 +08:00
|
|
|
&__extra-redo,
|
|
|
|
|
&__extra-fold {
|
2020-12-13 22:05:34 +08:00
|
|
|
display: inline-block;
|
2020-12-15 00:13:23 +08:00
|
|
|
width: 36px;
|
2020-12-13 22:05:34 +08:00
|
|
|
height: @multiple-height;
|
|
|
|
|
line-height: @multiple-height;
|
2020-12-15 00:13:23 +08:00
|
|
|
color: #666;
|
2020-12-13 22:05:34 +08:00
|
|
|
text-align: center;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
border-left: 1px solid #eee;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
color: @text-color-base;
|
|
|
|
|
}
|
2020-09-28 20:19:10 +08:00
|
|
|
|
2020-12-13 22:05:34 +08:00
|
|
|
span[role='img'] {
|
|
|
|
|
transform: rotate(90deg);
|
|
|
|
|
}
|
2020-09-28 20:19:10 +08:00
|
|
|
}
|
|
|
|
|
|
2020-12-15 00:13:23 +08:00
|
|
|
&__extra-redo {
|
|
|
|
|
span[role='img'] {
|
|
|
|
|
transform: rotate(0deg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-13 22:05:34 +08:00
|
|
|
&__info {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: @multiple-height - 2;
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
margin-left: -10px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
2020-09-28 20:19:10 +08:00
|
|
|
}
|
|
|
|
|
}
|