]> git.wh0rd.org - nano-editor.git/blobdiff - style.css
bottom: switch to CSS flexbox
[nano-editor.git] / style.css
index 670aa363adc9c62eb42be51f3d72c91bc06f1e2c..be33cd90846f43ca55c9a3fac0a9cd6c9536cf1c 100644 (file)
--- a/style.css
+++ b/style.css
@@ -70,7 +70,7 @@ table#homepage {
 }
 
 table#top td,
-table#bottom td.indented {
+div#bottom .indented {
        padding-left: 1ch;
        padding-right: 1ch;
 }
@@ -80,6 +80,18 @@ table#download {
        width: 80%;
 }
 
+div#bottom {
+       display: flex;
+       flex-wrap: wrap;
+}
+div#bottom span.menuitem {
+       flex-basis: 25%;
+       flex-grow: 1;
+       flex-shrink: 0;
+       line-height: 1em;
+       white-space: nowrap;
+}
+
 /* Mobile (i.e. phones) */
 @media only screen and (max-width: 768px) {
 body {
@@ -91,13 +103,25 @@ table#homepage {
 }
 
 table#top td,
-table#bottom td.indented {
+div#bottom .indented {
        padding-left: 0.5ch;
        padding-right: 0.5ch;
 }
 
+div#bottom span.menuitem {
+       font-size: large;
+       line-height: inherit;
+}
+
 table#docs,
 table#download {
        width: 100%;
 }
 }
+
+@media only screen and (max-width: 600px) {
+div#bottom span.menuitem {
+       flex-basis: 50%;
+       line-height: 1.5em;
+}
+}