Skip to content

Commit

Permalink
Fix no rounded corners if there is only one card in a card-group (twb…
Browse files Browse the repository at this point in the history
  • Loading branch information
spicydwarf authored and XhmikosR committed Sep 25, 2017
1 parent 9b8356b commit 2727456
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scss/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,18 @@
}
}

&:not(:first-child):not(:last-child) {
&:not(:first-child):not(:last-child):not(:only-child) {
border-radius: 0;

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

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

0 comments on commit 2727456

Please sign in to comment.