Merge pull request #4503 from acemod/fixTables

Make wide tables scrollable on mobile, close #3115
This commit is contained in:
bux578 2016-10-03 11:42:50 +02:00 committed by GitHub
commit bc4177d4ff
7 changed files with 30 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -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 || {}; window.app = window.app || {};

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

View File

@ -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 || {}; window.app = window.app || {};

View File

@ -63,5 +63,6 @@
@import "ui/video"; @import "ui/video";
@import "ui/icons"; @import "ui/icons";
@import "ui/toc"; @import "ui/toc";
@import "ui/_search"; @import "ui/search";
@import "ui/_articles"; @import "ui/articles";
@import "ui/table";

View File

@ -0,0 +1,6 @@
.table-wrapper {
width: 100%;
overflow-y: auto;
_overflow: auto;
margin: 0 0 1em;
}