Fix images with transparent class having shadow on hover
This commit is contained in:
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user