hide all but first item in gallery preview

This commit is contained in:
jorge 2022-10-21 16:40:24 +02:00
parent f391e86701
commit 98ae0d606d
1 changed files with 4 additions and 6 deletions

View File

@ -54,6 +54,7 @@ img {
position: relative; position: relative;
} }
img:before { img:before {
/* credits to https://bitsofco.de/styling-broken-images/ */
content:"no image:" attr(alt); content:"no image:" attr(alt);
display: block; display: block;
position: absolute; position: absolute;
@ -1158,13 +1159,10 @@ form#commentform p.form-submit input#submit {
max-width: 33%; max-width: 33%;
overflow: hidden; overflow: hidden;
} }
.gallery .gallery-item:not(:first-of-type) {
display: none;
}
.gallery img { .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; border: none !important;
} }
.gallery .gallery-caption { .gallery .gallery-caption {