forked from jesseweed/seti-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabs.less
151 lines (125 loc) · 2.51 KB
/
tabs.less
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
atom-workspace-axis.vertical .tab-bar {
// TAB BACKGROUND
height: @top-bar;
border-bottom: solid 2px rgba(0,0,0,0.3);
background: lighten(@tree-view-header-color, 7%);
// SINGLE TAB
.tab {
background-color: @tab-background-color;
color: @tab-text-color;
height: @top-bar;
padding: 17px 10px;
border-bottom: solid 2px rgba(0,0,0,0.4);
border-right: solid 1px rgba(0,0,0,0.4);
font-weight: 300;
letter-spacing: 0.05em;
transition: linear 0.25s background;
.title {
// display: none;
&::before {
// margin-top: -10px;
}
}
// HIGHLIGHT BORDER
&::after {
content: '';
position: absolute;
width: 10%;
height: 2px;
z-index: 999;
bottom: -2px;
left: 45%;
opacity: 0;
}
// ICONS
& > .title {
margin-right: 18px;
margin-top: 5px;
}
// ACTIVE TAB
&.active {
background: #111213;
border-right: solid 1px rgba(0,0,0,0.2);
z-index: 1;
height: @top-bar;
&::after {
width: 100%;
left: 0px;
opacity: 1;
background: @seti-primary;
}
}
// MODIFIED TAB
&.modified {
&:hover .close-icon {
color: @red;
}
&:not(:hover) .close-icon {
border-color: @yellow;
top: 26px;
right: 14px;
}
}
}
// TAB PLACEHOLDER MARKER (FOR DRAG & DROP)
.placeholder {
background-color: @seti-primary;
height: @top-bar;
&::after {
background-color: @seti-primary;
top: @top-bar;
}
}
// CLOSE ICON
.close-icon {
top: 22px;
right: 10px;
}
}
// COMPACT MODE
atom-workspace.seti-compact atom-workspace-axis.vertical .tab-bar {
// SMALL TABS
height: @top-bar-small;
.tab {
height: @top-bar-small;
padding: 7px 10px;
letter-spacing: inherit;
}
.close-icon {
top: 11px;
right: 5px;
}
.placeholder {
height: @top-bar-small;
&::after {
top: @top-bar-small;
}
}
.modified {
.close-icon {
top: 11px;
right: 5px;
}
&:not(:hover) {
.close-icon {
border-color: @seti-primary;
top: 15px;
right: 9px;
}
}
}
}
// DISABLE TAB ANIMATION
atom-workspace.seti-animate {
atom-workspace-axis.vertical .tab-bar {
.tab::after {
transition: linear 0.3s width, linear 0.3s left, linear 0.3s opacity;
}
}
}
// HIDE TABS
atom-workspace.seti-hide-tabs {
atom-workspace-axis.vertical .tab-bar {
display: none;
}
}