The first batch of WordPress add-ons rebuilt as packs: templates and styles only, no script. - faq: questions that open to show their answers (<details>), written in the section or shared from data/. - gallery: a picture grid; each opens full size with previous and next, using #links and :target, no script. - location-and-hours: address with an OpenStreetMap link, phone, email, opening hours and a note, from data/location.yaml, as a section or a partial for any layout. - team: a people collection with a page per person (photo, role, email, links), a list page and a Team section. - testimonials: quotes with a name and a role. Also: sections get .Index, their place on the page, so two galleries on a page don't share ids; pack templates may use tel: links; docs/packs.md lists the bundled packs. A new test installs each into the starter with real content, builds it, and runs the checks expecting no errors.
12 lines
910 B
CSS
12 lines
910 B
CSS
/* The questions and answers pack. Colors come from the theme's variables. */
|
|
.faq-list { display: grid; gap: 10px; max-width: 72ch; }
|
|
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
|
|
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 650; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
|
|
.faq-item summary::-webkit-details-marker { display: none; }
|
|
.faq-item summary::after { content: "+"; flex: none; color: var(--accent); font-weight: 750; font-size: 1.2em; line-height: 1; }
|
|
.faq-item[open] summary::after { content: "\2212"; }
|
|
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
|
|
.faq-answer { padding: 0 18px 16px; }
|
|
.faq-answer > :first-child { margin-top: 0; }
|
|
.faq-answer > :last-child { margin-bottom: 0; }
|