forked from andreasbm/weightless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
switch-vars.scss
52 lines (35 loc) · 1.88 KB
/
switch-vars.scss
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
@import "../style/base";
/* Width */
$switch-width: var(--switch-width, #{size(34)});
/* Height */
$switch-height: var(--switch-height, #{size(14)});
/* Border radius */
$switch-border-radius: var(--switch-border-radius, $border-radius-l);
/* Transition */
$switch-transition: var(--switch-transition, background #{$transition-duration-fast} #{$transition-deceleration-curve});
/* Default color */
$switch-color: var(--switch-color, #{$background});
/* Default background */
$switch-bg: var(--switch-bg, #{color("shade", $light-hue)});
/* Color when checked */
$switch-color-checked: var(--switch-color-checked, #{color("primary", $default-hue)});
/* Background when checked */
$switch-bg-checked: var(--switch-bg-checked, #{color("primary", $light-hue, 0.4)});
/* Color when disabled */
$switch-color-disabled: var(--switch-color-disabled, #{color("shade", 300)});
/* Background when disabled */
$switch-bg-disabled: var(--switch-bg-disabled, #{color("shade", 200)});
/* Color when disabled and checked */
$switch-color-disabled-checked: var(--switch-color-disabled-checked, #{color("primary", $light-hue, 0.4)});
/* Background when disabled and checked */
$switch-bg-disabled-checked: var(--switch-bg-disabled-checked, #{color("primary", $light-hue, 0.1)});
/* Width and height of the knob */
$switch-knob-size: var(--switch-knob-size, #{size(20)});
/* Border radius of the knob */
$switch-knob-border-radius: var(--switch-knob-border-radius, 100%);
/* Transition of the knob */
$switch-knob-transition: var(--switch-knob-transition, background #{$transition-duration-fast} #{$transition-deceleration-curve}, transform #{$transition-duration-fast} #{$transition-deceleration-curve});
/* Box shadow of the knob */
$switch-knob-elevation: var(--switch-knob-elevation, #{elevation(2)});
/* Transform of the ripple */
$switch-ripple-transform: var(--switch-ripple-transform, translate(-50%, -50%) scale(1.8));