Relative units for sizes, margins and paddings of the page footer #374
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I would like to replace many of the current pixel based sizing properties in the CSS with ones with relative units like
emorrem. With this change it should later be simpler to make the OpenTTD website responsive. My first proposal affects the page footer. Further pull requests for the page header and the navigation bar will follow within a short time. The pull requests regarding the area for the main content needs more work due to the different structures of the various pages. If the changes of this pull request are approved, the pull requests for the main area will follow.The main visually change is the font size in the footer. With the current font size of 11px for the footer link list and the copyright notice many visitors, especially older ones, will not be able to cope conveniently. Thatswhy I increased the font size to 86% (
0.86em) of the base font size of each visitor's browser. Since this change only affects part of the page layout, I have temporarily set the base font size for the footer itself to1rem. If and when the entire page has been changed, this font size will be set centrally for thehtmlorbodyelement and removed from the footer again.Further changes concern margins and paddings as well as the pipe symbols as delimiters between the links in the footer. The pipe symbols were replaced by borders (currently in the font colour).