1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Simplify card group css (#27901)

This commit is contained in:
Martijn Cuppens 2018-12-23 08:19:07 +01:00 committed by XhmikosR
parent 39b14c9806
commit 81e35985b8

View file

@ -195,7 +195,7 @@
// Handle rounded corners
@if $enable-rounded {
&:first-child {
&:not(:last-child) {
@include border-right-radius(0);
.card-img-top,
@ -210,7 +210,7 @@
}
}
&:last-child {
&:not(:first-child) {
@include border-left-radius(0);
.card-img-top,
@ -224,30 +224,6 @@
border-bottom-left-radius: 0;
}
}
&:only-child {
@include border-radius($card-border-radius);
.card-img-top,
.card-header {
@include border-top-radius($card-border-radius);
}
.card-img-bottom,
.card-footer {
@include border-bottom-radius($card-border-radius);
}
}
&:not(:first-child):not(:last-child):not(:only-child) {
@include border-radius(0);
.card-img-top,
.card-img-bottom,
.card-header,
.card-footer {
@include border-radius(0);
}
}
}
}
}