Files
blog/sass/_media.scss
daudix 018fcf813c Get rid of overcomplicated transition properties
Not a single time this been useful, quite the opposite; it was very
annoying
2024-06-15 02:18:13 +03:00

43 lines
587 B
SCSS

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;
margin: 1rem auto;
box-shadow: var(--shadow);
border-radius: var(--rounded-corner);
max-width: 100%;
&.full,
&[src*="#full"] {
width: 100%;
}
&.pixels,
&[src*="#pixels"] {
image-rendering: pixelated;
}
&.transparent,
&[src*="#transparent"] {
box-shadow: none;
border-radius: 0;
&:hover {
box-shadow: none;
}
}
}