Hero: clip the bleed at the header, never overflow the document
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
137415ee92
commit
bee1ba406b
@@ -28,10 +28,13 @@ const COUNT = 47;
|
|||||||
const BLEED = `${((OVERSCAN - 1) / 2) * -100}%`;
|
const BLEED = `${((OVERSCAN - 1) / 2) * -100}%`;
|
||||||
|
|
||||||
const STYLE_TEXT = `
|
const STYLE_TEXT = `
|
||||||
/* The field bleeds 25% past the hero piece on every side; clip the
|
/* The field bleeds 25% past the hero piece on every side. Sideways
|
||||||
document sideways (clip, not hidden: no scroll container) so the
|
it is clipped at the header box (clip, not hidden: no scroll
|
||||||
bleed can never cause horizontal scrolling. */
|
container, and overflow-y stays visible) - an element wider than
|
||||||
html { overflow-x: clip; }
|
the viewport, even unscrollable, makes phones re-size the layout
|
||||||
|
viewport when it appears, which read as the page jumping as the
|
||||||
|
input loaded. Vertically it may run into the copy below. */
|
||||||
|
.hero-module { overflow-x: clip; overflow-y: visible; }
|
||||||
.redoal-paths {
|
.redoal-paths {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: ${BLEED};
|
inset: ${BLEED};
|
||||||
|
|||||||
Reference in New Issue
Block a user