Skip to content

Commit db19e8c

Browse files
ysdsXhmikosR
authored andcommitted
Fix incorrect aspect ratio on IE11
1 parent 510a446 commit db19e8c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scss/_card.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,20 @@
125125
padding: $card-img-overlay-padding;
126126
}
127127

128-
.card-img {
128+
.card-img,
129+
.card-img-top,
130+
.card-img-bottom {
131+
flex-shrink: 0; // For IE: https://github.com/twbs/bootstrap/issues/29396
129132
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
130-
@include border-radius($card-inner-border-radius);
131133
}
132134

133-
// Card image caps
135+
.card-img,
134136
.card-img-top {
135-
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
136137
@include border-top-radius($card-inner-border-radius);
137138
}
138139

140+
.card-img,
139141
.card-img-bottom {
140-
width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
141142
@include border-bottom-radius($card-inner-border-radius);
142143
}
143144

0 commit comments

Comments
 (0)