mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
remove redundant loop from list-group-horizontal (#28005)
This commit is contained in:
parent
5dcf7cd3b7
commit
46f34fd131
@ -84,24 +84,22 @@
|
|||||||
@include media-breakpoint-up($breakpoint) {
|
@include media-breakpoint-up($breakpoint) {
|
||||||
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
||||||
|
|
||||||
@each $value in $displays {
|
.list-group-horizontal#{$infix} {
|
||||||
.list-group-horizontal#{$infix} {
|
flex-direction: row;
|
||||||
flex-direction: row;
|
|
||||||
|
|
||||||
.list-group-item {
|
.list-group-item {
|
||||||
margin-right: -$list-group-border-width;
|
margin-right: -$list-group-border-width;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
@include border-left-radius($list-group-border-radius);
|
@include border-left-radius($list-group-border-radius);
|
||||||
@include border-top-right-radius(0);
|
@include border-top-right-radius(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
@include border-right-radius($list-group-border-radius);
|
@include border-right-radius($list-group-border-radius);
|
||||||
@include border-bottom-left-radius(0);
|
@include border-bottom-left-radius(0);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user