From 98ae0d606dea036da3d2b2f93dfd24fc4bba47d6 Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Fri, 21 Oct 2022 16:40:24 +0200 Subject: [PATCH] hide all but first item in gallery preview --- style.css | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/style.css b/style.css index ce12807..0e5b479 100644 --- a/style.css +++ b/style.css @@ -54,6 +54,7 @@ img { position: relative; } img:before { + /* credits to https://bitsofco.de/styling-broken-images/ */ content:"no image:" attr(alt); display: block; position: absolute; @@ -1158,13 +1159,10 @@ form#commentform p.form-submit input#submit { max-width: 33%; overflow: hidden; } +.gallery .gallery-item:not(:first-of-type) { + display: none; +} .gallery img { -/* background-image: url('https://grafica.hangar.org/assets/img/hangar-logo-favico.png'); - background-size: auto; - background-repeat: no-repeat; - background-position: center; - background-blend-mode: darken; - background-color: #fafafa;*/ border: none !important; } .gallery .gallery-caption {