Blame view

src/layouts/default/multitabs/index.less 2.33 KB
陈文彬 authored
1
2
3
4
5
6
7
8
9
10
11
12
13
@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;
14
      box-shadow: none;
陈文彬 authored
15
16
17
18
19
20
21
22

      .ant-tabs-nav-container {
        height: @multiple-height;
        padding-top: 2px;
      }

      .ant-tabs-tab {
        height: calc(@multiple-height - 2px);
23
        padding-right: 12px;
陈文彬 authored
24
25
26
        line-height: calc(@multiple-height - 2px);
        color: @text-color-call-out;
        background: @white;
27
28
        border: 1px solid darken(@border-color-light, 8%);
        border-radius: none !important;
陈文彬 authored
29
30
31
        transition: none;

        .ant-tabs-close-x {
32
33
34
          width: 12px;
          height: 12px;
          font-size: 12px;
陈文彬 authored
35
          color: inherit;
36
37
38
39
40
41
42
          transition: none;

          &:hover {
            svg {
              width: 0.8em;
            }
          }
陈文彬 authored
43
44
        }
vben authored
45
46
47
48
49
50
        > div {
          display: flex;
          justify-content: center;
          align-items: center;
        }
陈文彬 authored
51
52
53
54
55
56
57
        svg {
          fill: @text-color-base;
        }
      }

      .ant-tabs-tab-active {
        color: @white;
58
        background: fade(@primary-color, 100%);
陈文彬 authored
59
60
61
62
63
64
65
66
        border: 0;

        &::before {
          display: none;
        }

        svg {
          fill: @white;
67
          width: 0.7em;
陈文彬 authored
68
69
70
71
72
73
74
75
76
77
78
79
80
81
        }
      }
    }

    .ant-tabs-nav > div:nth-child(1) {
      padding: 0 10px;
    }
  }

  .ant-tabs-tab:not(.ant-tabs-tab-active) {
    .anticon-close {
      font-size: 12px;

      svg {
82
        width: 0.6em;
陈文彬 authored
83
84
85
86
87
      }
    }
  }
}
88
.ant-tabs-extra-content {
89
90
91
92
93
94
  margin-top: 2px;
  line-height: @multiple-height !important;
}

.ant-dropdown-trigger {
  display: inline-flex;
95
96
}
陈文彬 authored
97
98
99
100
101
102
.multiple-tabs-content {
  &__extra {
    display: inline-block;
    width: @multiple-height;
    height: @multiple-height;
    line-height: @multiple-height;
103
    color: #999;
陈文彬 authored
104
105
    text-align: center;
    cursor: pointer;
106
    border-left: 1px solid #eee;
107
    // box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
陈文彬 authored
108
109
110
111
112
113
114
115
116

    span[role='img'] {
      transform: rotate(90deg);
    }
  }

  &__content {
    display: inline-block;
    width: 100%;
117
118
    height: @multiple-height - 2;
    padding-left: 0;
陈文彬 authored
119
    margin-left: -10px;
120
    font-size: 12px;
陈文彬 authored
121
122
123
124
    cursor: pointer;
    user-select: none;
  }
}