-
Notifications
You must be signed in to change notification settings - Fork 4
/
styles.css
79 lines (65 loc) · 1.46 KB
/
styles.css
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
@import "fyndiq-styles-colors/colors.css";
.wrapper {
display: inline-flex;
vertical-align: top;
&:not(.wrapperDisabled) {
cursor: pointer;
}
}
.wrapperDisabled {
color: var(--color-lightgrey);
}
.checkmark {
display: inline-block;
width: 14px;
height: 16px;
align-self: center;
}
.checkbox {
appearance: none;
outline: none;
position: relative;
top: 3px;
height: 16px;
width: 16px;
margin: 0 4px;
padding: 1px;
border: 1px solid var(--color-border);
border-radius: 2px;
text-align: center;
font-size: 11px;
cursor: pointer;
&:before {
content: "✓";
color: white;
opacity: 0;
}
&:focus {
border-color: var(--color-lightgrey);
}
&:indeterminate {
background: linear-gradient(-45deg, var(--color-red), transparent, var(--color-red), transparent, var(--color-red), transparent, var(--color-red), transparent, var(--color-red), transparent, var(--color-red), transparent, var(--color-red), transparent, var(--color-red), transparent);
}
/* Hide the checkbox when not in frame mode */
&:not(.checkboxFrame) {
display: none;
}
/* Hide the custom checkmark when the checkbox is not checked */
&:not(:checked) + .checkmark {
opacity: 0;
}
&:checked {
border-color: var(--color-red);
background: var(--color-red);
&:before {
opacity: 1;
}
&:focus {
border-color: var(--color-border);
}
}
}
.label {
display: inline-block;
margin-left: 4px;
}