-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaq.css
More file actions
94 lines (82 loc) · 1.72 KB
/
Copy pathfaq.css
File metadata and controls
94 lines (82 loc) · 1.72 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* Light + Dark themes unchanged from your original */
@media (prefers-color-scheme: light) {
:root {
--bg: #ffffff;
--border: #e1e4e8;
--border-hover: #c1c8cd;
--summary-color: #0c5baa;
--text-color: #586069;
}
}
/* Dark mode variables */
@media (prefers-color-scheme: dark) {
:root {
--bg: #2a2a2a;
--border: #3a3a3a;
--border-hover: #4a4a4a;
--summary-color: #1254ab;
--text-color: #764ba2;
}
}
.faq-container {
width: 100%;
margin: 20px auto;
padding: 20px;
line-height: 1.6;
& summary {
color: var(--summary-color);
font-weight: 600;
font-size: 1.125rem;
cursor: pointer;
}
/* Keep rest of your existing CSS structure */
& h1 {
text-align: center;
margin-bottom: 40px;
font-size: 2.5rem;
font-weight: 700;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
& details {
background: var(--faq-bg);
border-radius: 12px;
border: 1px solid var(--border);
padding: 20px;
margin-bottom: 16px;
transition: all 0.3s ease;
&:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(215, 81, 202, 0.12);
border-color: var(--border-hover);
}
&:open {
border: 2px dashed grey;
}
}
& p {
margin-top: 16px;
font-size: 1rem;
color: var(--text-color);
line-height: 1.7;
}
}
/* Responsive design */
@media (max-width: 768px) {
.faq-container {
margin: 10px;
padding: 10px;
& h1 {
font-size: 2rem;
margin-bottom: 30px;
}
* summary {
font-size: 1rem;
}
& p {
font-size: 0.9375rem;
}
}
}