2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03: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
+7
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) {