-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
88 lines (77 loc) · 1.49 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
* {
margin: 0;
padding: 0;
font-family: "Noto Serif JP", serif;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #001925;
}
.list {
position: relative;
padding: 30px 75px 10px 75px;
background: #042b3e;
border-top: 50px solid #03a9f4;
}
.list h2 {
padding: 10px 0;
margin-left: 10px;
font-size: 35px;
color: #ffffff;
border-bottom: 4px solid #ffffff;
}
.list label {
position: relative;
display: block;
margin: 40px 0;
font-size: 24px;
color: #ffffff;
cursor: pointer;
}
.list input[type="checkbox"] {
-webkit-appearance: none;
}
.list i {
position: absolute;
top: 3px;
width: 25px;
height: 25px;
border: 2px solid #ffffff;
}
.list input[type="checkbox"]:checked ~ i {
top: 1px;
border-top: none;
border-right: none;
height: 15px;
width: 25px;
transform: rotate(-45deg);
}
.list span {
position: relative;
left: 40px;
transition: 1s;
}
.list span:before {
content: "";
position: absolute;
top: 60%;
left: 0;
width: 100%;
height: 1px;
background-color: #fff;
transform: scaleX(0);
transform-origin: center;
transition: transform 1s;
}
.list input[type="checkbox"]:checked ~ span:before {
transform: scaleX(1);
transform-origin: center;
transition: transform 1s;
}
.list input[type="checkbox"]:checked ~ span {
color: #154e6b;
}