-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
61 lines (52 loc) · 964 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');
* {
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: darkslategray;
font-family: 'Poppins', sans-serif;
}
ul {
width: max(500px, 40vw);
list-style-type: none;
margin: 0;
padding: 0;
max-width: 90vw;
}
li {
background-color: white;
padding: 1em;
margin: 0.5em;
border-radius: 10px;
}
label {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
font-size: 1.125rem;
font-weight: bold;
width: 100%;
color: red;
padding: 0.5em;
}
label span {
transform: rotate(90deg);
}
input[type='radio'] {
display: none;
}
aside {
width: 100%;
max-height: 0px;
overflow: hidden;
transition: max-height 300ms ease-in-out;
padding: 0 0.5em;
}
input[type='radio']:checked + aside {
max-height: 400px;
}