source: delineate console width for any preformatted block
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 17 May 2017 09:54:15 +0000 (11:54 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 29 May 2017 17:29:34 +0000 (19:29 +0200)
Adopt sample styling for any text source, which should all have a
(preferred) limit of 78 characters.  Overflows with default tab stop
of 8, but all modern browsers except for msie support customisation.

base.css

index 0fdf1096f8d935d6c9be54dc75214738757669c4..1e8863761b6c61eb0c1b16ed9fa903c420fb42f0 100644 (file)
--- a/base.css
+++ b/base.css
@@ -102,8 +102,10 @@ pre {
        display: inline-block;
        text-align: left;
 }
        display: inline-block;
        text-align: left;
 }
-#sample > pre {
+body > pre {
        width: 78ch;
        width: 78ch;
+       tab-size: 4;
+       -moz-tab-size: 4;
        padding: 0 1em;
        border-width: 0 1px;
        border-style: solid;
        padding: 0 1em;
        border-width: 0 1px;
        border-style: solid;