0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-07 04:54:24 +01:00

Cleanup responsive tables (#30482)

This commit is contained in:
Martijn Cuppens 2020-03-31 10:33:05 +02:00 committed by GitHub
parent 8414126266
commit 22a535641b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,23 +174,14 @@
// Generate series of `.table-responsive-*` classes for configuring the screen // Generate series of `.table-responsive-*` classes for configuring the screen
// size of where your table will overflow. // size of where your table will overflow.
.table-responsive { @each $breakpoint in map-keys($grid-breakpoints) {
@each $breakpoint in map-keys($grid-breakpoints) { $next: breakpoint-next($breakpoint, $grid-breakpoints);
$next: breakpoint-next($breakpoint, $grid-breakpoints); $infix: breakpoint-infix($next, $grid-breakpoints);
$infix: breakpoint-infix($next, $grid-breakpoints);
&#{$infix} { @include media-breakpoint-down($breakpoint) {
@include media-breakpoint-down($breakpoint) { .table-responsive#{$infix} {
display: block; overflow-x: auto;
width: 100%; -webkit-overflow-scrolling: touch;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
// Prevent double border on horizontal scroll due to use of `display: block;`
> .table-bordered {
border: 0;
}
}
} }
} }
} }