-
Notifications
You must be signed in to change notification settings - Fork 0
/
faqstyle.css
72 lines (61 loc) · 1.27 KB
/
faqstyle.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
72
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Open Sans', sans-serif;
color: #fff;
background-image: url(https://wallpaperaccess.com/full/2112.jpg);
background-size: 100vh 100vw;
}
.title {
font-size: 50px;
text-align: center;
margin-top: 80px;
margin-bottom: 40px;
text-decoration: underline 4px;
}
.questions-container {
max-width: 800px;
margin: 0 auto;
}
.question {
border-bottom: 1px solid #fff;
}
.question button {
width: 100%;
background-color: #212020;
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 15px;
border: none;
outline: none;
font-size: 22px;
color: #fff;
font-weight: 700;
cursor: pointer;
}
.question p {
font-size: 22px;
max-height: 0;
opacity: 0;
line-height: 1.5;
overflow: hidden;
transition: all 0.6s ease;
}
.d-arrow {
transition: transform 0.5s ease-in;
color: #fff;
}
/*add this class when click*/
.question p.show {
max-height: 200px;
opacity: 1;
padding: 0px 15px 30px 15px;
background-color: #2b2b2b;
}
.question button .d-arrow.rotate {
transform: rotate(180deg);
}