-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaq.scss
More file actions
101 lines (89 loc) · 1.81 KB
/
Copy pathfaq.scss
File metadata and controls
101 lines (89 loc) · 1.81 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
95
96
97
98
99
100
101
.faq {
background: #000;
position: relative;
}
.faq-list {
max-width: 760px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.faq-item {
background: rgba(255, 255, 255, 0.02);
border: 1px solid var(--border);
border-radius: 14px;
overflow: hidden;
transition: background 0.25s ease, border-color 0.25s ease;
&.is-open {
background: rgba(255, 255, 255, 0.04);
border-color: var(--border-strong);
.faq-icon { transform: rotate(180deg); }
.faq-a-wrap {
grid-template-rows: 1fr;
opacity: 1;
}
}
}
.faq-q {
width: 100%;
background: transparent;
border: 0;
cursor: pointer;
padding: 1.125rem 1.25rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
font-size: 1rem;
font-weight: 500;
color: #fff;
text-align: left;
font-family: inherit;
}
.faq-icon {
flex-shrink: 0;
width: 18px;
height: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 0.875rem;
color: var(--text-dim);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}
.faq-q:hover .faq-icon {
color: #fff;
}
.faq-a-wrap {
display: grid;
grid-template-rows: 0fr;
opacity: 0;
visibility: hidden;
transition:
grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.25s ease,
visibility 0s linear 0.35s;
}
.is-open .faq-a-wrap {
visibility: visible;
transition:
grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
opacity 0.25s ease 0.05s,
visibility 0s linear 0s;
}
.faq-a-inner {
overflow: hidden;
min-height: 0;
}
.faq-a {
padding: 0 1.25rem 1.25rem;
color: var(--text-dim);
font-size: 0.9375rem;
line-height: 1.65;
}
@media (prefers-reduced-motion: reduce) {
.faq-a-wrap, .faq-icon {
transition: none;
}
}