-
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) · 2 KB
/
styles.css
File metadata and controls
98 lines (85 loc) · 2 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
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap');
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Nunito', sans-serif;
}
.container {
min-height: 92vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.container h1 {
padding: 2rem 0;
color: #fff;
font-size: 1.5rem;
text-align: center;
letter-spacing: 1px;
}
.container .switch {
height: 80px;
background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%);
padding: 0 1.5rem;
border-radius: 0.75rem;
display: flex;
align-items: center;
cursor: pointer;
}
.container .switch .input {
display: none;
}
.container .switch .rail {
position: relative;
width: 88px;
height: 28px;
background-color: #fff;
border-radius: 3rem;
}
.container .switch .rail .circle {
display: block;
width: 36px;
height: 36px;
background-image: linear-gradient(to right, #b8cbb8 0%, #b8cbb8 0%, #b465da 0%, #cf6cc9 33%, #ee609c 66%, #ee609c 100%);
border-radius: 50%;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0;
transition: transform 0.4s;
}
.container .switch .indicator {
width: 15px;
height: 15px;
background-color: #fff;
border-radius: 50%;
margin-left: 1.5rem;
transition: 0.4s;
}
.container .switch .input:checked ~ .rail .circle {
transform: translate(52px, -50%);
}
.container .switch .input:checked ~ .indicator {
background-color: #43e97b;
}
.footer{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%);
min-height: 8vh;
}
.footer a{
font-size: 1.2rem;
text-decoration: none;
text-align: center;
margin: .5rem;
color: #fff;
background-image: linear-gradient(to right, #b8cbb8 0%, #b8cbb8 0%, #b465da 0%, #cf6cc9 33%, #ee609c 66%, #ee609c 100%);
padding:.5rem .73rem;
border-radius: 25%;
}