Layout blades
Extends /picocss/pico/blob/main/scss/layout/_document.scss
Prevent horizontal overflow and scrolling, modern way:
html {
overflow-x: clip;
}
Landmarks
Extends /picocss/pico/blob/main/scss/layout/_landmarks.scss
- Ensure
bodytakes at least the full height of the viewport (using dynamic viewport height for better mobile support). - Make the
bodya flex container with column layout, andmainto automatically fill available space. This is useful for creating sticky footers and full-height layouts.
body {
min-height: 100dvh;
display: flex;
flex-direction: column;
> main {
flex-grow: 1;
}
}