aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2019-03-12 00:47:36 -0700
committerXhmikosR <[email protected]>2019-03-12 09:47:36 +0200
commit89d73849441a5e9e202d6a52c754b548072eeffb (patch)
tree69600924a1a2a779cdf2830d9d269754aa3d9ecd
parentac67e04ce016406377595291ff1357eda63cc311 (diff)
downloadbootstrap-89d73849441a5e9e202d6a52c754b548072eeffb.tar.xz
bootstrap-89d73849441a5e9e202d6a52c754b548072eeffb.zip
Drop deprecated img-retina mixin (#28459)
-rw-r--r--scss/mixins/_image.scss20
1 files changed, 0 insertions, 20 deletions
diff --git a/scss/mixins/_image.scss b/scss/mixins/_image.scss
index a76a6082b..e1df779f8 100644
--- a/scss/mixins/_image.scss
+++ b/scss/mixins/_image.scss
@@ -14,23 +14,3 @@
// when setting a width and height attribute on the img element.
height: auto;
}
-
-
-// Retina image
-//
-// Short retina mixin for setting background-image and -size.
-
-@mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) {
- background-image: url($file-1x);
-
- // Autoprefixer takes care of adding -webkit-min-device-pixel-ratio and -o-min-device-pixel-ratio,
- // 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/#feat=css-media-resolution
- @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");
-}