-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
64 lines (57 loc) · 1.11 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
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html , body{
height: 100%;
width: 100%;
font-family: Arial, Helvetica, sans-serif;
}
body{
background-color: cornflowerblue;
padding: 40px;
line-height: 1.8rem;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 30px;
}
.faq{
color: #fff;
margin-bottom: 20px;
}
.content{
background-color: #fff;
padding: 10px 16px;
border-radius: 10px;
overflow: hidden;
cursor: pointer;
}
.question{
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0px;
}
.icon{
margin-right: 20px;
font-size: 25px;
transition: transform ease-in-out 0.5s;
}
.icon.active{
transform: rotate(-180deg);
}
.answer{
max-height:0 ;
opacity: 0;
transition: all ease 0.4s ;
color: #666;
}
.answer.active{
margin-top: 20px;
max-height: fit-content;
opacity: 1;
}