readthedocs / website

The Read the Docs community website
16 stars 6 forks source link

Front page image placement and header alignment #103

Closed agjohnson closed 2 years ago

agjohnson commented 2 years ago

Below 990px breakpoint, content reflows to a vertical display:

image

At tablet/mobile, similar issues:

image

Other options


nienn commented 2 years ago

I'm +1 on hiding the image on mobile. There's no real reason to make the user scroll an extra screen. I also think that all of the elements on the above screen (posted print-screens) should become center-aligned on mobile.

SUI does not come with many options for responsive behaviour thought, so we might need some custom CSS. For hiding the image we can use the device only grid option, which requires adding complexity to the DOM structure but it works natively. There's no such options for centering the text on selected viewports.

agjohnson commented 2 years ago

Yeah, a reusable class would probably be best. There are several places on the marketing pages we want a heading left aligned on large displays and center aligned on small-medium displays.