UNPKG

1.14 kBSCSSView Raw
1@import '../../styles/mixins.scss';
2
3.s-checkbox-container {
4 display: flex;
5 align-items: center;
6 position: relative;
7 user-select: none;
8
9 .s-checkbox {
10 cursor: pointer;
11 height: 31px;
12 width: 49px;
13 background: s-color(neutral, 000);
14 border-radius: 15px;
15 border: 1px solid s-color(neutral, 400);
16 box-sizing: border-box;
17 position: relative;
18 }
19
20 .s-checkmark {
21 cursor: pointer;
22 height: 20px;
23 width: 20px;
24 background-color: s-color(neutral, 000);
25 border-radius: 2px;
26 border: 1px solid s-color(primary, 400);
27 box-sizing: border-box;
28 display: flex;
29 align-items: center;
30 justify-content: center;
31 color: s-color(neutral, 000);
32 margin-right: s-space(tight);
33 }
34
35 .s-checkmark:after {
36 content: "";
37 position: absolute;
38 display: none;
39}
40
41 .s-checkmark:after {
42 left: 9px;
43 top: 5px;
44
45 }
46
47 input[type=checkbox]:checked ~ .s-checkmark {
48 background: s-color(primary, 400);
49 }
50
51 input[type=checkbox]:checked ~ .s-checkmark:after {
52 display: block;
53 }
54
55 input[type=checkbox] {
56 height: 0;
57 width: 0;
58 visibility: hidden;
59 }
60}
\No newline at end of file