]> git.wh0rd.org - nano-editor.git/blobdiff - style.css
bottom: switch to CSS flexbox
[nano-editor.git] / style.css
index 65e93a22b383d0288b000944a48798b3e5ed1a95..be33cd90846f43ca55c9a3fac0a9cd6c9536cf1c 100644 (file)
--- a/style.css
+++ b/style.css
@@ -70,11 +70,28 @@ table#homepage {
 }
 
 table#top td,
-table#bottom td.indented {
+div#bottom .indented {
        padding-left: 1ch;
        padding-right: 1ch;
 }
 
+table#docs,
+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 {
@@ -86,8 +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;
+}
 }