-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
78 lines (69 loc) · 1.22 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
/* Use the 'Roboto' font for all elements */
* {
font-family: 'Roboto', sans-serif;
color: white;
padding: 0;
margin: 0;
}
body {
background-color: #292f33;
width: 300px;
height: 120px;
padding-top: 30px;
}
h1 {
text-align: center;
font-size: 2em;
}
.main-container {
display: flex;
flex-direction: row;
width: 100%;
height: 90%;
padding-top: 20px;
padding-bottom: 30px;
}
.left-column {
display: flex;
flex-direction: column;
width: 70%;
justify-content: space-between;
padding-left: 20px;
}
.right-column {
display: flex;
flex-direction: column;
width: 30%;
justify-content: space-between;
}
label {
font-size: 16px;
}
.switch {
position : relative ;
display : inline-block;
width : 40px;
height : 20px;
background-color: #66757f;
border-radius: 20px;
}
.switch::after {
content: '';
position: absolute;
width: 18px;
height: 18px;
border-radius: 50%;
background-color: white;
top: 1px;
left: 1px;
transition: all 0.3s;
}
input:checked + .switch::after {
left : 20px;
}
input:checked + .switch {
background-color: #1DA1F2;
}
input {
display : none;
}