]> git.cworth.org Git - lmno.games/commitdiff
Fix the page width to allow the content to be a full 720px wide
authorCarl Worth <cworth@cworth.org>
Sun, 17 May 2020 15:25:06 +0000 (08:25 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 17 May 2020 15:27:17 +0000 (08:27 -0700)
The code that was written here with numeric values of 720px was
assuming that the page interior would be as wide as 720px and that
padding would not be counted in that. But when we brought this code to
lmno we violated that assumption by using "box-sizing: border-box" on
the page, (making the padding be counted in computing the width of the
page.

The result of that was that the actual content of the page was only
620px and with actual paragraphs of text included now as part of the
empires client, it's clear that that was narrower than we really want.

So, in this commit, we account for the border-box semantics by using a
maximum page width of 820px (padding inclusive) so that the actual
page contents can be as wide as 720px.


No differences found