chars: query overflow error as debug message
[sheet.git] / base.css
index f20f167b3a9f184b95a5dc674d2118cd2e4c72ae..cd09f2dfeaa460d8204bf87b05867c9a05f73b40 100644 (file)
--- a/base.css
+++ b/base.css
@@ -33,6 +33,8 @@ caption aside {
        margin-left: 1ex;
        font-weight: normal;
        display: inline;
+       font-size: 91%; /* 100% */
+       margin-top: .3ex; /* align with 110% baseline */
 }
 
 hr {
@@ -99,8 +101,10 @@ ul {
 }
 
 pre {
-       display: inline-block;
        text-align: left;
+       margin: 2ex auto;
+       white-space: pre-wrap;
+       overflow-wrap: break-word;
 }
 body > pre {
        width: 78ch;
@@ -109,6 +113,7 @@ body > pre {
        padding: 0 1em;
        border-width: 0 1px;
        border-style: solid;
+       white-space: pre;
 }
 
 h2 small {
@@ -276,6 +281,10 @@ thead td {
 .glyphs thead td {
        width: auto; /* no glyph cells in header */
 }
+.glyphs caption {
+       margin-left: 2.2em; /* 1ex + offset head column (1.6em + 0.4em) / 110% */
+               /* adjusted insignificant -.2em to fit wide contents on /charset/mac */
+}
 th {
        padding: 0 0.2em;
 }
@@ -770,6 +779,30 @@ nav > .section {
                .row3 {margin-left: 4em}   /* 8em / Δtd */
                .row4 {margin-left: 5em}   /* 10em / Δtd */
        }
+
+       @media (max-width: 42em) {
+               /* flatten right legend column on mobile */
+               .help > * {
+                       display: table-row;
+                       width: auto;
+               }
+               ul.legend-set {
+                       clear: left;
+               }
+               .right dl.legend {
+                       margin-right: 0;
+                       margin-left: 6.4em;
+               }
+               .right dl.legend dt {
+                       margin-right: 0;
+                       margin-left: -6.4em;
+                       float: left;
+                       clear: left;
+               }
+               .right dl.legend dd {
+                       float: left;
+               }
+       }
 }
 
 /*