some more changes

This commit is contained in:
CherryKitten 2024-06-07 14:47:00 +02:00
parent 8c6873737c
commit 77c9f302a7
Signed by: sammy
GPG key ID: 98D8F75FB0658276

View file

@ -1,6 +1,5 @@
@import "variables";
.gallery {
display: grid;
grid-auto-flow: row dense;
@ -11,12 +10,17 @@
img {
max-width: 100%;
}
img:hover {
border: 2px ridge var(--accent);
}
}
.gallery:has(img:hover) img:not(:hover) {
filter: brightness(0.5) contrast(0.5);
}
@media not (prefers-reduced-motion) {
.gallery img:hover {
position: relative;
border: 2px ridge var(--accent);
transform: scale(1.7) translate(0, 25px);
z-index: 200;
}
}