]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Hval.pm
hval: force monospace for <form> elements, too
[public-inbox.git] / lib / PublicInbox / Hval.pm
index ccfa324220ff5be50204f52056e8a45ceb9fd26c..a120a291bd4d85c1e37ce4c1b549a7cdd2d948eb 100644 (file)
@@ -18,8 +18,12 @@ our @EXPORT_OK = qw/ascii_html obfuscate_addrs to_filename/;
 # 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.
+# Finally, we use monospace to ensure the Search field and button
+# has the same size and spacing as everything else which is
+# <pre>-formatted anyways.
 use constant STYLE =>
-       '<style>pre{white-space:pre-wrap}*{font-size:100%}</style>';
+       '<style>pre{white-space:pre-wrap}' .
+       '*{font-size:100%;font-family:monospace}</style>';
 
 my $enc_ascii = find_encoding('us-ascii');