blob: 1e8c4629a82b50b1e54e4c04f037225ce6807242 (
plain)
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
|
@import "ui-variables";
@import "ui-mixins";
@tab-radius: 3px;
@modified-icon-width: 8px;
@tab-skew: 30deg;
@tab-top-padding: 8px;
@tab-bottom-border-height: 0;
@tab-border: 1px solid @tab-border-color;
@tab-max-width: 160px;
.tab-bar {
height: @tab-height + @tab-top-padding + @tab-bottom-border-height;
background: @base-background-color;
overflow-x: auto;
overflow-y: hidden;
&::-webkit-scrollbar {
display: none;
}
&:after {
content: "";
position: absolute;
bottom: 0;
height: @tab-bottom-border-height;
left: 0;
right: 0;
background-color: @tab-background-color-active;
border-bottom: 1px solid @tab-bar-border-color;
pointer-events: none;
}
.tab {
position: relative;
top: @tab-top-padding;
max-width: @tab-max-width;
height: @tab-height;
box-sizing: border-box;
line-height: @tab-height;
color: @text-color;
padding: 0;
margin: 0 0 0 0;
.ui-tab-shadow;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
transition: color .1s ease-in;
padding: 0px 6px 4px 6px;
.close-icon {
right: 6px;
z-index: 3;
text-align: right;
line-height: @tab-height;
color: @text-color;
&:hover {
color: inherit;
}
}
&.modified:not(:hover) .close-icon {
top: @tab-height/2 - @modified-icon-width/2 + 1px;
width: @modified-icon-width;
height: @modified-icon-width;
}
&.modified:hover .close-icon:hover {
color: @text-color-highlight;
}
.title {
position: relative;
z-index: 1;
padding-right: 10px
}
}
.tab.active {
z-index: 1;
margin-top: -2px;
height: @tab-height + 2px;
border-bottom: 1px solid @base-background-color;
.close-icon {
line-height: @tab-height - 1px;
color: @text-color;
}
}
.tab:hover {
color: @text-color-highlight;
}
.tab.active:hover .close-icon {
color: @text-color;
&:hover {
color: inherit;
}
}
.placeholder {
height: @tab-height + @tab-top-padding + @tab-bottom-border-height;
margin-left: -9px; // center between tabs
pointer-events: none;
&:after {
top: @tab-height + @tab-top-padding + @tab-bottom-border-height - 2px;
}
}
}
|