From b7f1bc50a04835987ecb0cc4749c35227860b97e Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 6 May 2023 01:08:12 +0300 Subject: [PATCH] exempt holes from the new banner code --- files/assets/css/main.css | 10 +++++++++- files/templates/default.html | 18 +++++++++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 96c8e773a..91f63aed0 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -6844,12 +6844,20 @@ div.markdown { object-fit: contain; } -.site-banner, .site-banner-hole { +.site-banner { width: 100%; height: 100%; max-height: 30vh; object-fit: contain; } + +.site-banner-hole { + width: 100%; + height: 100%; + max-height: min(42vh,30vw) !important; + object-fit: cover; +} + .banner-wrapper > div { position: relative; } diff --git a/files/templates/default.html b/files/templates/default.html index 190e7b672..79d7f8c5c 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -45,13 +45,21 @@ {% endif %} {% endif %} -