word: fit column(s) on smaller screen sizes
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 13 Jun 2020 08:42:41 +0000 (10:42 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 20 Oct 2020 20:49:11 +0000 (22:49 +0200)
Minimise page margins to fit common (phone) viewport of 412px,
otherwise no columns to prevent decreased width and padding.

word.plp

index 45525720399ab8ded056e0152050c5ea864e76f9..59bf8ca12beca9570f6e093c51948cf4e3d8441c 100644 (file)
--- a/word.plp
+++ b/word.plp
@@ -29,11 +29,16 @@ figcaption > small {
        display: inline-block;
 }
 
-li.large > figure {
-       grid-row: span 2;
-       grid-column: span 2;
+body {
+       margin: 8px 1px;
 }
-@media (min-width: 600px) and (min-height: 400px) {
+@media (min-width: 403px) and (min-height: 266px) {
+       li.large > figure {
+               grid-row: span 2;
+               grid-column: span 2;
+       }
+}
+@media (min-width: 603px) and (min-height: 400px) {
        p + ul > li:first-child > figure {
                grid-row: span 3;
                grid-column: span 3;