reviews (star ratings with the average, as a section or under a product, which then gets AggregateRating), glossary (A to Z with a letter row, each term linkable, DefinedTermSet), logo-wall (a still grid, muted logos become light outlines in dark mode, white tiles on request), videos (a library from your own files: page per video with captions and transcript, list, feed, Latest videos section, VideoObject), directory (entries grouped by category with a page each), link-in-bio (one page of big buttons, no menu), status-page (components from data/status.yaml, incidents with a feed), coming-soon (a holding page with a launch date and a form, no menu) and timeline (dates down a line). Template functions: sortBy, ratings and stars. formatDate takes a date with a time, as front matter's date: does, and now is in the site's timezone. A layout can leave out the site's menu by redefining nav, but only with a non-empty body: Go keeps the old template when the new one is empty.
15 lines
1.2 KiB
CSS
15 lines
1.2 KiB
CSS
/* The link in bio pack. Colors come from the theme's variables. */
|
|
.lib { max-width: 480px; margin: 0 auto; padding: 56px 20px 40px; text-align: center; }
|
|
.lib-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--surface); }
|
|
.lib-name { margin: 16px 0 6px; font-size: 1.6rem; }
|
|
.lib-bio { color: var(--muted); }
|
|
.lib-bio > :first-child { margin-top: 0; }
|
|
.lib-links { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
|
|
.lib-link { display: grid; gap: 2px; padding: 15px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font-weight: 650; text-decoration: none; transition: transform .15s, border-color .15s; }
|
|
.lib-link small { color: var(--muted); font-weight: 500; }
|
|
.lib-link:hover { transform: translateY(-2px); border-color: var(--accent); }
|
|
.lib-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
.lib-links li:first-child .lib-link { background: var(--accent); border-color: var(--accent); color: var(--accent-text, #fff); }
|
|
.lib-links li:first-child .lib-link small { color: inherit; opacity: .85; }
|
|
.lib-home { margin-top: 28px; font-size: .9rem; }
|