aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-14 23:06:37 -0700
committerMark Otto <[email protected]>2013-08-14 23:06:37 -0700
commit622fe05ff4c7f4110d5de8d4648505cfbf7349b2 (patch)
tree5f90599f63572e3a4025aef4ea01cc4d1defa69f /less
parent0456e5e4b38e4b43a11da68d2e16187728dd05a0 (diff)
downloadbootstrap-622fe05ff4c7f4110d5de8d4648505cfbf7349b2.tar.xz
bootstrap-622fe05ff4c7f4110d5de8d4648505cfbf7349b2.zip
fixes #9445: make img responsive mixin use display block, but provide option to pass custom value to it
Diffstat (limited to 'less')
-rw-r--r--less/scaffolding.less4
1 files changed, 2 insertions, 2 deletions
diff --git a/less/scaffolding.less b/less/scaffolding.less
index bd8392ac4..e4aa67260 100644
--- a/less/scaffolding.less
+++ b/less/scaffolding.less
@@ -73,8 +73,8 @@ img {
}
// Responsive images (ensure images don't scale beyond their parents)
-.img-responsive {
- display: inline-block;
+.img-responsive(@display: block;) {
+ display: @display;
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
}