blog.rust-lang.org icon indicating copy to clipboard operation
blog.rust-lang.org copied to clipboard

Style: Add left margin for columns on all screen sizes

Open rbuch opened this issue 5 years ago • 6 comments

Previously, .column and .columns only had a margin-left of 4% when the viewport satisfied min-width:550px. On mobile, this led to the columns in the footer abutting each other with no space in between (see "Before" screenshot, in particular the "Contact the Rust Team" and "Licenses" lines). This change gives .column and .columns a left margin of 4% at all screen widths, giving the columns a bit of breathing room. Before and after screenshots are given below, as rendered by Firefox's Responsive Design Mode using the Pixel 2 template.

Before: before

After: after

rbuch avatar Feb 27 '21 08:02 rbuch

It seems we're not supposed to modify skeleton.css directly—see https://github.com/rust-lang/blog.rust-lang.org/pull/683#issuecomment-689624894.

camelid avatar Feb 27 '21 22:02 camelid

It seems we're not supposed to modify skeleton.css directly—see #683 (comment).

Ah, I see, thanks for pointing that out. It doesn't seem like your questions from that PR regarding where to put new CSS were ever answered, but do you know where new style changes should go? It seem like src/styles/app.scss has some overrides for Skeleton already, perhaps that's the place.

rbuch avatar Mar 01 '21 18:03 rbuch

I've moved my change over to src/styles/app.scss rather than modifying skeleton.css directly, hopefully this is a better place for it.

rbuch avatar Mar 01 '21 19:03 rbuch

It doesn't seem like your questions from that PR regarding where to put new CSS were ever answered, but do you know where new style changes should go?

Yeah, I don't know unfortunately.

I've moved my change over to src/styles/app.scss rather than modifying skeleton.css directly, hopefully this is a better place for it.

If that works out for you, I might try that in my own PR. Thanks :)

camelid avatar Mar 02 '21 00:03 camelid

@rbuch sorry for letting this sit for so long. Is this just waiting for approval?

rylev avatar Jun 22 '22 11:06 rylev

@rbuch sorry for letting this sit for so long. Is this just waiting for approval?

No worries. Yeah, it should be good to go, just needs approval.

rbuch avatar Jun 22 '22 13:06 rbuch