Make the layout adjust to narrow viewports better
authorSimon McVittie <smcv@debian.org>
Tue, 25 Nov 2014 23:42:16 +0000 (23:42 +0000)
committerSimon McVittie <smcv@debian.org>
Mon, 1 Dec 2014 21:29:46 +0000 (21:29 +0000)
commit5fe28eb4c29cb31bd6293beb67cccc9b01e967ec
tree9a58b42b935a80f65cd31dfc72194270b0c5186b
parent67c0dd10131ff5b6762ef620566f6c40b5b1c8c9
Make the layout adjust to narrow viewports better

Below about 600px (phones and small windowed browsers) the sidebar
starts breaking the layout. Moving it inline helps a lot; with
modern CSS (flex layout) we can also shuffle it after the main content.
Older browsers that don't do one of the 4 variants of flex layout
will just display it above the main content, which is annoying
but not too bad.

blueview also has a minimum width set so that it won't become
ridiculously small with small fonts, but that means it gets
scrollbars below about 850px; stop enforcing the minimum width
if necessary.

Finally, blueview's relatively generous margins look good in a
desktop browser, but are just too space-hungry on a phone.
Turn them off below 600px.
doc/style.css
themes/blueview/style.css