simonw/til

Less margin/padding on smaller screens

simonw opened this issue · 6 comments

Currently:

image

I'd like less margin on smaller screens.

The padding comes from here:

section.body {
padding: 0.5em 2em;
max-width: 800px;
}

1em looks better - I'll set that for widths smaller than 600px.

@media (max-width: 600px) {
    section.body {
        padding: 0em 1em;
    }
}

Oh this will take a while, it's going to regenerate every screenshot!

IMG_5320

I need to align the heading in the purple strip too.

Better!

IMG_5337