From c74fad179379260dcf46edeae22c1f04ee842508 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 2 Dec 2023 16:29:03 -0700 Subject: Manual static image optimization --- styles/layout.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'styles') diff --git a/styles/layout.css b/styles/layout.css index d416712..abc709a 100644 --- a/styles/layout.css +++ b/styles/layout.css @@ -141,9 +141,10 @@ header .headerBackground { } header .headerBackground img { - z-index: -1; object-fit: cover; object-position: center 75%; + width: 100%; + height: 100%; } header .headerBackground::after { @@ -152,6 +153,8 @@ header .headerBackground::after { width: 100%; height: 100%; background: rgba(0,0,0,.35); + position: absolute; + top: 0; } header:not(.homepage) ~ h1.pageTitle { -- cgit 1.4.1