Skip to content

sitetile: every section gets the shared inset floor; gallery, tagcloud and collection-pills painted - #7

Merged
cverorg merged 1 commit into
mainfrom
fix/section-safe-inset-and-unpainted-corals
Aug 28, 2026
Merged

sitetile: every section gets the shared inset floor; gallery, tagcloud and collection-pills painted#7
cverorg merged 1 commit into
mainfrom
fix/section-safe-inset-and-unpainted-corals

Conversation

@cverorg

@cverorg cverorg commented Aug 28, 2026

Copy link
Copy Markdown
Member

On a built site several corals rendered their text flush to the viewport edge (x=0) on desktop and phone, because each coral carried its own container rule and some had none. This adds a zero-specificity floor — :where(section[class^="st-"]:not(.st-full-bleed)) — with the shared wrapper's max-width/margin/padding, so every existing rule keeps its values and a future coral is covered by construction. Hero opts out via .st-full-bleed (its inner content stays inset).

Also: gallery cells, tag pills and collection pills had no rule at all (tile-lab#11) — base paint added, reusing the filter-pill idiom; pre.st-code gets max-width:100%, inline code spans overflow-wrap:anywhere.

Tests: new section-inset.test.mjs (21 checks, scans emitted markup); bash scripts/test.sh exit 0, astro smoke 59/59.

…d and collection-pills get base paint

A coral that forgot its own container rule rendered its text at x=0 on desktop and phone
(faq was fixed one at a time in #6; gallery, carousel, collection and timeline still did it).
The floor: :where(section[class^="st-"]:not(.st-full-bleed)) carries the shared wrapper's
max-width/margin/padding at zero specificity, so every existing per-coral rule keeps its own
values; hero opts out with .st-full-bleed while its inner content stays inset. tile-lab#11:
gallery cells, tag pills and collection pills had no rule at all — they now reuse the existing
filter-pill idiom and a responsive grid. pre.st-code gets max-width:100%; inline code spans get
overflow-wrap:anywhere so a quoted line never widens the page. New section-inset.test.mjs scans
every coral's emitted markup, so a future coral is covered without being listed.
@cverorg
cverorg merged commit e57d017 into main Aug 28, 2026
2 checks passed
@cverorg
cverorg deleted the fix/section-safe-inset-and-unpainted-corals branch August 28, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant