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:
parent
582c65077d
commit
a397f3eac0
12 changed files with 165 additions and 61 deletions
|
|
@ -13,13 +13,14 @@
|
|||
|
||||
/* color */
|
||||
--pl-accent: var(--color-link);
|
||||
--pl-frame-bg: var(--color-surface);
|
||||
--pl-frame-bg: var(--color-raised);
|
||||
--pl-frame-edge: color-mix(in srgb, var(--color-brand) 45%, transparent);
|
||||
--pl-photo-bg: color-mix(in srgb, var(--color-muted) 15%, var(--color-surface));
|
||||
--pl-ink: var(--color-ink);
|
||||
--pl-muted: var(--color-muted);
|
||||
--pl-rule: color-mix(in srgb, var(--color-brand) 35%, transparent);
|
||||
|
||||
position: relative;
|
||||
container-type: inline-size;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -93,6 +94,32 @@
|
|||
list-style: none;
|
||||
}
|
||||
|
||||
/* Balanced rows (PeopleTiles.tsx sets --pl-cols once it has measured):
|
||||
a grid of equal columns, each at most a tile wide, shrinking only
|
||||
when two won't fit. */
|
||||
.pl__row[style*="--pl-cols"] {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--pl-cols), minmax(0, var(--pl-w)));
|
||||
}
|
||||
|
||||
.pl[data-align="center"] .pl__row[style*="--pl-cols"] {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.pl__row[style*="--pl-cols"] .pl__tile {
|
||||
width: 100%;
|
||||
max-width: var(--pl-w);
|
||||
}
|
||||
|
||||
/* Measures one tile's width and the gap for the balancing. */
|
||||
.pl__probe {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
width: var(--pl-w);
|
||||
height: var(--pl-gap);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.pl[data-overflow="scroll"] .pl__row {
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto;
|
||||
|
|
@ -142,6 +169,7 @@
|
|||
padding: var(--pl-pad);
|
||||
padding-bottom: calc(var(--pl-pad) * 1.6);
|
||||
background: var(--pl-frame-bg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: transform 160ms ease, background-color 160ms ease;
|
||||
}
|
||||
|
||||
|
|
@ -332,7 +360,6 @@
|
|||
height: 1.75rem;
|
||||
border: 1px solid var(--pl-frame-edge);
|
||||
border-radius: var(--btn-radius);
|
||||
corner-shape: squircle;
|
||||
background: var(--color-surface);
|
||||
color: var(--pl-muted);
|
||||
font-size: 1.1rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue