2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

fixes #9445: make img responsive mixin use display block, but provide option to pass custom value to it

This commit is contained in:
Mark Otto
2013-08-14 23:06:37 -07:00
parent 0456e5e4b3
commit 622fe05ff4
3 changed files with 5 additions and 11 deletions
+2 -2
View File
@@ -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
}