Set maximum width to 40rem across screen sizes#111
Set maximum width to 40rem across screen sizes#111httpjamesm merged 2 commits intohttpjamesm:mainfrom McSinyx:72ch
Conversation
Oops, sorry, I forgot to check the home page. The style sheets are unified now.
Silly me, I switched to CSS variable last minute and didn't realize var doesn't work for media queries. Padding should be restored now.
This is expected. Re GH-45: readability is improved by shortening the line length in characters. I switched to 40rem for backward compatibility with the old home page's width, also to roughly accommodate the standard 80-column terminal output. People with high-res display would usually enable HiDPI or adjust the font size so it should not be an issue in practice. |
|
You are right, and I am horribly sorry I didn't check that. The home page is vertically centered now. Edit: huh wait, I removed |
Some rules are removed to correct the bounding box size in browser inspector and fix the overflow on the x-axis.
(The diff should be viewed --ignore-all-space)
|
The original stylesheet's issue where it's impossible
to scroll to the top of a vertically overflowed home page
is also fixed now.
|





Referencing GH-45: 50% is really narrow on smaller screen sizes, the maximum width should instead be calculated from the font size.
Some rules are removed to correct the bounding box size
in browser inspector and fix the overflow on the x-axis.
The now-unused div.parent is removed; please hide whitespace changes when view the diff for better clarity.