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

125 lines
2.3 KiB
Plaintext
Raw Normal View History

2020-09-28 20:19:10 +08:00
@import (reference) '../../../design/index.less';
.multiple-tabs {
.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);
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-10-31 19:51:24 +08:00
border: 1px solid darken(@border-color-light, 8%);
border-radius: none !important;
2020-09-28 20:19:10 +08:00
transition: none;
.ant-tabs-close-x {
2020-10-31 19:51:24 +08:00
width: 12px;
height: 12px;
font-size: 12px;
2020-09-28 20:19:10 +08:00
color: inherit;
2020-10-31 19:51:24 +08:00
transition: none;
&:hover {
svg {
width: 0.8em;
}
}
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 {
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;
&::before {
display: none;
}
svg {
fill: @white;
2020-10-31 19:51:24 +08:00
width: 0.7em;
2020-09-28 20:19:10 +08:00
}
}
}
.ant-tabs-nav > div:nth-child(1) {
padding: 0 10px;
}
}
.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
}
}
}
}
.ant-tabs-extra-content {
2020-10-31 19:51:24 +08:00
margin-top: 2px;
line-height: @multiple-height !important;
}
.ant-dropdown-trigger {
display: inline-flex;
}
2020-09-28 20:19:10 +08:00
.multiple-tabs-content {
&__extra {
display: inline-block;
width: @multiple-height;
height: @multiple-height;
line-height: @multiple-height;
color: #999;
2020-09-28 20:19:10 +08:00
text-align: center;
cursor: pointer;
border-left: 1px solid #eee;
2020-10-31 19:51:24 +08:00
// box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
2020-09-28 20:19:10 +08:00
span[role='img'] {
transform: rotate(90deg);
}
}
&__content {
display: inline-block;
width: 100%;
2020-10-31 19:51:24 +08:00
height: @multiple-height - 2;
padding-left: 0;
2020-09-28 20:19:10 +08:00
margin-left: -10px;
2020-10-31 19:51:24 +08:00
font-size: 12px;
2020-09-28 20:19:10 +08:00
cursor: pointer;
user-select: none;
}
}