Skip to content

Commit

Permalink
Update _image.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
kpawelczak committed Jan 7, 2025
1 parent 3cdc3ab commit c5c9eb9
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// - Responsive image
// - Retina image


// Responsive image
//
// Keep images from scaling beyond the width of their parents.
Expand All @@ -15,7 +14,6 @@
height: auto;
}


// Retina image
//
// Short retina mixin for setting background-image and -size.
Expand All @@ -27,10 +25,11 @@
// but doesn't convert dppx=>dpi.
// There's no such thing as unprefixed min-device-pixel-ratio since it's nonstandard.
// Compatibility info: https://caniuse.com/css-media-resolution
@media only screen and (min-resolution: 192dpi), // IE9-11 don't support dppx
only screen and (min-resolution: 2dppx) { // Standardized
@media only screen and (min-resolution: 192dpi),
// IE9-11 don't support dppx only screen and (min-resolution: 2dppx) {
// Standardized
background-image: url($file-2x);
background-size: $width-1x $height-1x;
}
@include deprecate("`img-retina()`", "v4.3.0", "v5");
@include deprecate('`img-retina()`', 'v4.3.0', 'v5');
}

0 comments on commit c5c9eb9

Please sign in to comment.