diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 485611548f..2fb8dff40f 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -6358,10 +6358,11 @@ div.markdown { -o-object-fit: contain; } -img[alt*="banner"] { +.site-banner { width: 100%; } -img[alt*="banner"][alt^="/h/"]{ +.site-banner-hole { + width: 100%; object-fit: cover; max-height: min(42vh,30vw) !important; } diff --git a/files/templates/default.html b/files/templates/default.html index 35bf6baa3d..3f17cfea0f 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -34,12 +34,13 @@ {% if sub and SITE_NAME != WPD %} {% set src = sub.banner_url %} {% set alt = ['/h/', sub, 'banner']|join %} + {% set class = 'site-banner-hole' %} {% elif SITE_NAME == "rDrama" %} {% set href = "https://secure.transequality.org/site/Donation2?df_id=1480" %} {% set expand = false %} {% endif %} - {{ macros.banner(src, href, alt, expand) }} + {{ macros.banner(src, href, alt, expand, class) }} {% endif %} {% endblock %} diff --git a/files/templates/errors/PCM/502.html b/files/templates/errors/PCM/502.html index d071267304..7074699cfa 100644 --- a/files/templates/errors/PCM/502.html +++ b/files/templates/errors/PCM/502.html @@ -88,7 +88,7 @@
-