-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfaq.css
More file actions
64 lines (56 loc) · 1.19 KB
/
faq.css
File metadata and controls
64 lines (56 loc) · 1.19 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
.faq-container {
padding: 20px;
background-color: black;
color: white;
font-family: Arial, sans-serif;
border-radius: 8px;
margin: 20px auto;
max-width: 1200px;
}
.faq-item {
margin-bottom: 10px;
}
.faq-question {
cursor: pointer;
padding: 10px;
background-color: #612685;
border: 1px solid #a020f0;
border-radius: 4px;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0;
text-align: left;
font-size: clamp(16px, 1.5vw, 20px);
}
.faq-question.open {
background-color: #a020f0;
}
.faq-answer {
padding: 10px;
background-color: #333;
border-radius: 4px;
margin-top: 0;
}
.faq-answer {
max-height: 0;
overflow: hidden;
opacity: 0;
transition: max-height 0.3s ease, opacity 0.3s ease;
}
.faq-answer.open {
max-height: 500px;
opacity: 1;
font-size: clamp(16px, 1.5vw, 20px)
}
/* Mobile screens */
@media (max-width: 768px) {
.faq-answer {
text-align: center; /* Center text for mobile screens */
}
.faq-question{
text-align: center;
flex-direction: column;
}
}