0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

Add border radius to an image when it's the only card of a card group (#24321)

This commit is contained in:
Andres Galante 2017-10-10 19:18:56 -03:00 committed by XhmikosR
parent f7acb278e2
commit 776188ad73

View File

@ -215,6 +215,13 @@
&:only-child {
@include border-radius($card-border-radius);
.card-img-top {
@include border-top-radius($card-border-radius);
}
.card-img-bottom {
@include border-bottom-radius($card-border-radius);
}
}
&:not(:first-child):not(:last-child):not(:only-child) {