fix layout of brand in navbar when text wraps
authorDan Allen <dan@opendevise.com>
Sat, 4 Sep 2021 09:15:22 +0000 (03:15 -0600)
committerDan Allen <dan@opendevise.com>
Sat, 4 Sep 2021 09:15:22 +0000 (03:15 -0600)
src/css/header.css

index 066353f..6044296 100644 (file)
@@ -26,16 +26,22 @@ body {
   padding-left: 1rem;
 }
 
-.navbar-brand .navbar-item:first-child,
-.navbar-brand .navbar-item:first-child a {
+.navbar-brand .navbar-item:first-child {
   align-self: center;
   padding: 0;
   color: var(--navbar-font-color);
   font-size: calc(22 / var(--rem-base) * 1rem);
+  flex-wrap: wrap;
+  line-height: 1;
+}
+
+.navbar-brand .navbar-item:first-child a {
+  color: inherit;
+  word-wrap: normal;
 }
 
-.navbar-brand .separator {
-  padding: 0 0.375rem;
+.navbar-brand .navbar-item:first-child :not(:last-child) {
+  padding-right: 0.375rem;
 }
 
 .navbar-burger {