Skip to content

Commit

Permalink
_tables – fix .table-responsive output order
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinjuarez committed Dec 7, 2018
1 parent 00f8732 commit 1fd58d6
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions less/_tables.less
Original file line number Diff line number Diff line change
Expand Up @@ -167,43 +167,43 @@ each(@theme-colors, #(@value, @color) {
// 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;
// -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
//
// // Prevent double border on horizontal scroll due to use of `display: block;`
// &.table-bordered {
// border: 0;
// }
// }
// }
//}
each(keys(@grid-breakpoints), #(@breakpoint) {
@next: breakpoint-next(@breakpoint, @grid-breakpoints);
@infix: breakpoint-infix(@next, @grid-breakpoints);

&@{infix} {
#media-breakpoint-down(@breakpoint, {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057

// Prevent double border on horizontal scroll due to use of `display: block;`
> .table-bordered {
border: 0;
}
});
}
})
}
//.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;
// -ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057
//
// // Prevent double border on horizontal scroll due to use of `display: block;`
// &.table-bordered {
// border: 0;
// }
// }
// }
// }
//}
each(keys(@grid-breakpoints), #(@breakpoint) {
@next: breakpoint-next(@breakpoint, @grid-breakpoints);
@infix: breakpoint-infix(@next, @grid-breakpoints);

.table-responsive@{infix} {
#media-breakpoint-down(@breakpoint, {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar; // See https://github.com/twbs/bootstrap/pull/10057

// Prevent double border on horizontal scroll due to use of `display: block;`
> .table-bordered {
border: 0;
}
});
}
})

0 comments on commit 1fd58d6

Please sign in to comment.