responsive-layout
Step 6 of the pipeline (WORKFLOW.md), next to skills/accessibility (reflow and zoom in skills/accessibility §3, target size
and focus in skills/accessibility §1) and skills/webperf (layout shift, image weight). This block owns the geometry: where a
layout breaks and what it does instead. It is written against CSS and the web platform, not against a framework or a tool. It states no pixel thresholds; a figure here would be a recalled
number (skills/source-freshness), so sizes come from the design system's tokens or the cited standard.
When
A stylesheet, a layout component or a template with columns, bars, grids or fixed sizes is written or
changed, and when a page is reported as broken "on my phone" or "on a small laptop".
Steps
Read the file whose trigger the task meets. The steps are numbered across files so a citation such as
"step 11" still resolves.
| Steps |
Covers |
Read it when |
File |
| 1-12 |
Breakpoints, continuous states, small-end design, dynamic viewport, grids, overflow, fixed widths, navigation, fixed bars, mobile keyboard, sweeping, text growth |
any layout change |
01-layout-steps.md |
| 13-19 |
100vw, hover and pointer capability, wide tables, stacked sticky layers, one-line controls, line length, short landscape viewports |
full-bleed sections, hover or pointer behaviour, a wide table, several fixed bars, or long prose |
02-input-tables-bars.md |
| 20-33 |
Specificity, cascade layers, naming, container queries, themes, print, reflow test, field font size, logical properties, units, feature queries, fluid sizes and zoom, preference queries, container naming |
a stylesheet grows, third-party CSS comes in, a theme or a print view is added |
03-css-architecture.md |
Output / checkpoint
No pipeline checkpoint. What it owes: no horizontal page scroll across a swept width range, no content
cut by overflow: hidden, fixed bars that do not hide content, and a stated behaviour for the middle
range.
Guardrails
- Never introduce a breakpoint without the content failure that justifies it.
- Never hide an overflow bug with
overflow: hidden; fix the wide child.
- Never copy a pixel threshold from memory: tokens or the cited standard (
skills/source-freshness).
- Never disable zoom (
user-scalable=no, maximum-scale) to stop a layout from breaking.
- Never size a child with
100vw to reach the edges, and never gate a capability on a device guess.
Origin
Provenance is in references/origin.md.
1---2name: responsive-layout3description: "Use when writing or reviewing layout CSS, a component's responsive behaviour, or a screen that must work from phone to wide desktop: breakpoints, fluid sizing, viewport units, overflow, wide tables, stacked fixed bars, hover and pointer input, mobile keyboard, and how the stylesheet itself is organised (specificity, layers, naming, themes, print)."4paths: "**/*.css, **/*.scss, **/*.vue, **/*.tsx, **/*.jsx"5metadata:6 source: https://skillmd.com/skills/techmefr/responsive-layout7---89# responsive-layout1011Step 6 of the pipeline (`WORKFLOW.md`), next to `skills/accessibility` (reflow and zoom in `skills/accessibility` §3, target size12and focus in `skills/accessibility` §1) and `skills/webperf` (layout shift, image weight). This block owns the geometry: where a13layout breaks and what it does instead. It is written against CSS and the web platform, not against a framework or a tool. It states no pixel thresholds; a figure here would be a recalled14number (`skills/source-freshness`), so sizes come from the design system's tokens or the cited standard.1516## When17A stylesheet, a layout component or a template with columns, bars, grids or fixed sizes is written or18changed, and when a page is reported as broken "on my phone" or "on a small laptop".1920## Steps2122**Read the file whose trigger the task meets.** The steps are numbered across files so a citation such as23"step 11" still resolves.2425| Steps | Covers | Read it when | File |26|---|---|---|---|27| 1-12 | Breakpoints, continuous states, small-end design, dynamic viewport, grids, overflow, fixed widths, navigation, fixed bars, mobile keyboard, sweeping, text growth | any layout change | [`01-layout-steps.md`](./references/01-layout-steps.md) |28| 13-19 | `100vw`, hover and pointer capability, wide tables, stacked sticky layers, one-line controls, line length, short landscape viewports | full-bleed sections, hover or pointer behaviour, a wide table, several fixed bars, or long prose | [`02-input-tables-bars.md`](./references/02-input-tables-bars.md) |29| 20-33 | Specificity, cascade layers, naming, container queries, themes, print, reflow test, field font size, logical properties, units, feature queries, fluid sizes and zoom, preference queries, container naming | a stylesheet grows, third-party CSS comes in, a theme or a print view is added | [`03-css-architecture.md`](./references/03-css-architecture.md) |3031## Output / checkpoint32No pipeline checkpoint. What it owes: no horizontal page scroll across a swept width range, no content33cut by `overflow: hidden`, fixed bars that do not hide content, and a stated behaviour for the middle34range.3536## Guardrails37- **Never introduce a breakpoint without the content failure that justifies it.**38- **Never hide an overflow bug with `overflow: hidden`**; fix the wide child.39- **Never copy a pixel threshold from memory**: tokens or the cited standard (`skills/source-freshness`).40- Never disable zoom (`user-scalable=no`, `maximum-scale`) to stop a layout from breaking.41- Never size a child with `100vw` to reach the edges, and never gate a capability on a device guess.4243## Origin44Provenance is in [`references/origin.md`](./references/origin.md).