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:
parent
8414126266
commit
22a535641b
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user