diff options
author | Eric Wong <e@80x24.org> | 2019-01-01 07:45:38 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-01 07:45:38 +0000 |
commit | 7b7885fc3be2719c068c0a2fc860d53f17a1d933 (patch) | |
tree | 5b8691594b2e9bc69291426590caf83a2dabaffe | |
parent | 4854438bcf3c589d9ef88e6c09f37e61671b9f4b (diff) | |
download | public-inbox-7b7885fc3be2719c068c0a2fc860d53f17a1d933.tar.gz |
GUI browsers have a tendency to use a larger (though sometimes smaller) font than the rest of the page for some reason I could not find... So set everything to 100% to give uniformity to the page; which benefits visually-challenged users who want to use gigantic fonts for the entire page.
-rw-r--r-- | lib/PublicInbox/Hval.pm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/PublicInbox/Hval.pm b/lib/PublicInbox/Hval.pm index c47057fc..ccfa3242 100644 --- a/lib/PublicInbox/Hval.pm +++ b/lib/PublicInbox/Hval.pm @@ -11,10 +11,15 @@ use PublicInbox::MID qw/mid_clean mid_escape/; use base qw/Exporter/; our @EXPORT_OK = qw/ascii_html obfuscate_addrs to_filename/; -# for user-generated content (UGC) which may have excessively long lines -# and screw up rendering on some browsers. This is the only CSS style -# feature we use. -use constant STYLE => '<style>pre{white-space:pre-wrap}</style>'; +# User-generated content (UGC) may have excessively long lines +# and screw up rendering on some browsers, so we use pre-wrap. +# +# We also force everything to the same scaled font-size because GUI +# browsers (tested both Firefox and surf (webkit)) uses a larger font +# for the Search <form> element than the rest of the page. Font size +# uniformity is important to people who rely on gigantic fonts. +use constant STYLE => + '<style>pre{white-space:pre-wrap}*{font-size:100%}</style>'; my $enc_ascii = find_encoding('us-ascii'); |