From 622fe05ff4c7f4110d5de8d4648505cfbf7349b2 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 14 Aug 2013 23:06:37 -0700 Subject: fixes #9445: make img responsive mixin use display block, but provide option to pass custom value to it --- less/scaffolding.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'less') 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 } -- cgit v1.2.3