|
Download task_018/instruction.md from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_018/instruction.md
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_018/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_018/instruction.md
1.51 kB
| # Responsive sidebar and content layout | |
| Repair the supplied sidebar layout in the root `index.html`. The page must open directly offline. Preserve the starter's `sidebar`, `sidebar-toggle`, `layout` and `main-content` test IDs. | |
| ## Layout and controls | |
| - In desktop layouts, keep the sidebar flush with the viewport's left edge and the main column horizontally beside it. In an extra-wide viewport, center the main column in the space between the sidebar's right edge and the viewport's right edge. | |
| - On narrow screens, set a positive minimum width for the main column that it can honor while remaining within the viewport. At 420 px and 640 px the page must not scroll horizontally; at 420 px both edges of the main column must be visible. Do not hide overflowing content to simulate a fit. | |
| - The toggle must visually collapse the sidebar. Hide it, move it off-screen, or reduce its visible width to less than 40 px; an ARIA attribute alone is not a collapse. At 420 px, the sidebar may start collapsed and open as an overlay, but the toggle must stay clickable to close it. | |
| ## Acceptance Checklist | |
| - Desktop content sits to the right of the visible sidebar. The sidebar stays at the left edge as the main column centers in the available space at a wider viewport. | |
| - Toggling changes the visible sidebar layout. On mobile the toggle can close an open sidebar without being covered. | |
| - The narrow column honors a positive minimum width and remains fully visible without horizontal overflow or script errors. | |