Files
web/components/ImageGallery/imageGallery.module.css
Erik Tiekstra b12bc5c808 Merged in fix/image-gallery (pull request #1274)
fix: quick fix to have the tiggerArea only be position relative when not using fill

* fix: quick fix to have the tiggerArea only be position relative when not using fill


Approved-by: Pontus Dreij
2025-02-07 12:42:17 +00:00

47 lines
968 B
CSS

.imageCount {
position: absolute;
bottom: 16px;
right: 16px;
max-height: 32px;
width: 48px;
background-color: rgba(0, 0, 0, 0.6);
padding: var(--Spacing-x-quarter) var(--Spacing-x-half);
border-radius: var(--Corner-radius-Small);
display: flex;
align-items: center;
gap: var(--Spacing-x-quarter);
}
.triggerArea {
display: flex;
cursor: pointer;
}
.triggerArea:not(.fill) {
position: relative;
}
.image {
width: 100%;
height: 100%;
object-fit: cover;
}
.imagePlaceholder {
height: 100%;
min-height: 190px;
aspect-ratio: 16/9;
width: 100%;
background-color: #fff;
background-image: linear-gradient(45deg, #000000 25%, transparent 25%),
linear-gradient(-45deg, #000000 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #000000 75%),
linear-gradient(-45deg, transparent 75%, #000000 75%);
background-size: 180px 180px;
background-position:
0 0,
0 90px,
90px -90px,
-90px 0;
}