word: localised browser hyphenation instead of poor poc
[sheet.git] / base.css
index cc3625f6efeeb34b071db322fc8d051c03df6582..34a0efe0f1c69e011166a5e8f43e25e304c3e08a 100644 (file)
--- a/base.css
+++ b/base.css
@@ -123,8 +123,13 @@ h1 small,
 h2 small {
        position: absolute; /* side note; do not influence alignment */
        margin-left: 1em;
-       font-size: 80%;
-       line-height: 175%;
+       font-weight: normal;
+       font-size: 50%; /* 1rem */
+       padding-top: 1.75ex; /* align baseline with container */
+}
+h2 small {
+       font-size: 90.9%;
+       padding-top: .17ex;
 }
 
 dl > dt {
@@ -677,7 +682,7 @@ figure {
        margin: 0;
        position: relative;
 }
-img {
+figure img {
        vertical-align: bottom;
        width: 100%;
 }
@@ -717,6 +722,7 @@ img {
 .gallery figure {
        overflow: hidden;
        box-sizing: border-box;
+       hyphens: auto;
 }
 .gallery figcaption > small {
        display: inline-block;
@@ -731,7 +737,7 @@ img {
 }
 @media (min-width: 603px) and (min-height: 400px) {
        /* fit 3 cells of 200x133 */
-       .gallery > ul > li:first-child > figure,
+       .gallery > li:first-child > figure,
        .gallery li.huge > figure {
                grid-row: span 3;
                grid-column: span 3;