latin: sample letter spacing
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 2 Apr 2017 23:47:38 +0000 (01:47 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 24 Apr 2017 23:51:41 +0000 (01:51 +0200)
latin.plp

index 78b52cb2ef9da531089d99c0d613aedd3f9e61f8..9d9cadfbe59d4e6c0da84b0ec245836e9be24f4d 100644 (file)
--- a/latin.plp
+++ b/latin.plp
@@ -40,10 +40,29 @@ Html({
                white-space: nowrap;
        }
 
-       #pigpen .sample > svg {
+       .sample {
+               vertical-align: middle;
+       }
+       #old-roman-cursive .sample span {
+               margin-right: -10px;
+       }
+       #tap-code .sample,
+       #tap-simplified .sample {
+               font-size: 80%;
+               word-spacing: 0;
+       }
+       #tap-code .sample span,
+       #tap-simplified .sample span {
+               margin-right: 1ex;
+               white-space: nowrap;
+       }
+       #morse .sample span {
+               margin-right: 0.5ex;
+       }
+       #pigpen .sample svg {
                margin-right: 0.1em;
        }
-       #nyctographs .sample svg {
+       #nyctographs .sample svg {
                background: rgba(0,0,0, .1);
                padding: 0.1em;
                margin-right: 0.2em;
@@ -135,7 +154,7 @@ inputel.oninput = function () {
                                output += ' &nbsp; ';
                        }
                        else {
-                               output += cols[col].innerHTML.trimRight();
+                               output += '<span>' + cols[col].innerHTML.trimRight() + '</span>';
                        }
                }
                samplecol.innerHTML = output;