forked from sagarkumarojha/-melodic-cream-5493
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
59 lines (53 loc) · 955 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
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300&display=swap");
*{
margin:0;
padding:0;
box-sizing: border-box;
}
section{
min-width:100vh;
width:80%;
margin:0 auto;
display:flex;
flex-direction: column;
align-items: center;
font-family: "Quicksand",sans-serif;
}
.title{
font-size: 3rem;
margin:2 rem 0rem
}
.faq{
max-width: 700px;
margin-top: 2rem;
padding-bottom: 1rem;
border-bottom: 2px solid black;
cursor:pointer
}
.question{
display: flex;
justify-content: space-between;
align-items: center;
}
.question h2{
font-size: 2rem;
}
.answer{
max-height: 0;
overflow: hidden;
transition: max-height 1.4s ease;
}
.answer p{
padding-top: 1rem;
line-height: 1.4;
font-size: 1.4rem;
}
.faq.active .answer{
max-height: 300px;
}
.faq.active svg{
transform: rotate(180deg);
}
svg{
transition: transform 0.5s ease-in;
}