Files
jcoffey-dev 6fb7e82f94
ci / editor-ui (pull_request) Successful in 58s
ci / go (pull_request) Successful in 1m47s
Five more packs: docs, downloads, menu-and-prices, portfolio, share-links
The second batch of WordPress add-ons rebuilt as packs, templates and styles only:

- docs: a documentation section with a sidebar, part pages and previous/next, in the order data/docs-nav.yaml gives (the layout behind hotdogcms.org/docs, without its search script).
- downloads: files to download, with their type and size read from the file at build time.
- menu-and-prices: a price list in groups (a menu, services) and plans side by side.
- portfolio: a work collection with a cover, details and pictures per project, a list page and a section.
- share-links: plain links to Mastodon, Bluesky, LinkedIn and email share pages; nothing loads from those sites until someone chooses one.

Also a fileSize template function ("1.2 MB" for a file in static/, "" if it isn't there). The bundled-packs test covers all ten.
2026-10-11 17:16:07 -07:00

16 lines
1.5 KiB
CSS

/* The portfolio pack. Colors come from the theme's variables. */
.pf-grid { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pf-card a { display: grid; gap: 10px; color: var(--text); text-decoration: none; }
.pf-card a:hover strong { color: var(--accent); }
.pf-card strong { font-size: 1.1rem; }
.pf-card p { margin: 4px 0 0; color: var(--muted); }
.pf-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--accent-soft); display: block; }
.pf-hero { width: 100%; max-height: 70vh; object-fit: cover; border-radius: var(--radius); margin: 8px 0 24px; }
.pf-facts { display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.pf-facts dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.pf-facts dd { margin: 2px 0 0; }
.pf-pictures { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.pf-pictures figure { margin: 0; } .pf-pictures img { width: 100%; border-radius: var(--radius); display: block; }
.pf-pictures figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.pf-next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }