mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-15 01:55:46 +02:00
Fix for double border on cards in an accordion (#27133)
This commit is contained in:
@@ -277,25 +277,33 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
.accordion {
|
.accordion {
|
||||||
.card:not(:first-of-type):not(:last-of-type) {
|
.card {
|
||||||
border-bottom: 0;
|
overflow: hidden;
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card:not(:first-of-type) {
|
&:not(:first-of-type) {
|
||||||
.card-header:first-child {
|
.card-header:first-child {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:not(:last-of-type) {
|
||||||
|
border-bottom: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:first-of-type {
|
||||||
|
border-bottom: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-of-type {
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-header {
|
||||||
|
margin-bottom: -$card-border-width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card:first-of-type {
|
|
||||||
border-bottom: 0;
|
|
||||||
border-bottom-right-radius: 0;
|
|
||||||
border-bottom-left-radius: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card:last-of-type {
|
|
||||||
border-top-left-radius: 0;
|
|
||||||
border-top-right-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user