forked from gurayyarar/AdminBSBMaterialDesign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_switch.scss
34 lines (30 loc) · 928 Bytes
/
_switch.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
.switch {
label {
font-weight: normal;
font-size: 13px;
.lever {
margin: 0 14px;
}
input[type=checkbox] {
&:checked {
@each $key, $val in $colors {
&:not(:disabled) {
~ .lever.switch-col-#{$key} {
&:active {
&:after {
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba($val, 0.1);
}
}
}
}
+ .lever.switch-col-#{$key} {
background-color: rgba($val, 0.5);
&:after {
background-color: $val;
}
}
}
}
}
}
}