]> 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)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 14 Oct 2019 09:12:05 +0000 (12:12 +0300)
scss/_card.scss

index 6fae8b405e1e875d6fa669bedf6ffdd844a81f82..d6759fde685feca92c448bb6ef1a2c617065edbe 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);
 }