mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #4503 from acemod/fixTables
Make wide tables scrollable on mobile, close #3115
This commit is contained in:
commit
bc4177d4ff
File diff suppressed because one or more lines are too long
@ -5191,6 +5191,12 @@ jQuery(document).ready(function(){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var $tables = $("#content table");
|
||||
$tables.each(function(index, item) {
|
||||
var $table = $(item);
|
||||
$table.wrap("<div class=\"table-wrapper\">")
|
||||
});
|
||||
});
|
||||
|
||||
window.app = window.app || {};
|
||||
|
12
docs/js/footer.min.js
vendored
12
docs/js/footer.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -35,6 +35,12 @@ jQuery(document).ready(function(){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var $tables = $("#content table");
|
||||
$tables.each(function(index, item) {
|
||||
var $table = $(item);
|
||||
$table.wrap("<div class=\"table-wrapper\">")
|
||||
});
|
||||
});
|
||||
|
||||
window.app = window.app || {};
|
||||
|
@ -63,5 +63,6 @@
|
||||
@import "ui/video";
|
||||
@import "ui/icons";
|
||||
@import "ui/toc";
|
||||
@import "ui/_search";
|
||||
@import "ui/_articles";
|
||||
@import "ui/search";
|
||||
@import "ui/articles";
|
||||
@import "ui/table";
|
||||
|
6
docs/src/scss/ui/_table.scss
Normal file
6
docs/src/scss/ui/_table.scss
Normal file
@ -0,0 +1,6 @@
|
||||
.table-wrapper {
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
_overflow: auto;
|
||||
margin: 0 0 1em;
|
||||
}
|
Loading…
Reference in New Issue
Block a user