« get me outta code hell

fix nav wrapping issues at small widths - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-06-21 23:13:05 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-06-21 23:13:05 -0300
commit0a717fec1c1557d40f14d1715f72960d2255cc44 (patch)
treec0b354d4bea4babb3b978e76142f96ab7b398207 /src/static
parent87588c9305fd76dd75af8eae7a2170f81eff9474 (diff)
fix nav wrapping issues at small widths
Diffstat (limited to 'src/static')
-rw-r--r--src/static/site.css12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/static/site.css b/src/static/site.css
index 7d1f4747..553172a5 100644
--- a/src/static/site.css
+++ b/src/static/site.css
@@ -121,12 +121,22 @@ a:hover {
 
 #header {
     display: grid;
-    grid-template-columns: max-content 3fr;
+}
+
+#header.nav-has-main-links.nav-has-content {
+    grid-template-columns: 2.5fr 3fr;
     grid-template-areas:
         "main-links content"
         "bottom-row content";
 }
 
+#header.nav-has-main-links:not(.nav-has-content) {
+    grid-template-columns: 1fr;
+    grid-template-areas:
+        "main-links"
+        "bottom-row";
+}
+
 .nav-main-links {
     grid-area: main-links;
     margin-right: 20px;