/
popup.css
92 lines (79 loc) · 1.54 KB
/
popup.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
80
81
82
83
84
85
86
87
88
89
90
91
92
/* Checkbox body */
label {
display: inline-block;
width: 40px;
height: 18px;
margin: 0px auto;
border-radius: 100px;
transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
background-color: #dd0000;
}
input {
display: none;
}
/* The toggle */
i {
height: 14px;
width: 14px;
background: #ffffff;
display: inline-block;
border-radius: 100px;
margin-top: 2px;
margin-left: 2px;
transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
pointer-events: none;
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
}
i.implied {
margin-left: 14px;
}
label.implied {
background-color: grey;
}
label:hover>i {
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.20);
transform: scale(1.01);
}
input:checked+label>i {
margin-left: 24px;
}
label:active {
background-color: #A6B9CB;
}
label:active>i {
width: 34px;
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.20);
}
input:checked+label:active>i {
margin-left: 4px;
}
input:checked+label {
background-color: green;
}
input:checked+label>i::after {
content: '✓';
position: relative;
left: 2px;
top: -1px;
line-height: 1.25; /*bodge for bootstrap*/
}
input:not(checked)+label>i::after {
content: '\1f6ab';
position: relative;
left: -1px;
top: -1px;
line-height: 1.25; /*bodge for bootstrap*/
}
input:not(checked)+label.implied>i::after {
content: '✓';
position: relative;
left: 2px;
top: -1px;
line-height: 1.25; /*bodge for bootstrap*/
}
.outofstate {
filter: brightness(0.75);
font-style: italic;
}