forked from gurayyarar/AdminBSBMaterialDesign
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_checkboxradio.scss
115 lines (104 loc) · 2.39 KB
/
_checkboxradio.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
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
[type="checkbox"] {
+ label {
padding-left: 26px;
height: 25px;
line-height: 21px;
font-size: 13px;
font-weight: normal;
}
&:checked {
+ label {
&:before {
top: -4px;
left: -2px;
width: 11px;
height: 19px;
}
}
}
@each $key, $val in $colors {
&:checked.chk-col-#{$key} {
+ label {
&:before {
border-right: 2px solid $val;
border-bottom: 2px solid $val;
}
}
}
}
}
[type="checkbox"].filled-in {
&:checked {
+ label {
&:after {
top: 0;
width: 20px;
height: 20px;
border: 2px solid #26a69a;
background-color: #26a69a;
z-index: 0;
}
&:before {
border-right: 2px solid #fff !important;
border-bottom: 2px solid #fff !important;
}
}
}
@each $key, $val in $colors {
&:checked.chk-col-#{$key} {
+ label {
&:after {
border: 2px solid $val;
background-color: $val;
}
}
}
}
}
[type="radio"] {
&:not(:checked) {
+ label {
padding-left: 26px;
height: 25px;
line-height: 25px;
font-size: 13px;
font-weight: normal;
}
}
&:checked {
+ label {
padding-left: 26px;
height: 25px;
line-height: 25px;
font-size: 13px;
font-weight: normal;
}
}
}
@each $key, $val in $colors {
[type="radio"].radio-col-#{$key} {
&:checked {
+ label {
&:after {
background-color: $val;
border-color: $val;
}
}
}
}
}
@each $key, $val in $colors {
[type="radio"].with-gap.radio-col-#{$key} {
&:checked {
+ label {
&:before {
border: 2px solid $val;
}
&:after {
background-color: $val;
border: 2px solid $val;
}
}
}
}
}