mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-10 22:24:19 +01:00
Fix incorrect aspect ratio on IE11
This commit is contained in:
parent
6e63868500
commit
e2a93ec094
@ -131,19 +131,20 @@
|
|||||||
padding: $card-img-overlay-padding;
|
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
|
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 {
|
.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);
|
@include border-top-radius($card-inner-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-img,
|
||||||
.card-img-bottom {
|
.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);
|
@include border-bottom-radius($card-inner-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user