nmbug-status: Style headers with smaller fonts
authorW. Trevor King <wking@tremily.us>
Thu, 7 Jan 2016 13:51:29 +0000 (05:51 -0800)
committerDavid Bremner <david@tethera.net>
Wed, 13 Jan 2016 14:28:49 +0000 (10:28 -0400)
We only use h1 through h3, and David prefers smaller headers [1], so
shift over to the font sizes usually used for h2 through h4 [2,3,4].
I haven't bothered with the W3C's default margins, since a bit of
extra whitespace doesn't seem like a big deal.

[1]: id:87k2nl8r0k.fsf@zancas.localnet
     http://article.gmane.org/gmane.mail.notmuch.general/21595
[2]: http://www.w3.org/TR/html-markup/h2.html
[3]: http://www.w3.org/TR/html-markup/h3.html
[4]: http://www.w3.org/TR/html-markup/h4.html

devel/nmbug/nmbug-status

index b4ded4991a29b89cbb3a89614771b4334524c40b..cb8b984a62babff643d1e27d7a5097da344a04a0 100755 (executable)
@@ -327,6 +327,15 @@ header_template = config['meta'].get('header', '''<!DOCTYPE html>
   <meta http-equiv="Content-Type" content="text/html; charset={encoding}" />
   <title>{title}</title>
   <style media="screen" type="text/css">
+    h1 {{
+      font-size: 1.5em;
+    }}
+    h2 {{
+      font-size: 1.17em;
+    }}
+    h3 {{
+      font-size: 100%;
+    }}
     table {{
       border-spacing: 0;
     }}