]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix incorrect aspect ratio on IE11
authorysds <ysds.code@gmail.com>
Thu, 12 Sep 2019 14:30:47 +0000 (23:30 +0900)
committerMartijn Cuppens <martijn.cuppens@gmail.com>
Sun, 15 Sep 2019 11:38:04 +0000 (13:38 +0200)
scss/_card.scss

index 24c65bee0480ca7d84dff37e04c0515f0fc57bea..c4d046ca0aef1a80415cd93e31a2e71aab7a0dbb 100644 (file)
   padding: $card-img-overlay-padding;
 }
 
-.card-img {
+.card-img,
+.card-img-top,
+.card-img-bottom {
+  flex-shrink: 0; // For IE: https://github.com/twbs/bootstrap/issues/29396
   width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
-  @include border-radius($card-inner-border-radius);
 }
 
-// Card image caps
+.card-img,
 .card-img-top {
-  width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
   @include border-top-radius($card-inner-border-radius);
 }
 
+.card-img,
 .card-img-bottom {
-  width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
   @include border-bottom-radius($card-inner-border-radius);
 }