Don't use !important in media styles

This commit is contained in:
daudix
2024-06-20 01:51:52 +03:00
parent 096aea2cf0
commit 77fdb7c6d8
2 changed files with 19 additions and 16 deletions

View File

@ -1,17 +1,3 @@
img {
transition: var(--transition-longer);
&:not(.no-hover, &[src*="#no-hover"]) {
cursor: zoom-in;
&:hover {
transform: scale(1.1);
box-shadow: var(--shadow-raised);
border-radius: 0;
}
}
}
img,
video {
display: block;
@ -34,9 +20,26 @@ video {
&[src*="#transparent"] {
box-shadow: none;
border-radius: 0;
}
}
img {
transition: var(--transition-longer);
&:not(.no-hover, &[src*="#no-hover"]) {
cursor: zoom-in;
&:hover {
box-shadow: none !important;
transform: scale(1.1);
box-shadow: var(--shadow-raised);
border-radius: 0;
}
&.transparent,
&[src*="#transparent"] {
&:hover {
box-shadow: none;
}
}
}
}