forked from ErikBoesen/BWNT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.css
153 lines (149 loc) · 3.01 KB
/
options.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
* {
transition: .3s;
}
p, select {
font-size: 1.3em;
display: inline-block;
}
.switch {
margin: 30px 0 10px;
}
.switch p {
margin: 0 6px;
}
.switch p:last-child {
margin-left: 52px;
}
.switch input {
display: none;
}
.switch label {
position: relative;
cursor: pointer;
height: 20px;
top: 2px;
}
.switch label:before,
.switch label:after {
content: '';
position: absolute;
}
.switch label:before {
top: 0;
height: 10px;
width: 45px;
border-radius: 10px;
}
.switch label:after {
width: 20px;
height: 20px;
top: -5px;
left: 0;
border-radius: 50%;
box-shadow: 0 0 2px rgba(0, 0, 0, .5);
transition: .1s;
}
.switch input:checked + label:after {
left: 25px;
}
section {
margin-top: 10px;
}
.checkbox {
position: relative;
}
.checkbox label {
width: 22px;
height: 22px;
position: absolute;
border: solid 2px black;
top: 2px;
left: 2px;
cursor: pointer;
background: white;
border-radius: 50px;
}
.checkbox label:after {
content: '';
width: 9px;
height: 5px;
position: absolute;
top: 6px;
left: 5px;
border: 3px solid black;
border-top: none;
border-right: none;
opacity: 0;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
transition: .1s;
}
.checkbox input {
visibility: hidden;
}
.checkbox input:checked + label:after {
opacity: 1;
transition: .1s;
}
.checkbox p {
margin-left: 12px;
margin-top: 7px;
}
.select,
select {
width: 130px;
height: 30px;
}
.select {
margin-top: 3px;
border: solid 2px #333;
overflow: hidden;
opacity: .5;
}
select {
outline: 0;
border: 0;
background: 0;
color: 0;
text-align: center;
user-select: none;
cursor: pointer;
}
.light .switch label:before,
.light .switch label:after { background: #333; }
.light .checkbox label { background: white; }
.light div,
.light .checkbox label { border-color: #333; }
.light select,
.light select { background: white;}
.light select { color: #333;}
.light p { color: #333; }
.night .switch label:before,
.night .switch label:after { background: white; }
.night .checkbox label { background: #222; }
.night div,
.night .checkbox label,
.night .checkbox label:after { border-color: white; }
.night select,
.night select { background: #222;}
.night select { color: white;}
.night p { color: white; }
.dark .switch label:before,
.dark .switch label:after { background: #111; }
.dark .checkbox label { background: #333; }
.dark div,
.dark .checkbox label { border-color: #111; }
.dark select,
.dark select { background: #333;}
.dark select { color: #111;}
.dark p { color: #111; }
.material .switch label:before,
.material .switch label:after { background: #00BCD4; }
.material .checkbox label { background: #263238; }
.material div,
.material .checkbox label,
.material .checkbox label:after { border-color: white; }
.material select,
.material select { background: #263238;}
.material select { color: white;}
.material p { color: white; }