/
style.css
65 lines (53 loc) · 990 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
59
60
61
62
63
64
65
body{
font-family: "Roboto", "Sans Serif";
font-size: 18pt;
color: #fff;
background: #546e7a;
}
p{
font-size: 12pt;
}
.wrapper{
margin: 10% auto;
width: 400px;
}
ul{
list-style: none;
margin: 0;
padding: 0;
}
label{
display: block;
cursor: pointer;
padding: 10px;
border: 1px solid #fff;
border-bottom: none;
}
label:hover{
background: #29434e;
}
label.last{
border-bottom: 1px solid #fff;
}
ul ul li{
padding: 10px;
background: #819ca9;
}
input[type="checkbox"]{
position: absolute;
left: -9999px;
}
input[type="checkbox"] ~ ul{
height: 0;
transform: scaleY(0);
}
input[type="checkbox"]:checked ~ ul{
height: 100%;
transform-origin: top;
transition: transform .2s ease-out;
transform: scaleY(1);
}
input[type="checkbox"]:checked + label{
background: #29434e;
border-bottom: 1px solid #fff;
}