File tree Expand file tree Collapse file tree 1 file changed +33
-6
lines changed Expand file tree Collapse file tree 1 file changed +33
-6
lines changed Original file line number Diff line number Diff line change 3
3
border-bottom :1px solid #b7b5b7 ;
4
4
border-radius : 0 ;
5
5
font-size :@font-size - 1 ;
6
- height :24px ;
6
+ height :@tab-height ;
7
+ overflow : hidden ;
7
8
background : linear-gradient (@tab-background-color,#C7C6C7 );
8
- display :table ;
9
- table-layout : fixed ;
10
9
width :100% ;
11
10
padding :0 ;
12
11
-webkit-transform :scale (1 );
13
12
14
13
.tab {
15
14
width :100% ;
15
+ max-width : 100% ;
16
16
box-sizing :border-box ;
17
17
padding :0 20px !important ;
18
- line-height :22px ;
18
+ line-height :@tab-height ;
19
+ height : @tab-height ;
19
20
color :#696869 ;
20
21
text-align :center ;
21
22
position :relative ;
22
23
border-left :1px solid #a4a2a4 ;
23
- display :table-cell ;
24
24
background : linear-gradient (#c2c0c2 , #bbb9bb );
25
+ flex : 1 ;
25
26
26
27
& :first-child {
27
28
border-left :none ;
51
52
border-left-color :#a2a1a2 ;
52
53
border-bottom-color :#A8A7A8 ;
53
54
width :100% ;
55
+ flex : 1 ;
54
56
55
57
& .title {
56
58
padding :0 ;
68
70
.tab .close-icon {
69
71
color :rgb (93 , 93 , 93 ) !important ;
70
72
cursor :default ;
71
- top :3 px ;
73
+ top :4 px ;
72
74
left :4px ;
73
75
height :16px ;
74
76
width :16px ;
135
137
.icon :before {
136
138
margin-right :3px ;
137
139
}
140
+
141
+ // Dragging ----------------------
142
+
143
+ .tab.is-dragging {
144
+ opacity : .5 ;
145
+ .close-icon ,
146
+ & :before {
147
+ visibility : hidden ;
148
+ }
149
+ }
150
+
151
+ .placeholder {
152
+ margin : 0 ;
153
+ height : @tab-height ;
154
+ background : @background-color-selected ;
155
+ pointer-events : none ;
156
+
157
+ & :last-child {
158
+ margin-left : -2px ;
159
+ }
160
+
161
+ & :first-child {
162
+ margin-left : 1px ;
163
+ }
164
+ }
138
165
}
You can’t perform that action at this time.
0 commit comments