-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
74 lines (59 loc) · 915 Bytes
/
style.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
.form-group {
margin-bottom: 10px;
}
[type=checkbox], [type=radio] {
position: absolute;
left: -9999px;
+ label {
cursor: pointer;
position: relative;
padding-left: 20px;
&:before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 15px;
height: 15px;
border: 1px solid #ccc;
border-radius: 2px;
}
&:after {
position: absolute;
top: 0;
left: 2px;
color: green;
}
}
}
[type=checkbox] {
&:checked {
+ label {
&:after {
content: '✔';
}
}
}
}
[type=radio] {
+ label {
&:before {
border-radius: 50%;
}
&:after {
background-color: green;
top: 4px;
left: 4px;
width: 9px;
height: 9px;
border-radius: 50%;
}
}
&:checked {
+ label {
&:after {
content: '';
}
}
}
}