From c9e7b1ff6429c09326a6037ccc6df827994dc580 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Thu, 18 Jan 2024 14:01:42 +0100 Subject: [PATCH] fix unresponsive header --- themes/hugo-theme-flat/static/css/style.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/themes/hugo-theme-flat/static/css/style.css b/themes/hugo-theme-flat/static/css/style.css index b019cd4..e25ec29 100644 --- a/themes/hugo-theme-flat/static/css/style.css +++ b/themes/hugo-theme-flat/static/css/style.css @@ -201,6 +201,12 @@ a.external:after{ /* size the element who has breakpoint limitation */ /* .header, .main-wrapper, .main { width: 100vw; } */ /* .header-wrapper, .footer { width: 100vw; } */ +.header-wrapper { + background-image: url("/img/banner.png"); + background-size: cover; + background-repeat: no-repeat; + background-position: center; +} .header-wrapper, .footer { width: 100vw;} .main-wrapper { width: calc(100vw - 2 * var(--len-3));} @@ -211,11 +217,9 @@ a.external:after{ .header { padding: 0 var(--len-3); width: 100%; - background-image: url("/img/banner.png"); + background-position: center; min-height: 240px; - min-width: 1260px; - text-shadow: 0px 0px 6px #0D0D0D, 0px 0px 14px #0D0D0D; }