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.
14 lines
1.1 KiB
CSS
14 lines
1.1 KiB
CSS
/* The timeline pack. Colors come from the theme's variables. */
|
|
.tl-list { list-style: none; margin: 0; padding: 0; max-width: 760px; position: relative; }
|
|
.tl-list::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
|
|
.tl-item { position: relative; padding: 0 0 28px 36px; }
|
|
.tl-item:last-child { padding-bottom: 0; }
|
|
.tl-item::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg, var(--surface)); border: 3px solid var(--accent); box-sizing: border-box; }
|
|
.tl-when { margin: 0; color: var(--accent); font-weight: 700; font-size: .9rem; letter-spacing: .03em; }
|
|
.tl-title { margin: 2px 0 0; font-size: 1.15rem; }
|
|
.tl-text { margin-top: 4px; }
|
|
.tl-text > :first-child { margin-top: 0; }
|
|
.tl-text > :last-child { margin-bottom: 0; }
|
|
.tl-image { display: block; margin-top: 12px; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
|
|
@media (min-width: 760px) { .tl-item { display: grid; grid-template-columns: 140px 1fr; gap: 0 24px; padding-left: 36px; } .tl-when { padding-top: 2px; } }
|