-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
55 lines (46 loc) · 953 Bytes
/
style.css
File metadata and controls
55 lines (46 loc) · 953 Bytes
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
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: #e6e6ef;
}
div{
position: absolute;
transform: translate(-50%, 50%);
left: 50%;
top: 50%;
display: flex;
}
div label input{
display: none; /*position: absolute, visibility: hidden;*/
}
div label span{
display: flex;
align-items: center;
padding: 0.25em 0.75em 0.25em 0.35em;
border-radius: 20px;
margin-left: 20px;
font-family: 'Lato', sans-serif;
}
div label span:before{
content: "";
width: 20px;
height: 20px;
border-radius: 50%;
border: 2px solid black;
transition: all 0.3s ease;
background-color: #fff;
margin-right: 10px;
}
div label span:hover{
background-color: #d6d6e5;
}
label input:checked + span:before{
box-shadow: 0 0 0 6px #00005c inset;
}
label input:checked + span{
background-color: #d6d6e5;
}