From 7e00211b5f6dfdf72cc124f4a350017755498b11 Mon Sep 17 00:00:00 2001 From: Vincent Mahnke Date: Sat, 7 Nov 2026 18:39:02 +0100 Subject: [PATCH] Fix header alignment across all pages - Removed old header__intro wrapper and vertical stacking from baseof.html - All pages now use consistent horizontal header layout (logo left, h1 right) - Updated root assets/css/_custom.css to remove flex-direction: column on mobile - Updated theme's _custom.css to: - Scale logo to 50x50px on mobile, 100x100px on desktop - Reduce h1 font size from --fs-xxl to --fs-l - Set h1 margins to 0 and flex-shrink: 1 for proper flex alignment - Home and News pages now have aligned headers across all screen sizes - Updated submodule pointer to hackertours-mobile-nav with header fixes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- assets/css/_custom.css | 30 +++++++++++++++++------------- layouts/baseof.html | 7 +++---- themes/zen | 2 +- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/assets/css/_custom.css b/assets/css/_custom.css index 35730e8..6230903 100644 --- a/assets/css/_custom.css +++ b/assets/css/_custom.css @@ -5,14 +5,25 @@ flex-shrink: 0; } -.header__intro { +/* Header h1 styling - smaller and flexible */ +.header__site-name { + font-size: var(--fs-l); + margin-block-start: 0; + margin-block-end: 0; + flex-shrink: 1; min-width: 0; } -@media (width <= 666px) { - .header { - flex-direction: column; - align-items: flex-start; +/* Logo scaling - smaller on mobile */ +.header__logo-image { + width: 50px; + height: 50px; +} + +@media (width >= 667px) { + .header__logo-image { + width: 100px; + height: 100px; } } @@ -117,14 +128,6 @@ display: block; } -.header__intro_headline { - margin: 0; - font: bold var(--fs-xxl) "Arial"; - padding-bottom: 10px; -} -.header__intro_text { - font-family: var(--ff-body) -} table, th, td { border: 1px solid; } @@ -223,3 +226,4 @@ span.content-image { font-size: var(--fs-xs); color: var(--color-text-meta); } + diff --git a/layouts/baseof.html b/layouts/baseof.html index cf52f12..116d459 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -26,10 +26,9 @@ {{ i18n {{ end -}} -
- -
{{ .Param "intro" }}
-
+

+{{ site.Title }} +

{{ if hugo.IsMultilingual }}{{ partial "language-selector.html" . }}{{ end -}} {{ if $.Param "menuinheader" }}{{ partial "menu.html" . }}{{ end -}} diff --git a/themes/zen b/themes/zen index 2fce4ed..8e145bb 160000 --- a/themes/zen +++ b/themes/zen @@ -1 +1 @@ -Subproject commit 2fce4ed623319c3dd7c12b9a0e3a59baa14c7dfb +Subproject commit 8e145bb881721b041873b867227dc3282fb9a601