1
1
.faq-container {
2
2
margin : 0 auto;
3
3
padding : 20px ;
4
- max-width : 850px ;
5
4
}
6
5
7
- .faq-container . faq- item {
6
+ .faq-item {
8
7
border : 1px solid # ddd ;
9
- border-radius : 15 px ;
8
+ border-radius : 5 px ;
10
9
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;
14
10
}
15
11
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;
18
19
}
19
20
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 ;
26
24
cursor : pointer;
27
25
display : flex;
28
26
justify-content : space-between;
29
27
align-items : center;
30
28
font-weight : bold;
31
29
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 ;
43
30
}
44
31
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 ;
53
34
}
54
35
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 ;
60
38
}
61
39
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 ;
66
46
}
67
47
68
- .faq-container . faq- answer {
48
+ .faq-answer {
69
49
max-height : 0 ;
70
50
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 ;
74
53
padding : 0 15px ;
75
54
border-top : 1px solid # ddd ;
76
- border-radius : 0 0 15px 15px ;
77
55
}
78
56
79
- .faq-container . faq- answer .show {
80
- max-height : 300 px ;
57
+ .faq-answer .show {
58
+ max-height : 200 px ;
81
59
padding : 15px ;
82
60
}
83
61
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;
89
65
}
90
66
91
- .faq-container . icon .rotate {
67
+ .icon .rotate {
92
68
transform : rotate (180deg );
93
- }
69
+ }
0 commit comments