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.
6 lines
485 B
CSS
6 lines
485 B
CSS
/* The share links pack. Colors come from the theme's variables. */
|
|
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 28px 0; }
|
|
.share-label { font-weight: 650; margin-right: 4px; }
|
|
.share a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .92rem; }
|
|
.share a:hover { border-color: var(--accent); color: var(--accent); }
|