-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
67 lines (58 loc) · 1000 Bytes
/
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
body {
width: 200px;
margin: 0;
padding: 20px;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
background-color: #fff;
color: #333;
text-align: center;
}
img {
margin: auto;
display: block;
}
.switch {
margin-bottom: 10px;
align-items: center;
display: flex;
gap: 10px;
}
.switch input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
.slider {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
background-color: #ccc;
border-radius: 20px;
transition: background-color 0.2s;
}
.slider:before {
content: "";
position: absolute;
height: 16px;
width: 16px;
left: 2px;
bottom: 2px;
background-color: white;
transition: transform 0.2s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #2196f3;
}
input:checked + .slider:before {
transform: translateX(20px);
}
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}