faqs.css in AI Builder – Generate pages, blocks, images & translate with AI 2.7.1, at assets/css/faqs.css
| 1 | .faq-list { |
| 2 | width: 100%; |
| 3 | max-width: 700px; |
| 4 | margin: 0 auto; |
| 5 | display: flex; |
| 6 | flex-direction: column; |
| 7 | gap: 8px; |
| 8 | } |
| 9 | |
| 10 | .faq-group-margin { |
| 11 | margin: 40px auto; |
| 12 | padding: 0 24px; |
| 13 | max-width: 800px; |
| 14 | box-sizing: border-box; |
| 15 | } |
| 16 | |
| 17 | .faq-item { |
| 18 | border-bottom: 1px solid #e5e5e5; |
| 19 | padding: 0.5rem 0; |
| 20 | transition: background 0.2s; |
| 21 | } |
| 22 | |
| 23 | .faq-question { |
| 24 | font-size: 1.15rem; |
| 25 | font-weight: 600; |
| 26 | color: #111; |
| 27 | cursor: pointer; |
| 28 | margin: 0; |
| 29 | display: flex; |
| 30 | align-items: center; |
| 31 | gap: 8px; |
| 32 | } |
| 33 | |
| 34 | .faq-answer { |
| 35 | font-size: 1rem; |
| 36 | color: #444; |
| 37 | margin: 0.5rem 0 0.5rem 0; |
| 38 | line-height: 1.5; |
| 39 | display: none; |
| 40 | } |
| 41 | |
| 42 | .faq-item.faq-open .faq-answer { |
| 43 | display: block; |
| 44 | animation: fadeIn 0.3s; |
| 45 | } |
| 46 | |
| 47 | .faq-item.faq-open { |
| 48 | background: #f8faff; |
| 49 | } |
| 50 | |
| 51 | @media (max-width: 600px) { |
| 52 | .faq-list { |
| 53 | max-width: 100%; |
| 54 | padding: 0 8px; |
| 55 | } |
| 56 | .faq-question { |
| 57 | font-size: 1rem; |
| 58 | } |
| 59 | .faq-answer { |
| 60 | font-size: 0.95rem; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | @keyframes fadeIn { |
| 65 | from { opacity: 0; } |
| 66 | to { opacity: 1; } |
| 67 | } |