|
142 | 142 | $_marks_length: 3px; |
143 | 143 | $_marks_distance: 1px; |
144 | 144 | $button_bg: if(hue($bg_color) == 0deg, shade($bg_color, 1.2), $bg_color); |
145 | | - $ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); |
| 145 | + $ease-out-quad: cubic-bezier(.25, .46, .45, .94); |
146 | 146 | $button_transition: all 200ms $ease-out-quad; |
147 | 147 |
|
148 | 148 | min-height: 10px; |
|
154 | 154 | trough { padding: 0 7px; } |
155 | 155 | highlight, fill { margin: 0 -7px; } |
156 | 156 | } |
| 157 | + |
157 | 158 | &.vertical { |
158 | 159 | padding: 0 6px; |
159 | 160 |
|
|
209 | 210 | .osd & { |
210 | 211 | background-color: lighten($osd_bg, 7%); |
211 | 212 |
|
212 | | - highlight { |
213 | | - background-color: $selected_bg_color; |
214 | | - } |
| 213 | + highlight { background-color: $selected_bg_color; } |
215 | 214 | } |
216 | 215 |
|
217 | 216 | // Troughs in selected list-rows and infobars |
|
280 | 279 | background-color: mix($selected_fg_color, $selected_bg_color, .85); |
281 | 280 | border-color: mix($selected_fg_color, $selected_bg_color, .85); |
282 | 281 | } |
| 282 | + |
283 | 283 | &:active { |
284 | 284 | background-color: mix($selected_fg_color, $selected_bg_color, .5); |
285 | 285 | border-color: mix($selected_fg_color, $selected_bg_color, .5); |
286 | 286 | } |
287 | | - &:disabled{ |
| 287 | + |
| 288 | + &:disabled { |
288 | 289 | background-color: mix($selected_fg_color, $selected_bg_color, .55); |
289 | 290 | border-color: mix($selected_fg_color, $selected_bg_color, .55); |
290 | 291 | } |
|
335 | 336 | } |
336 | 337 | } |
337 | 338 | } |
| 339 | + |
338 | 340 | &.horizontal { |
339 | 341 | indicator { |
340 | 342 | min-height: $_marks_length; |
|
343 | 345 |
|
344 | 346 | &.fine-tune indicator { min-height: ($_marks_length - 1px); } |
345 | 347 | } |
| 348 | + |
346 | 349 | &.vertical { |
347 | 350 | indicator { |
348 | 351 | min-height: 1px; |
|
351 | 354 |
|
352 | 355 | &.fine-tune indicator { min-width: ($_marks_length - 1px); } |
353 | 356 | } |
| 357 | + |
| 358 | + &.color { |
| 359 | + trough { |
| 360 | + padding: 0; |
| 361 | + border: 0; |
| 362 | + background-image: none; |
| 363 | + } |
| 364 | + |
| 365 | + highlight, fill { margin: 0; } |
| 366 | + |
| 367 | + &.horizontal { |
| 368 | + padding: 0 0 6px 0; |
| 369 | + |
| 370 | + trough { |
| 371 | + border-top-left-radius: 0; |
| 372 | + border-top-right-radius: 0; |
| 373 | + } |
| 374 | + |
| 375 | + slider { |
| 376 | + &:hover, &:backdrop, &:disabled, &:backdrop:disabled, & { |
| 377 | + margin-bottom: 0; |
| 378 | + margin-top: 0; |
| 379 | + } |
| 380 | + } |
| 381 | + } |
| 382 | + |
| 383 | + &.vertical { |
| 384 | + &:dir(ltr) { |
| 385 | + padding: 0 0 0 6px; |
| 386 | + |
| 387 | + trough { |
| 388 | + border-bottom-right-radius: 0; |
| 389 | + border-top-right-radius: 0; |
| 390 | + } |
| 391 | + |
| 392 | + slider { |
| 393 | + &:hover, &:backdrop, &:disabled, &:backdrop:disabled, & { |
| 394 | + margin-left: 0; |
| 395 | + margin-right: 0; |
| 396 | + } |
| 397 | + } |
| 398 | + } |
| 399 | + |
| 400 | + &:dir(rtl) { |
| 401 | + padding: 0 6px 0 0; |
| 402 | + |
| 403 | + trough { |
| 404 | + border-bottom-left-radius: 0; |
| 405 | + border-top-left-radius: 0; |
| 406 | + } |
| 407 | + |
| 408 | + slider { |
| 409 | + &:hover, &:backdrop, &:disabled, &:backdrop:disabled, & { |
| 410 | + margin-right: 0; |
| 411 | + margin-left: 0; |
| 412 | + } |
| 413 | + } |
| 414 | + } |
| 415 | + } |
| 416 | + } |
354 | 417 | } |
355 | 418 | } |
0 commit comments