123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- @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;
- box-shadow: none;
- .ant-tabs-nav-container {
- height: @multiple-height;
- padding-top: 2px;
- }
- .ant-tabs-tab {
- height: calc(@multiple-height - 2px);
- line-height: calc(@multiple-height - 2px);
- color: @text-color-call-out;
- background: @white;
- border: 1px solid darken(@border-color-light, 8%);
- border-radius: none !important;
- transition: none;
- .ant-tabs-close-x {
- width: 12px;
- height: 12px;
- font-size: 12px;
- color: inherit;
- transition: none;
- &:hover {
- svg {
- width: 0.8em;
- transition: all 0.1s;
- }
- }
- }
- &:hover {
- .ant-tabs-close-x {
- display: block;
- }
- }
- > div {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- svg {
- fill: @text-color-base;
- }
- }
- .ant-tabs-tab-active {
- color: @white;
- background: fade(@primary-color, 100%);
- border: 0;
- &::before {
- display: none;
- }
- svg {
- fill: @white;
- width: 0.7em;
- }
- }
- }
- .ant-tabs-nav > div:nth-child(1) {
- padding: 0 10px;
- }
- }
- .ant-tabs-tab:not(.ant-tabs-tab-active) {
- .anticon-close {
- font-size: 12px;
- svg {
- width: 0.6em;
- }
- }
- }
- }
- .ant-tabs-extra-content {
- margin-top: 2px;
- line-height: @multiple-height !important;
- }
- .ant-dropdown-trigger {
- display: inline-flex;
- }
- .multiple-tabs-content {
- &__extra {
- display: inline-block;
- width: @multiple-height;
- height: @multiple-height;
- line-height: @multiple-height;
- color: @primary-color;
- text-align: center;
- cursor: pointer;
- // box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
- span[role='img'] {
- transform: rotate(90deg);
- }
- }
- &__content {
- display: inline-block;
- width: 100%;
- height: @multiple-height - 2;
- padding-left: 0;
- margin-left: -10px;
- font-size: 12px;
- cursor: pointer;
- user-select: none;
- }
- }
|