-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
73 lines (63 loc) · 1.16 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
button{
border: none;
background-color: orange;
border-radius: 12px;
transition: 200ms;
height: 70px;
width: 70px;
}
button:hover{
background-color: rgb(237, 154, 0);
transform: translateY(-5%);
}
button:active{
background-color: rgb(207, 134, 0);
transform: translateY(10%);
}
input[type=checkbox]{
height: 0;
width: 0;
visibility: hidden;
}
label {
cursor: pointer;
text-indent: -9999px;
width: 200px;
height: 100px;
background: grey;
display: block;
border-radius: 100px;
position: relative;
}
label:after {
content: '';
position: absolute;
top: 5px;
left: 5px;
width: 90px;
height: 90px;
background: #fff;
border-radius: 90px;
transition: 0.3s;
}
input:checked + label {
background: #bada55;
}
input:checked + label:after {
left: calc(100% - 5px);
transform: translateX(-100%);
}
label:active:after {
width: 130px;
}
body{
font-family:Verdana, Geneva, Tahoma, sans-serif;
font-size: larger;
text-align: center;
background-color: rgb(20, 20, 87);
color: white;
transition: 700ms;
}
#vuvu{
text-align: left;
}