-
Notifications
You must be signed in to change notification settings - Fork 681
Expand file tree
/
Copy pathfaq_page.css
More file actions
83 lines (71 loc) · 1.32 KB
/
faq_page.css
File metadata and controls
83 lines (71 loc) · 1.32 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
*{
box-sizing: border-box;
padding: 0;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
margin: 0;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: aliceblue;
}
.container {
display: flex;
flex-direction: column;
gap: 2rem;
max-width: 700px;
margin: 2rem 0;
}
.container h1{
color: #555;
}
.container .stack{
background: white;
padding: 0 20px 20px;
border-radius: .3rem;
box-shadow: 2px 2px 15px 0 rgba(0, 0, 0.307);
position: relative;
}
.stack label{
display: flex;
gap: 1rem;
align-items: center;
cursor: pointer;
}
.stack label h2{
width: 35px;
height: 35px;
background: black;
color: white;
border-radius: 0.3rem;
display: flex;
justify-content: center;
align-items: center;
}
.stack label::after{
content: "+";
position: absolute;
right: 20px;
font-size: 2rem;
color: rgb(118, 115, 115);
}
.stack:hover label::after{
color: rgb(37, 36, 36);
transition: .5s;
}
.stack input:checked ~ label::after{
transform: rotate(135deg);
}
.stack input{
appearance: none;
}
.content{
max-height: 0;
overflow: hidden;
transition: .5s;
}
.stack input:checked ~ .content{
max-height: 100vh;
}