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.
24 lines
2.0 KiB
CSS
24 lines
2.0 KiB
CSS
/* The contact forms pack. Colors come from the theme's variables. */
|
|
.cf-grid { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 3fr) minmax(220px, 2fr); align-items: start; }
|
|
.cf-grid.cf-solo { grid-template-columns: minmax(0, 1fr); }
|
|
@media (max-width: 760px) { .cf-grid { grid-template-columns: minmax(0, 1fr); } }
|
|
.cf-form .hotdog-form { max-width: none; }
|
|
.cf-solo .cf-form .hotdog-form { max-width: 40rem; }
|
|
.cf-form .hotdog-field label { font-weight: 600; }
|
|
.cf-form .hotdog-field input:not([type="checkbox"]), .cf-form .hotdog-field textarea, .cf-form .hotdog-field select { border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); background: var(--surface); }
|
|
.cf-form .hotdog-field input:focus-visible, .cf-form .hotdog-field textarea:focus-visible, .cf-form .hotdog-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
|
|
.cf-form .hotdog-field.cl-checkbox label { font-weight: 400; }
|
|
.cf-form .hotdog-field.cl-checkbox input { margin: 0 8px 0 0; }
|
|
.cf-form .hotdog-help { color: var(--muted); opacity: 1; }
|
|
.cf-form .hotdog-req { color: var(--accent); }
|
|
.cf-form button[type="submit"] { padding: 11px 22px; border-radius: 11px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text, #fff); font-weight: 650; }
|
|
.cf-form button[type="submit"]:hover { filter: brightness(1.05); }
|
|
.cf-form button[type="submit"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
.cf-details { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 14px; }
|
|
.cf-line { display: grid; gap: 2px; }
|
|
.cf-label { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
|
|
.cf-line address { font-style: normal; white-space: pre-line; }
|
|
.cf-note { padding-top: 14px; border-top: 1px solid var(--line); }
|
|
.cf-note > :first-child { margin-top: 0; }
|
|
.cf-note > :last-child { margin-bottom: 0; }
|