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.
13 lines
1.1 KiB
CSS
13 lines
1.1 KiB
CSS
/* The team pack. Colors come from the theme's variables. */
|
|
.team-grid { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
|
|
.team-card { text-align: center; display: grid; gap: 4px; justify-items: center; }
|
|
.team-card a { display: grid; gap: 10px; justify-items: center; color: var(--text); text-decoration: none; }
|
|
.team-card a:hover strong { color: var(--accent); }
|
|
.team-photo { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--accent-soft); }
|
|
.team-initial { display: grid; place-items: center; font-size: 3rem; font-weight: 750; color: var(--accent); }
|
|
.team-role { color: var(--muted); font-size: .95rem; margin: 0; }
|
|
.person-head { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin: 0 0 28px; }
|
|
.person-head h1 { margin: 0 0 4px; }
|
|
.person-head .team-photo { width: 180px; height: 180px; }
|
|
.person-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
|