Skip to content

Commit 2cd3170

Browse files
committed
_tables – fix .table-responsive output order
See less/less.js#3340
1 parent 9e9d537 commit 2cd3170

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

less/_tables.less

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -167,43 +167,43 @@ each(@theme-colors, #(@value, @color) {
167167
// Generate series of `.table-responsive-*` classes for configuring the screen
168168
// size of where your table will overflow.
169169

170-
.table-responsive {
171-
//@each $breakpoint in map-keys($grid-breakpoints) {
172-
// $next: breakpoint-next($breakpoint, $grid-breakpoints);
173-
// $infix: breakpoint-infix($next, $grid-breakpoints);
174-
//
175-
// &#{$infix} {
176-
// @include media-breakpoint-down($breakpoint) {
177-
// display: block;
178-
// width: 100%;
179-
// overflow-x: auto;
180-
// -webkit-overflow-scrolling: touch;
181-
// -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
182-
//
183-
// // Prevent double border on horizontal scroll due to use of `display: block;`
184-
// &.table-bordered {
185-
// border: 0;
186-
// }
187-
// }
188-
// }
189-
//}
190-
each(keys(@grid-breakpoints), #(@breakpoint) {
191-
@next: breakpoint-next(@breakpoint, @grid-breakpoints);
192-
@infix: breakpoint-infix(@next, @grid-breakpoints);
193-
194-
&@{infix} {
195-
#media-breakpoint-down(@breakpoint, {
196-
display: block;
197-
width: 100%;
198-
overflow-x: auto;
199-
-webkit-overflow-scrolling: touch;
200-
-ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
201-
202-
// Prevent double border on horizontal scroll due to use of `display: block;`
203-
> .table-bordered {
204-
border: 0;
205-
}
206-
});
207-
}
208-
})
209-
}
170+
//.table-responsive {
171+
// @each $breakpoint in map-keys($grid-breakpoints) {
172+
// $next: breakpoint-next($breakpoint, $grid-breakpoints);
173+
// $infix: breakpoint-infix($next, $grid-breakpoints);
174+
//
175+
// &#{$infix} {
176+
// @include media-breakpoint-down($breakpoint) {
177+
// display: block;
178+
// width: 100%;
179+
// overflow-x: auto;
180+
// -webkit-overflow-scrolling: touch;
181+
// -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
182+
//
183+
// // Prevent double border on horizontal scroll due to use of `display: block;`
184+
// &.table-bordered {
185+
// border: 0;
186+
// }
187+
// }
188+
// }
189+
// }
190+
//}
191+
each(keys(@grid-breakpoints), #(@breakpoint) {
192+
@next: breakpoint-next(@breakpoint, @grid-breakpoints);
193+
@infix: breakpoint-infix(@next, @grid-breakpoints);
194+
195+
.table-responsive@{infix} {
196+
#media-breakpoint-down(@breakpoint, {
197+
display: block;
198+
width: 100%;
199+
overflow-x: auto;
200+
-webkit-overflow-scrolling: touch;
201+
-ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
202+
203+
// Prevent double border on horizontal scroll due to use of `display: block;`
204+
> .table-bordered {
205+
border: 0;
206+
}
207+
});
208+
}
209+
})

0 commit comments

Comments
 (0)