aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-06-18 17:34:09 -0700
committerMark Otto <[email protected]>2014-06-18 17:34:09 -0700
commit46e8a5817d0ddb98343dde1e0f0f8b335aba41e3 (patch)
tree0d812ebbc2519ebda7271e27fe83031a50658df5 /less
parentfdf174e498d8fbd9a73c45ccd805099a25e790f9 (diff)
downloadbootstrap-46e8a5817d0ddb98343dde1e0f0f8b335aba41e3.tar.xz
bootstrap-46e8a5817d0ddb98343dde1e0f0f8b335aba41e3.zip
fixes #10073: add width: 100%; for ie10 and below to size svg.img-responsive correctly
Diffstat (limited to 'less')
-rw-r--r--less/mixins/image.less1
1 files changed, 1 insertions, 0 deletions
diff --git a/less/mixins/image.less b/less/mixins/image.less
index f233cb3e1..5d2cccb27 100644
--- a/less/mixins/image.less
+++ b/less/mixins/image.less
@@ -8,6 +8,7 @@
// Keep images from scaling beyond the width of their parents.
.img-responsive(@display: block) {
display: @display;
+ width: 100% \9; // Force IE10 and below to size SVG images correctly
max-width: 100%; // Part 1: Set a maximum relative to the parent
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
}