diff options
| author | Martijn Cuppens <[email protected]> | 2020-03-31 10:33:05 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-31 10:33:05 +0200 |
| commit | 22a535641b9f2f7d3fce291ab446f1a73ae23557 (patch) | |
| tree | f2b247f66d0598f8cbe3a2bf49c89a9a6b1bae5e | |
| parent | 841412626633a89b8ba7910a683b7e0830fd4d2d (diff) | |
| download | bootstrap-22a535641b9f2f7d3fce291ab446f1a73ae23557.tar.xz bootstrap-22a535641b9f2f7d3fce291ab446f1a73ae23557.zip | |
Cleanup responsive tables (#30482)
| -rw-r--r-- | scss/_tables.scss | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/scss/_tables.scss b/scss/_tables.scss index cb5fc8421..253282c98 100644 --- a/scss/_tables.scss +++ b/scss/_tables.scss @@ -174,23 +174,14 @@ // Generate series of `.table-responsive-*` classes for configuring the screen // size of where your table will overflow. -.table-responsive { - @each $breakpoint in map-keys($grid-breakpoints) { - $next: breakpoint-next($breakpoint, $grid-breakpoints); - $infix: breakpoint-infix($next, $grid-breakpoints); - - &#{$infix} { - @include media-breakpoint-down($breakpoint) { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - - // Prevent double border on horizontal scroll due to use of `display: block;` - > .table-bordered { - border: 0; - } - } +@each $breakpoint in map-keys($grid-breakpoints) { + $next: breakpoint-next($breakpoint, $grid-breakpoints); + $infix: breakpoint-infix($next, $grid-breakpoints); + + @include media-breakpoint-down($breakpoint) { + .table-responsive#{$infix} { + overflow-x: auto; + -webkit-overflow-scrolling: touch; } } } |
