Fix images with transparent class having shadow on hover

This commit is contained in:
daudix
2024-03-31 00:10:28 +03:00
parent 451f589660
commit 65b151c63d

View File

@ -1,3 +1,17 @@
img {
transition: var(--transition-longer);
&:not(.no-hover) {
cursor: zoom-in;
}
&:not(.no-hover):hover {
border-radius: 0;
box-shadow: var(--shadow-raised);
transform: scale(1.1);
}
}
img, img,
video { video {
border-radius: var(--rounded-corner); border-radius: var(--rounded-corner);
@ -17,19 +31,9 @@ video {
&.transparent { &.transparent {
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
}
} &:hover {
box-shadow: none;
img { }
transition: var(--transition-longer);
&:not(.no-hover) {
cursor: zoom-in;
}
&:not(.no-hover):hover {
border-radius: 0;
box-shadow: var(--shadow-raised);
transform: scale(1.1);
} }
} }