From 4495915daefc1e7ec3a4ae68d8f8123fedadb798 Mon Sep 17 00:00:00 2001 From: Robin Whittleton Date: Sun, 26 Jul 2020 19:36:07 +0200 Subject: [PATCH] Better background colour for homepage splash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we set a dark background colour as well as the image it’ll show while the image is loading (or if the image fails to load). This colour is picked from the background of the image to reduce impact when it loads. --- www/css/core.css | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/www/css/core.css b/www/css/core.css index 2f97f91c..50c2773b 100644 --- a/www/css/core.css +++ b/www/css/core.css @@ -293,9 +293,7 @@ article > h1{ main.front-page h1{ text-align: center; - background: url('/images/book.jpg'); - background-size: cover; - background-position: center; + background: #29292b url('/images/book.jpg') center / cover; border-bottom: 1px solid var(--border); box-shadow: 0 0 10px rgba(0, 0, 0, .75); width: calc(100% + 4rem);