/
style.css
106 lines (89 loc) · 1.64 KB
/
style.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
body {
background-color: #fff;
font-family: sans-serif;
width: 348px;
margin: 0;
}
.header {
line-height: 20px;
padding: 18px;
border-bottom: 1px solid #ddd;
text-align: center;
}
.header h3 {
margin: 0;
}
.flex {
display: flex;
}
/* Settings and Options CSS */
.settings {
max-width: 300px;
margin: auto;
}
.title {
font-size: 16px;
font-weight: 700;
line-height: 24px;
margin: 18px 0;
}
.option {
font-size: 14px;
line-height: 20px;
padding: 16px 0;
align-items: center;
position: relative;
margin: auto;
}
.option label {
width: 100%;
height: 100%;
align-items: flex-start;
position: relative;
cursor: pointer;
}
/* Toggle Switch CSS */
.toggle {
flex-direction: row-reverse;
}
.toggle input {
display: none;
cursor: pointer;
}
.toggle .control {
right: 0;
height: 20px;
width: 50px;
border-radius: 10px;
background-color: #6d758d;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
position: absolute;
transition: background-color 0.15s ease-in;
}
.toggle input:checked ~ .control {
background-color: #11a683;
}
.toggle input:checked ~ .control:hover {
background-color: #15c39a;
}
.toggle input ~ .control:hover {
background-color: #9fa6bf;
}
.toggle .control:after {
content: "";
top: 2px;
left: 2px;
width: 16px;
height: 16px;
border-radius: 8px;
background-color: #fff;
position: absolute;
display: inline-block;
transition: left 0.15s ease-in;
}
.toggle input:checked ~ .control:after {
left: 32px;
}