vben
2020-11-25 26b6109ca08a28c37355474bf8593f2e2b741ef6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
@import (reference) '../../../design/index.less';
 
.multiple-tabs {
  z-index: 10;
  height: @multiple-height+2;
  padding: 0 0 2px 0;
  line-height: @multiple-height+2;
  background: @white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
 
  .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);
        padding-right: 12px;
        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;
            }
          }
        }
 
        > 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 {
          width: 0.7em;
          fill: @white;
        }
      }
    }
 
    .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: #999;
    text-align: center;
    cursor: pointer;
    border-left: 1px solid #eee;
    // 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;
  }
}