keys: terse keyboard width to prevent scrollbar
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 18 Jun 2017 07:49:11 +0000 (09:49 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 17 Jul 2017 15:13:43 +0000 (17:13 +0200)
Recalculate based on smaller cells to prevent right margin
and zoomed out table on mobile screens.

base.css

index 805bb3d124e9c3cdcbe9f70ec8a3ec4d2ba87867..9d01449d11f38be02004abe0252a91902babecaa 100644 (file)
--- a/base.css
+++ b/base.css
@@ -152,7 +152,7 @@ h3      {display: none} /* semantic details (non-css/js) */
 
 table.keys {
        display: block;
-       width: 82.5em; /*       12 * (2px + 1px + 6.2em + 1px + 2px) + 8em*/
+       width: 82.5em; /* 12 * td(2px + 1px + 6.2em + 1px + 2px) + 8em */
 //     padding-right: 72px;
        border-spacing: 0;
        border-collapse: collapse;
@@ -742,5 +742,8 @@ nav > .section {
                opacity: .5;
                color: #FFF;
        }
+       table.keys {
+               width: 62.1em; /* 82.5em - 12 * Δtd(6.2em - 4.5em) */
+       }
 }