Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
22a53564
Unverified
Commit
22a53564
authored
5 years ago
by
Martijn Cuppens
Committed by
GitHub
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Cleanup responsive tables (#30482)
parent
84141262
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scss/_tables.scss
+8
-17
scss/_tables.scss
with
8 additions
and
17 deletions
+8
-17
scss/_tables.scss
+
8
-
17
View file @
22a53564
...
...
@@ -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
;
}
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment