2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-20 20:00:36 +03:00

fixes #9582: restore img-responsive as a class and move it's mixin to mixins.less

This commit is contained in:
Mark Otto
2013-08-15 00:46:18 -07:00
parent 1b6a5bbca2
commit fee3f1e733
4 changed files with 26 additions and 11 deletions
+2 -4
View File
@@ -73,10 +73,8 @@ img {
}
// Responsive images (ensure images don't scale beyond their parents)
.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
.img-responsive {
.img-responsive();
}
// Rounded corners