mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-07 04:54:24 +01:00
Fix card list group borders & radii (#30497)
This commit is contained in:
parent
1cc1a47646
commit
e8e6d64eb0
@ -19,15 +19,18 @@
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .list-group:first-child {
|
> .list-group {
|
||||||
.list-group-item:first-child {
|
border-top: inherit;
|
||||||
@include border-top-radius($card-border-radius);
|
border-bottom: inherit;
|
||||||
}
|
|
||||||
|
&:first-child {
|
||||||
|
border-top-width: 0;
|
||||||
|
@include border-top-radius($card-inner-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
> .list-group:last-child {
|
&:last-child {
|
||||||
.list-group-item:last-child {
|
border-bottom-width: 0;
|
||||||
@include border-bottom-radius($card-border-radius);
|
@include border-bottom-radius($card-inner-border-radius);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
// No need to set list-style: none; since .list-group-item is block level
|
// No need to set list-style: none; since .list-group-item is block level
|
||||||
padding-left: 0; // reset padding because ul and ol
|
padding-left: 0; // reset padding because ul and ol
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
@include border-radius($list-group-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -52,11 +53,11 @@
|
|||||||
border: $list-group-border-width solid $list-group-border-color;
|
border: $list-group-border-width solid $list-group-border-color;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
@include border-top-radius($list-group-border-radius);
|
@include border-top-radius(inherit);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
@include border-bottom-radius($list-group-border-radius);
|
@include border-bottom-radius(inherit);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.disabled,
|
&.disabled,
|
||||||
@ -132,18 +133,12 @@
|
|||||||
// useful within other components (e.g., cards).
|
// useful within other components (e.g., cards).
|
||||||
|
|
||||||
.list-group-flush {
|
.list-group-flush {
|
||||||
.list-group-item {
|
|
||||||
border-right-width: 0;
|
|
||||||
border-left-width: 0;
|
|
||||||
@include border-radius(0);
|
@include border-radius(0);
|
||||||
|
|
||||||
&:first-child {
|
.list-group-item {
|
||||||
border-top-width: 0;
|
border-width: 0 0 $list-group-border-width;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
.list-group-item:last-child {
|
|
||||||
border-bottom-width: 0;
|
border-bottom-width: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user