From 8b117788c68013f191538ad147638795cae3fb40 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 30 Jan 2022 22:05:14 +0100 Subject: [PATCH] fix: fix header menu style if no extra entries were added (#305) --- layouts/partials/site-header.html | 55 ++++++++++++++----------------- src/sass/_base.scss | 1 + 2 files changed, 25 insertions(+), 31 deletions(-) diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html index 915a1b0..6abce85 100644 --- a/layouts/partials/site-header.html +++ b/layouts/partials/site-header.html @@ -25,9 +25,7 @@
- + {{ if .Root.Site.Data.menu.extra.header }} {{ partial "menu-extra" (dict "current" .Root "source" .Root.Site.Data.menu.extra.header "target" "header") }} {{ end }} @@ -48,38 +46,33 @@ - {{ if .Root.Site.Data.menu.extra.header }} - - - - {{ i18n "button_homepage" }} - - - - - {{ end }} + + + + {{ i18n "button_homepage" }} + + + + {{ partial "language" .Root }} - {{ if .Root.Site.Data.menu.extra.header }} - - - - {{ end }} + + + + - {{ if .Root.Site.Data.menu.extra.header }} - - {{ end }} +
diff --git a/src/sass/_base.scss b/src/sass/_base.scss index 791a4ab..921e768 100644 --- a/src/sass/_base.scss +++ b/src/sass/_base.scss @@ -194,6 +194,7 @@ img { .gdoc-brand { font-size: $font-size-32; + line-height: $font-size-32; &__img { margin-right: $padding-16;