-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcontainers.css
More file actions
94 lines (80 loc) · 1.39 KB
/
Copy pathcontainers.css
File metadata and controls
94 lines (80 loc) · 1.39 KB
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
:root {
--primary-color: #e3e3e3;
--secondary-color: #3c3c3c;
}
menu {
margin-block-start: 10px;
}
menu > li {
display: flex;
margin-block-end: 6px;
}
.icon {
border: 0;
block-size: 20px;
inline-size: 20px;
margin-inline-end: 6px;
}
menu > li > .toggle {
margin-inline-start: auto;
}
.toggle {
-moz-appearance: none;
display: inline-flex;
inline-size: 50px;
background-color: var(--secondary-color);
border-radius: 2px;
position: relative;
cursor: pointer;
color: #fff;
border: 1px solid #000;
}
.toggle:focus {
border: 1px solid blue;
}
.toggle::before,
.toggle::after {
width: 23px;
padding: 2px;
max-block-size: 25px;
max-inline-size: 25px;
}
.toggle:checked::before,
.toggle::after {
content: " ";
padding: 0px;
background-color: var(--primary-color);
border-radius: 2px;
}
.toggle::before {
content: "OFF";
}
.toggle:checked::after {
content: "ON";
}
.toggle::before,
.toggle:checked::after {
background: unset;
font-size: 0.75em;
font-weight: bold;
text-transform: uppercase;
color: var(--primary-text-color);
}
button {
appearance: none;
background: #979797;
mask: url('img/container-newtab.svg') top left / contain;
border: none;
min-inline-size: 20px;
margin-inline-end: 6px;
margin-inline-start: 6px;
}
button:hover,
button:focus {
background: #0094fb;
}