-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
71 lines (60 loc) · 1.08 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
body {
font-family: 'Roboto', sans-serif;
font-weight: 400;
}
.container {
width: 500px;
margin: 50px auto;
}
.accordions {
border-radius: 8px;
overflow: hidden;
font-size: 1.2em;
}
.accordion {
width: 100%;
color: white;
overflow: hidden;
}
.acc-label {
display: flex;
justify-content: space-between;
padding: 1em;
background-color: #c72aee;
font-weight: 500;
cursor: pointer;
}
.accordion:first-child {
border-bottom: 1px solid;
}
.acc-label:hover {
background-color: #9e1caf;
}
.acc-label::after {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f107";
width: 1em;
height: 1em;
text-align: center;
transition: all 0.4s ease;
}
.acc-content {
max-height: 0;
padding: 0 1em;
color: aliceblue;
background-color: #cc85e7;
transition: all 0.4s ease;
}
input {
position: absolute;
opacity: 0;
z-index: -1;
}
input:checked+.acc-label::after {
transform: rotate(-90deg);
}
input:checked~.acc-content {
max-height: 100vh;
padding: 1em;
}