fix(style): long table overflow

pull/491/head
ppoffice 2019-06-25 23:00:04 -04:00
parent 604485fd6f
commit 74a45e62b1
2 changed files with 31 additions and 17 deletions

View File

@ -416,22 +416,30 @@ figure.highlight
&:hover .copy &:hover .copy
display: block display: block
/* ---------------------------------
* Overflow Table
* --------------------------------- */
.table-overflow
overflow-x: auto
table
width: auto!important
th
word-break: keep-all
/* --------------------------------- /* ---------------------------------
* Fix Video * Fix Video
* --------------------------------- */ * --------------------------------- */
.video-container { .video-container
position: relative; position: relative
padding-bottom: 56.25%; padding-bottom: 56.25%
padding-top: 25px; padding-top: 25px
height: 0; height: 0
} iframe
.video-container iframe { position: absolute
position: absolute; top: 0
top: 0; left: 0
left: 0; width: 100%
width: 100%; height: 100%
height: 100%;
}
/* --------------------------------- /* ---------------------------------
* Fix Gist Snippet * Fix Gist Snippet

View File

@ -15,6 +15,12 @@
}); });
} }
$('.article > .content > table').each(function () {
if ($(this).width() > $(this).parent().width()) {
$(this).wrap('<div class="table-overflow"></div>');
}
});
function adjustNavbar() { function adjustNavbar() {
const navbarWidth = $('.navbar-main .navbar-start').outerWidth() + $('.navbar-main .navbar-end').outerWidth(); const navbarWidth = $('.navbar-main .navbar-start').outerWidth() + $('.navbar-main .navbar-end').outerWidth();
if ($(document).outerWidth() < navbarWidth) { if ($(document).outerWidth() < navbarWidth) {