sample: delineate preformatted block
[sheet.git] / base.css
index c4c943a78dcad1a27810354bfcd19ca5385c1be3..0fdf1096f8d935d6c9be54dc75214738757669c4 100644 (file)
--- a/base.css
+++ b/base.css
@@ -98,10 +98,16 @@ ul {
        list-style: none;
 }
 
-#source pre {
+pre {
        display: inline-block;
        text-align: left;
 }
+#sample > pre {
+       width: 78ch;
+       padding: 0 1em;
+       border-width: 0 1px;
+       border-style: solid;
+}
 
 h2 small {
        position: absolute; /* side note; do not influence alignment */
@@ -685,6 +691,25 @@ form.aside {
        right: 1em;
 }
 
+.family-name {
+       font-variant: small-caps;
+}
+
+#index nav {
+       columns: 3;
+       -moz-columns: 3;
+       -webkit-columns: 3;
+}
+nav > .section {
+       break-inside: avoid;
+       -webkit-column-break-inside: avoid; /* webkit */
+       page-break-inside: avoid; /* moz */
+}
+#index nav a {
+       display: inline-block;
+       margin-top: 1em;
+}
+
 /* printing hints */
 
 @page {