Skip to content

Commit 6093a3e

Browse files
committed
Fix Faq Style
1 parent a2fdc09 commit 6093a3e

File tree

1 file changed

+32
-56
lines changed

1 file changed

+32
-56
lines changed

src/pages/Faq/FaqPage.css

Lines changed: 32 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,69 @@
11
.faq-container {
22
margin: 0 auto;
33
padding: 20px;
4-
max-width: 850px;
54
}
65

7-
.faq-container .faq-item {
6+
.faq-item {
87
border: 1px solid #ddd;
9-
border-radius: 15px;
8+
border-radius: 5px;
109
margin-bottom: 10px;
11-
overflow: hidden;
12-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
13-
transition: box-shadow 0.3s ease;
1410
}
1511

16-
.faq-container .faq-item:hover {
17-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
12+
[data-theme='dark'] .faq-question {
13+
background-color: #131927;
14+
padding: 15px;
15+
cursor: pointer;
16+
display: flex;
17+
justify-content: space-between;
18+
align-items: center;
1819
}
1920

20-
21-
.faq-container .faq-question {
22-
background-color: #cef3cf;
23-
color: #003704;
24-
padding: 10px 15px;
25-
font-size: 17px;
21+
.faq-question {
22+
background-color: #f0f2f7;
23+
padding: 15px;
2624
cursor: pointer;
2725
display: flex;
2826
justify-content: space-between;
2927
align-items: center;
3028
font-weight: bold;
3129
transition: background-color 0.6s ease;
32-
border-radius: 10px 10px 0 0;
33-
}
34-
35-
36-
[data-theme='dark'] .faq-container .faq-question {
37-
background-color: #131927;
38-
color: #a5d6a7;
39-
}
40-
41-
.faq-container .faq-question:hover {
42-
background-color: #2bc830c5;
4330
}
4431

45-
[data-theme='dark'] .faq-container .faq-question:hover {
46-
background-color: #558b2f;
47-
}
48-
.faq-container .text--center {
49-
text-align: center;
50-
font-size: 2.5rem;
51-
font-weight: bold;
52-
margin: 20px 0;
32+
.faq-question:hover {
33+
background-color: #2E9E32E1;
5334
}
5435

55-
.faq-container .main-heading {
56-
text-align: center;
57-
font-size: 2.5rem;
58-
font-weight: bold;
59-
margin: 20px 0;
36+
[data-theme='dark'] .faq-question:hover {
37+
background-color: #25C2A0;
6038
}
6139

62-
63-
[data-theme='dark'] .faq-container .faq-answer {
64-
background-color: #2e7d32;
65-
color: #c8e6c9;
40+
[data-theme='dark'] .faq-answer {
41+
max-height: 0;
42+
overflow: hidden;
43+
transition: max-height 0.3s ease;
44+
background-color: #131927;
45+
padding: 0 15px;
6646
}
6747

68-
.faq-container .faq-answer {
48+
.faq-answer {
6949
max-height: 0;
7050
overflow: hidden;
71-
transition: max-height 0.3s ease, padding 0.6s ease;
72-
background-color: #e8f5e9;
73-
color: #1b5e20;
51+
transition: max-height 0.3s ease;
52+
background-color: #f0f2f7;
7453
padding: 0 15px;
7554
border-top: 1px solid #ddd;
76-
border-radius: 0 0 15px 15px;
7755
}
7856

79-
.faq-container .faq-answer.show {
80-
max-height: 300px;
57+
.faq-answer.show {
58+
max-height: 200px;
8159
padding: 15px;
8260
}
8361

84-
.faq-container .icon {
85-
font-size: 2.5rem;
86-
transition: transform 0.6s ease;
87-
color: #1b5e20;
88-
62+
.icon {
63+
font-size: 2rem;
64+
transition: transform 0.3s ease;
8965
}
9066

91-
.faq-container .icon.rotate {
67+
.icon.rotate {
9268
transform: rotate(180deg);
93-
}
69+
}

0 commit comments

Comments
 (0)