-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
98 lines (85 loc) · 1.38 KB
/
styles.css
File metadata and controls
98 lines (85 loc) · 1.38 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
95
96
97
98
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
width: 300px;
background: #fff;
}
.container {
padding: 20px;
}
h1 {
font-size: 24px;
color: #1da1f2;
margin-bottom: 5px;
font-weight: 700;
}
.subtitle {
font-size: 13px;
color: #657786;
margin-bottom: 25px;
}
.toggle-container {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
padding: 15px;
background: #f7f9fa;
border-radius: 10px;
}
.toggle-switch {
position: relative;
display: inline-block;
width: 50px;
height: 26px;
cursor: pointer;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: 0.3s;
border-radius: 26px;
}
.slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 3px;
bottom: 3px;
background-color: white;
transition: 0.3s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #1da1f2;
}
input:checked + .slider:before {
transform: translateX(24px);
}
.toggle-label {
font-size: 16px;
font-weight: 600;
color: #14171a;
min-width: 40px;
}
.info {
font-size: 12px;
color: #657786;
line-height: 1.5;
text-align: center;
}