1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-01 09:22:55 +02:00

Revert "Images are responsive by default"

This reverts commit d29f851e82.

Making <img>s responsive by-default without opt-in can severely break
third-party widgets such as Google Maps.
This was an acknowledged problem in Bootstrap v2
(see https://github.com/twbs/bootstrap/issues/1506 ) and was fixed in v3
by requiring the .img-responsive class for explicit opt-in
(see 09cdee2f03).
The situation hasn't really changed since then. The responsive-by-default
approach hasn't become any more suitable in the intervening time.

So let's avoid having this regress in v4. :-)
This commit is contained in:
Chris Rebert
2015-03-28 04:06:22 -07:00
parent 321c3b66bb
commit 763d77e210
3 changed files with 23 additions and 6 deletions

View File

@@ -21,7 +21,7 @@
// Account for jankitude on images
> img,
> a > img {
// @extend .img-responsive;
@extend .img-responsive;
line-height: 1;
}