-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
91 lines (89 loc) · 1.77 KB
/
Copy pathstyle.css
File metadata and controls
91 lines (89 loc) · 1.77 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
@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Source+Sans+Pro&family=Source+Serif+Pro:wght@200&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
background: #060606;
align-items: center;
justify-content: center;
height: 100vh;
width: 100%;
}
ul {
position: relative;
margin: 0;
padding: 0;
display: flex;
}
ul li {
list-style: none;
position: relative;
width: 100px;
text-align: center;
}
ul li label {
position: relative;
}
ul li label i,
ul li label input[type="checkbox"] {
display: block;
text-align: center;
}
ul li label i {
font-size: 36px;
color: #222;
transition: 0.5s;
}
ul li label input[type="checkbox"] {
position: absolute;
opacity: 0;
cursor: pointer;
}
ul li label .check {
position: relative;
display: block;
width: 50px;
height: 50px;
background: linear-gradient(#000, #333);
border-radius: 50%;
margin: 10px auto 0;
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
}
ul li label .check::before {
position: absolute;
content: "";
width: 8px;
height: 8px;
border-radius: 50%;
background: #1b1b1b;
transition: 0.3s;
}
ul li label .check::after {
content: "";
position: absolute;
top: 6px;
left: 6px;
right: 6px;
bottom: 6px;
border-radius: 50%;
transition: 0.3s;
z-index: 2;
border: 2px solid #161616;
cursor: pointer;
}
ul li label input[type="checkbox"]:checked ~ .check::before {
background: rgb(255, 34, 34);
box-shadow: 0 0 10px rgb(255, 34, 34), 0 0 15px rgb(255, 34, 34),
0 0 20px rgb(255, 34, 34), 0 0 25px rgb(255, 34, 34),
0 0 0 2px rgb(255, 34, 34);
}
ul li label input[type="checkbox"]:checked ~ i {
color: rgb(255, 34, 34);
}