]> git.cworth.org Git - lmno.games/commit
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)
commit93245be0a5db82eadd4fb532d27fa4fbea63a2ac
tree359466ee2bf165ed2f80933d53dfaaa544c2187b
parent1ec3f3b187ea0a4f758a1890f0b3314e7c5a91ff
Fix the page width to allow the content to be a full 720px wide

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.
style.css