Overhaul fixes: raised cards, balanced people rows, solid map, small button radius

- Cards sit on a raised surface (white, or a touch of tint in dark
  mode) with a shadow: featured cards, the connect block, people
  tiles. tint-soft is a faint teal again, not green.
- Buttons: a small plain radius everywhere; no superellipse.
- Video stills use YouTube's 16:9 frame (the 4:3 one cropped as a
  fallback), have small rounded corners, and show a round, centered
  play button on hover or focus (always on touch screens).
- People tiles: rows balanced between 2 and 10 across, never ending
  on a lone tile where it can be helped.
- Map tiles and region tags are solid, dimmed by color, not opacity.
- Admin: white (surface) background, header and footer as wide as
  the content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 16:24:36 -05:00
parent 582c65077d
commit a397f3eac0
12 changed files with 165 additions and 61 deletions

View file

@ -32,10 +32,15 @@
--color-action-hover: #001011;
--color-surface: #fcfffd; /* page and cards */
--color-tint: #c2f6ff; /* tinted sections and panels */
--color-tint-soft: #dfebd6; /* hover rows, faint panels */
--color-tint-soft: #e8fcfe; /* hover rows, faint panels */
--color-danger: #b3261e;
--color-danger-tint: #fdf3f2;
/* Cards: a step off the page so they read as sitting on it (white
here; a touch of tint in dark mode, below). Derived rather than
an admin token, so it follows the palette. With a shadow. */
--color-raised: #ffffff;
/* Tailwind's shadows, tinted with the site's deep ink instead of
black, so a card's shadow belongs to the page. */
--shadow-2xs: 0 1px rgb(0 16 17 / 0.05);
@ -69,9 +74,10 @@
--color-action-hover: #004552;
--color-surface: #001011;
--color-tint: #004552;
--color-tint-soft: #27371b;
--color-tint-soft: #00252b;
--color-danger: #ff8a80;
--color-danger-tint: #3b1714;
--color-raised: color-mix(in srgb, var(--color-tint) 35%, var(--color-surface));
--accent-text-mix: 50%;
color-scheme: dark;
}
@ -86,9 +92,10 @@
--color-action-hover: #004552;
--color-surface: #001011;
--color-tint: #004552;
--color-tint-soft: #27371b;
--color-tint-soft: #00252b;
--color-danger: #ff8a80;
--color-danger-tint: #3b1714;
--color-raised: color-mix(in srgb, var(--color-tint) 35%, var(--color-surface));
--accent-text-mix: 50%;
color-scheme: dark;
}
@ -168,7 +175,7 @@ h1, h2, h3, h4, h5, h6 {
--color-brand: #008fa8;
--color-surface: #fcfffd;
--color-tint: #c2f6ff;
--color-tint-soft: #dfebd6;
--color-tint-soft: #e8fcfe;
--color-danger: #b3261e;
--color-danger-tint: #fdf3f2;
--accent-text-mix: 100%;
@ -195,18 +202,12 @@ iframe[src*="churchcenter"] {
}
/* Corners, one rule for the site: none. Everything is square except
buttons, which get a superellipse (the btn utility below, or
var(--btn-radius) with corner-shape in plain CSS), and things that
are round by nature: dots and radio marks. Browsers without
corner-shape draw the button corner as a small plain radius. */
buttons (the btn utility below, or var(--btn-radius) in plain CSS)
and video players, which get a small radius, and things that are
round by nature: dots, radio marks, the play button. */
:root {
--btn-radius: 0.5rem;
}
@supports (corner-shape: squircle) {
:root {
--btn-radius: 1.25rem;
}
}
/* A notice where content would be (an empty section, a form's
note, "coming soon"): no box and no fill, just two thick brackets
@ -238,13 +239,26 @@ iframe[src*="churchcenter"] {
}
}
/* Buttons, and links drawn as buttons: Poppins Bold, superellipse
/* A video's play button (VideoPlayer.tsx) waits for a hover or
keyboard focus where the device can hover; on a touch screen it
always shows, since there is nothing to hover with. */
@media (hover: hover) {
.video-play > span {
opacity: 0;
transition: opacity 160ms ease, transform 160ms ease;
}
.group:hover .video-play > span,
.group:focus-visible .video-play > span {
opacity: 1;
}
}
/* Buttons, and links drawn as buttons: Poppins Bold, small rounded
corners. Color, size and border stay with each button. */
@utility btn {
font-family: var(--font-display);
font-weight: 700;
border-radius: var(--btn-radius);
corner-shape: squircle;
}
/* Scrollbar hide */