|
144 | 144 | } |
145 | 145 |
|
146 | 146 | tab { |
147 | | - padding: ($spacing + 1) 0 0; // top | left/right | bottom |
| 147 | + padding: 0; |
148 | 148 | border-style: solid; |
149 | 149 | border-width: 1px; // for reorderable tabs |
150 | 150 | border-color: transparent; // |
151 | 151 | background-image: none; |
152 | 152 | box-shadow: none; |
153 | 153 | outline: none; |
154 | 154 |
|
155 | | - button, button:hover { |
156 | | - margin-left: 15px; |
157 | | - opacity: 0; |
158 | | - transition: opacity .3s ease-in; |
159 | | - } |
160 | | - |
161 | | - > box, > label { |
162 | | - padding: 0 ($spacing * 3) ($spacing + 1); // top | left/right | bottom |
| 155 | + > box, |
| 156 | + > label, |
| 157 | + > widget > box { |
| 158 | + padding: ($spacing + 2) ($spacing * 3); // top/bottom | left/right |
163 | 159 | border-width: 2px; |
164 | 160 | border-style: solid; |
165 | 161 | border-color: transparent; |
166 | | - transition: border-color .3s ease-out; |
| 162 | + transition: border-color .2s linear; |
| 163 | + } |
| 164 | + |
| 165 | + &.reorderable-page { |
| 166 | + > box, |
| 167 | + > label, |
| 168 | + > widget > box { |
| 169 | + padding: ($spacing + 2) ($spacing * 2) ($spacing + 2) ($spacing * 3); // top | right | bottom | left |
| 170 | + } |
| 171 | + } |
| 172 | + |
| 173 | + /* close button styling */ |
| 174 | + button, |
| 175 | + button.flat { |
| 176 | + @extend %close_button; |
| 177 | + |
| 178 | + min-height: 16px; |
| 179 | + min-width: 16px; |
| 180 | + padding: 0; |
| 181 | + margin-left: $spacing * 3; |
| 182 | + border: 1px solid transparent; |
| 183 | + transition: all .1s linear; |
167 | 184 | } |
168 | 185 |
|
169 | 186 | &:hover { |
170 | 187 | background-color: shade($base_color, .93); |
171 | 188 | border-color: transparent; |
172 | 189 | outline: none; |
173 | 190 |
|
174 | | - button, button:hover { |
175 | | - opacity: 1; |
| 191 | + button, |
| 192 | + button.flat { |
| 193 | + border: 1px solid alpha($bg_color, .1); |
176 | 194 | } |
177 | 195 | } |
178 | 196 |
|
|
193 | 211 | label { |
194 | 212 | color: mix($text_color, $base_color, .3); |
195 | 213 | } |
196 | | - |
197 | | - /* close button styling */ |
198 | | - button.flat { |
199 | | - min-height: 16px; |
200 | | - min-width: 16px; |
201 | | - padding: 0; |
202 | | - |
203 | | - @extend %close_button; |
204 | | - } |
205 | 214 | } |
206 | 215 |
|
207 | 216 | &.top tab, |
|
267 | 276 | } |
268 | 277 |
|
269 | 278 | &.top tab { |
270 | | - padding: ($spacing + 1) 0 0; // top | left/right | bottom |
271 | 279 | border-style: solid; |
272 | 280 | border-color: $borders_color; |
273 | 281 | border-width: 0; |
274 | 282 | border-bottom-width: 1px; |
275 | | - transition: border-bottom-color .3s ease-out; |
276 | | - |
277 | | - > box, > label { |
278 | | - padding: 0 ($spacing * 3) ($spacing + 1); // top | left/right | bottom |
279 | | - } |
| 283 | + transition: border-bottom-color .2s linear; |
280 | 284 |
|
281 | 285 | &:hover { |
282 | 286 | outline: none; |
|
286 | 290 | border-bottom-color: $selected_bg_color; |
287 | 291 | outline: none; |
288 | 292 |
|
289 | | - > box, > label { |
| 293 | + > box, |
| 294 | + > label, |
| 295 | + > widget > box { |
290 | 296 | border-bottom-color: $selected_bg_color; |
291 | 297 | } |
292 | 298 |
|
|
302 | 308 | } |
303 | 309 |
|
304 | 310 | &.right tab { |
305 | | - padding: 0 ($spacing + 1) 0 0; // top | right | bottom | left |
306 | 311 | border-style: solid; |
307 | 312 | border-color: $borders_color; |
308 | 313 | border-width: 0; |
309 | 314 | border-left-width: 1px; |
310 | 315 | transition: border-left-color .3s ease-out; |
311 | 316 |
|
312 | | - > box, > label { |
313 | | - padding: ($spacing + 1) ($spacing * 3); // top | right | bottom | left |
314 | | - } |
315 | | - |
316 | 317 | &:hover { |
317 | 318 | outline: none; |
318 | 319 | } |
|
337 | 338 | } |
338 | 339 |
|
339 | 340 | &.bottom tab { |
340 | | - padding: 0 0 ($spacing + 1); // top | left/right | bottom |
341 | 341 | border-style: solid; |
342 | 342 | border-color: $borders_color; |
343 | 343 | border-width: 0; |
344 | 344 | border-top-width: 1px; |
345 | 345 | transition: border-top-color .3s ease-out; |
346 | 346 |
|
347 | | - > box, > label { |
348 | | - padding: ($spacing + 1) ($spacing * 3) 0; // top/bottom | left/right |
349 | | - } |
350 | | - |
351 | 347 | &:hover { |
352 | 348 | outline: none; |
353 | 349 | } |
|
372 | 368 | } |
373 | 369 |
|
374 | 370 | &.left tab { |
375 | | - padding: 0 0 0 ($spacing + 1); // top | right | bottom | left |
376 | 371 | border-style: solid; |
377 | 372 | border-color: $borders_color; |
378 | 373 | border-width: 0; |
379 | 374 | border-right-width: 1px; |
380 | 375 | transition: border-right-color .3s ease-out; |
381 | 376 |
|
382 | | - > box, > label { |
383 | | - padding: ($spacing + 1) ($spacing * 3); // top/bottom | left/right |
384 | | - } |
385 | | - |
386 | 377 | &:hover { |
387 | 378 | outline: none; |
388 | 379 | } |
|
0 commit comments