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

Fix border for single card in accordion (#29453)

This commit is contained in:
Martijn Cuppens 2019-10-03 09:43:45 +02:00 committed by GitHub
parent 03c9788f7a
commit 393ddae09b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,27 +245,17 @@
> .card {
overflow: hidden;
&:not(:first-of-type) {
.card-header:first-child {
@include border-radius(0);
}
&:not(:last-of-type) {
border-bottom: 0;
@include border-radius(0);
}
}
&:first-of-type:not(:last-of-type) {
border-bottom: 0;
@include border-bottom-radius(0);
}
&:last-of-type {
&:not(:first-of-type) {
@include border-top-radius(0);
}
.card-header {
> .card-header {
@include border-radius(0);
margin-bottom: -$card-border-width;
}
}