-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
58 lines (51 loc) · 904 Bytes
/
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
body {
text-align:center;
width:500px;
background-color: #708090;
color: white;
font-family: 'Parisienne', cursive;
font-size: medium;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
}
input[type=checkbox]{
display: flex;
justify-content: center;
height: 0;
width: 0;
visibility: hidden;
}
label {
cursor: pointer;
text-indent: -9999px;
width: 80px;
height: 50px;
background: rgb(198, 193, 193);
display: block;
border-radius: 100px;
position: relative;
}
label:after {
content: '';
position: absolute;
top: 5px;
left: 5px;
width: 40px;
height: 40px;
background: #fff;
border-radius: 90px;
transition: 0.3s;
}
input:checked + label {
background: linear-gradient(#60cde0, #eaa5ae);
}
input:checked + label:after {
left: calc(100% - 5px);
transform: translateX(-100%);
}
label:active:after {
width: 100px;
}