Skip to content

Commit

Permalink
fix card group border radii (#24491)
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbotje authored and mdo committed Oct 22, 2017
1 parent 2564931 commit 6824f71
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions scss/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -194,32 +194,38 @@
&:first-child {
@include border-right-radius(0);

.card-img-top {
.card-img-top,
.card-header {
border-top-right-radius: 0;
}
.card-img-bottom {
.card-img-bottom,
.card-footer {
border-bottom-right-radius: 0;
}
}

&:last-child {
@include border-left-radius(0);

.card-img-top {
.card-img-top,
.card-header {
border-top-left-radius: 0;
}
.card-img-bottom {
.card-img-bottom,
.card-footer {
border-bottom-left-radius: 0;
}
}

&:only-child {
@include border-radius($card-border-radius);

.card-img-top {
.card-img-top,
.card-header {
@include border-top-radius($card-border-radius);
}
.card-img-bottom {
.card-img-bottom,
.card-footer {
@include border-bottom-radius($card-border-radius);
}
}
Expand All @@ -228,7 +234,9 @@
border-radius: 0;

.card-img-top,
.card-img-bottom {
.card-img-bottom,
.card-header,
.card-footer {
border-radius: 0;
}
}
Expand Down

0 comments on commit 6824f71

Please sign in to comment.