x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div class="accordion"> <details name="my_accordion"> <summary>How do I reset my password?</summary> <p class="pbe-4"> Click on 'Forgot Password' on the login page, enter your email address, and we'll send you a link to reset your password. The link will expire in 24 hours. </p> </details> <details name="my_accordion"> <summary>Can I change my subscription plan?</summary> <p class="pbe-4"> Yes, you can upgrade or downgrade your plan at any time from your account settings. Changes will be reflected in your next billing cycle. </p> </details> <details name="my_accordion"> <summary>What payment methods do you accept?</summary> <p class="pbe-4"> We accept all major credit cards, PayPal, and bank transfers. All payments are processed securely through our payment partners. </p> </details></div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div class="accordion"> <details name="my_accordion"> <summary>How do I reset my password?</summary> <p class="pbe-4"> Click on 'Forgot Password' on the login page, enter your email address, and we'll send you a link to reset your password. The link will expire in 24 hours. </p> </details> <details name="my_accordion"> <summary>Can I change my subscription plan?</summary> <p class="pbe-4"> Yes, you can upgrade or downgrade your plan at any time from your account settings. Changes will be reflected in your next billing cycle. </p> </details> <details name="my_accordion"> <summary>What payment methods do you accept?</summary> <p class="pbe-4"> We accept all major credit cards, PayPal, and bank transfers. All payments are processed securely through our payment partners. </p> </details></div>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
:where(.accordion) { details { border-block-end-width: var(--border); font-size: var(--text-sm); &::details-content { block-size: 0; opacity: 0; overflow: hidden; transition-behavior: allow-discrete; transition-duration: var(--time-200); transition-property: content-visibility, block-size, opacity; transition-timing-function: ease-out; } &[open]::details-content { block-size: auto; opacity: 1; } } summary { align-items: flex-start; cursor: default; display: flex; font-weight: var(--font-medium); padding-block: var(--size-2_5); &:hover { text-decoration: underline; } &:focus-visible { outline: var(--border-2) solid var(--color-selected-dark); } &[aria-disabled="true"] { opacity: var(--opacity-50); pointer-events: none; } &::after { background-color: currentColor; block-size: var(--size-4); color: var(--color-text-subtle); content: ""; inline-size: var(--size-4); margin-inline-start: auto; mask-image: url("chevron-down.svg"); mask-size: cover; transition-duration: var(--time-200); transition-property: transform; transition-timing-function: ease-out; } details[open] > &::after { transform: var(--rotate-180); } }}
Java Script is not required or multiple files are needed, check the notes.
No notes provided.