vue-vben-admin/src/layouts/default/tabs/index.less

182 lines
3.4 KiB
Plaintext
Raw Normal View History

2020-12-13 22:05:34 +08:00
@prefix-cls: ~'@{namespace}-multiple-tabs';
2020-09-28 20:19:10 +08:00
2021-04-07 23:14:51 +08:00
html[data-theme='dark'] {
.@{prefix-cls} {
.ant-tabs-tab {
border-bottom: 1px solid @border-color-base;
}
}
}
2021-04-10 19:25:49 +08:00
html[data-theme='light'] {
.@{prefix-cls} {
.ant-tabs-tab:not(.ant-tabs-tab-active) {
border: 1px solid #d9d9d9 !important;
}
}
}
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;
2021-04-17 18:51:19 +08:00
background-color: @component-background;
2021-04-07 23:14:51 +08:00
border-bottom: 1px solid @border-color-base;
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;
2021-04-17 18:51:19 +08:00
background-color: @component-background;
2020-09-28 20:19:10 +08:00
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);
padding-right: 12px;
2020-09-28 20:19:10 +08:00
line-height: calc(@multiple-height - 2px);
2021-04-07 23:14:51 +08:00
color: @text-color-base;
2021-04-17 18:51:19 +08:00
background-color: @component-background;
2020-09-28 20:19:10 +08:00
transition: none;
2020-11-25 22:28:58 +08:00
&:hover {
.ant-tabs-close-x {
opacity: 1;
}
}
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;
}
}
2021-04-07 23:14:51 +08:00
.ant-tabs-tab:not(.ant-tabs-tab-active) {
&:hover {
color: @primary-color;
}
}
2020-09-28 20:19:10 +08:00
.ant-tabs-tab-active {
2020-11-25 22:28:58 +08:00
position: relative;
2021-04-07 23:14:51 +08:00
padding-left: 18px;
color: @white !important;
2021-04-07 23:14:51 +08:00
background: @primary-color;
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
2020-11-25 22:28:58 +08:00
.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-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;
2021-04-07 23:14:51 +08:00
color: @text-color-secondary;
2020-12-13 22:05:34 +08:00
text-align: center;
cursor: pointer;
2021-04-07 23:14:51 +08:00
border-left: 1px solid @border-color-base;
2020-12-13 22:05:34 +08:00
&: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
}
}