Fluid scaling to 1920px and height-aware variables; speed and responsive guidelines
- fluid-wide.css: the fluid.css variables stretched over 360→1920px (export @intecion/ipal-kit/fluid-wide.css); fluid.css values unchanged. - New variables in both (unused until a project opts in): --ipal-measure, --ipal-container(-wide), --ipal-hero-min-h (svh), --ipal-fs-display-fit, --ipal-fs-h1-fit, --ipal-space-section-fit — keep the hero CTA above the fold on 1366×768. Verified in Chromium at 360…1920 widths. - AGENT.md §6.11a (scaling, viewport test list incl. 13–15" laptops and 125/150 % zoom) and §6.11b (Core Web Vitals table: LCP image, sizes, placeholders, video modes, YouTube facade, images preset, fonts). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -19,6 +19,9 @@
|
||||
*
|
||||
* The design (DESIGN.md) decides the numbers: override any variable in the project's
|
||||
* :root — the plugin only removes the clamp() maths from every project.
|
||||
*
|
||||
* Wider screens should keep growing (13" laptop → 27" monitor)? Import
|
||||
* @intecion/ipal-kit/fluid-wide.css instead: same variables, scaled 360 → 1920px.
|
||||
*/
|
||||
:root {
|
||||
--ipal-fs-sm: clamp(0.875rem, 0.8505rem + 0.1087vw, 0.9375rem); /* 0.875→0.9375rem · small print, captions */
|
||||
@@ -32,3 +35,24 @@
|
||||
--ipal-space-gutter: clamp(1rem, 0.413rem + 2.6087vw, 2.5rem); /* 1→2.5rem · container side padding */
|
||||
--ipal-space-section: clamp(3rem, 1.2391rem + 7.8261vw, 7.5rem); /* 3→7.5rem · vertical padding of a section */
|
||||
}
|
||||
|
||||
/*
|
||||
* Layout & height-aware helpers (added in 1.10 — nothing uses them until the
|
||||
* project does, so existing sites look exactly the same):
|
||||
* max-w-[var(--ipal-measure)] comfortable line length for running text
|
||||
* --ipal-container / -wide content widths for the section container
|
||||
* min-h-[var(--ipal-hero-min-h)] hero that fills a laptop screen, not a 4K one
|
||||
* text-[length:var(--ipal-fs-display-fit)], py-[var(--ipal-space-section-fit)]
|
||||
* shrink on SHORT screens (1366×768, 1280×720,
|
||||
* landscape phones) so the hero CTA stays above the fold
|
||||
* svh = the small viewport height (mobile browser bars shown) — never 100vh.
|
||||
*/
|
||||
:root {
|
||||
--ipal-measure: 68ch;
|
||||
--ipal-container: 80rem;
|
||||
--ipal-container-wide: 96rem;
|
||||
--ipal-hero-min-h: min(100svh, 56rem);
|
||||
--ipal-fs-display-fit: min(var(--ipal-fs-display), 7svh + 0.75rem);
|
||||
--ipal-fs-h1-fit: min(var(--ipal-fs-h1), 6svh + 0.5rem);
|
||||
--ipal-space-section-fit: min(var(--ipal-space-section), 10svh);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user