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.
12 lines
968 B
CSS
12 lines
968 B
CSS
/* The reviews pack. Colors come from the theme's variables. */
|
|
.rv-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 18px; font-size: 1.05rem; }
|
|
.rv-summary b { font-size: 1.3rem; }
|
|
.rv-stars { margin: 0; color: var(--accent); letter-spacing: .08em; font-size: 1.1rem; line-height: 1; }
|
|
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
.rv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
|
|
.rv-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 8px; align-content: start; }
|
|
.rv-text { margin: 0; padding: 0; border: 0; font-size: 1rem; }
|
|
.rv-text > :first-child { margin-top: 0; }
|
|
.rv-text > :last-child { margin-bottom: 0; }
|
|
.rv-who { margin: 0; color: var(--muted); font-size: .9rem; }
|