Files
jcoffey-dev 5d628689c1
ci / editor-ui (pull_request) Successful in 30s
ci / go (pull_request) Successful in 1m56s
Three packs: contact forms, tables and a changelog
contact-forms brings a quote request, a booking request and a mailing list
sign-up, and a Contact form section that shows any form beside an email,
phone, address and a note. tables shows a table from a spreadsheet saved as
CSV (or YAML or JSON) in data/, with a caption, row headings, numbers on the
right, and sideways scrolling on phones. changelog gives a page per release,
every release on one page, a feed, a What's new section and a latest-release
partial; notes grouped under Keep a Changelog headings show as labels.

To make them possible:
- data/*.csv files load as rows of cells, for the data function and the
  editor's data picker.
- Packs can bring forms (forms/<name>.yaml). A form is copied once and is the
  site's own from then on: upgrades and removal leave it, and a site's own
  form of that name is kept. A pack's form must send to a placeholder address
  (example.org and the other RFC 2606 names) and can't set Turnstile, so a
  pack can't route a site's submissions or add another site's script.
- A new check warning, form-placeholder, for forms that still send to or show
  a placeholder address (the starter's contact form does until it's set).
- A form's success path can no longer start with // or /\, which browsers
  treat as another site.
2026-10-14 12:58:23 -07:00

25 lines
2.3 KiB
CSS

/* The changelog pack. Colors come from the theme's variables. */
.rel-meta { margin: 4px 0 0; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rel-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 650; border: 1px solid var(--line); color: var(--text); }
.rel-security { background: var(--accent-soft); border-color: var(--accent); }
.rel-summary { font-size: 1.05rem; margin: 10px 0 0; }
.rel-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rel-notes { margin-top: 16px; }
.rel-notes h3 { display: inline-block; margin: 18px 0 4px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rel-notes h3 + ul { margin-top: 4px; }
.rel-follow { color: var(--muted); }
.rel-entry { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.rel-entry h2 { margin: 0; }
.rel-entry h2 a { color: inherit; text-decoration: none; }
.rel-entry h2 a:hover { text-decoration: underline; }
.rel-none { color: var(--muted); }
.rel-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.rel-nav a { display: grid; gap: 2px; font-weight: 650; text-decoration: none; }
.rel-nav a span { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rel-newer { margin-left: auto; text-align: right; }
.rel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 760px; }
.rel-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rel-title { font-weight: 650; font-size: 1.1rem; }
.rel-latest { display: inline-flex; gap: 8px; align-items: baseline; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; text-decoration: none; color: var(--text); }
.rel-latest-label { padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-text, #fff); font-size: .75rem; font-weight: 700; }