0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

remove redundant loop from list-group-horizontal (#28005)

This commit is contained in:
wojtask9 2019-01-08 19:18:36 +01:00 committed by XhmikosR
parent 5dcf7cd3b7
commit 46f34fd131

View File

@ -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);
}
} }
} }
} }