fix(style): long table overflow
This commit is contained in:
parent
604485fd6f
commit
74a45e62b1
|
@ -416,22 +416,30 @@ figure.highlight
|
|||
&:hover .copy
|
||||
display: block
|
||||
|
||||
/* ---------------------------------
|
||||
* Overflow Table
|
||||
* --------------------------------- */
|
||||
.table-overflow
|
||||
overflow-x: auto
|
||||
table
|
||||
width: auto!important
|
||||
th
|
||||
word-break: keep-all
|
||||
|
||||
/* ---------------------------------
|
||||
* Fix Video
|
||||
* --------------------------------- */
|
||||
.video-container {
|
||||
position: relative;
|
||||
padding-bottom: 56.25%;
|
||||
padding-top: 25px;
|
||||
height: 0;
|
||||
}
|
||||
.video-container iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.video-container
|
||||
position: relative
|
||||
padding-bottom: 56.25%
|
||||
padding-top: 25px
|
||||
height: 0
|
||||
iframe
|
||||
position: absolute
|
||||
top: 0
|
||||
left: 0
|
||||
width: 100%
|
||||
height: 100%
|
||||
|
||||
/* ---------------------------------
|
||||
* Fix Gist Snippet
|
||||
|
|
|
@ -15,6 +15,12 @@
|
|||
});
|
||||
}
|
||||
|
||||
$('.article > .content > table').each(function () {
|
||||
if ($(this).width() > $(this).parent().width()) {
|
||||
$(this).wrap('<div class="table-overflow"></div>');
|
||||
}
|
||||
});
|
||||
|
||||
function adjustNavbar() {
|
||||
const navbarWidth = $('.navbar-main .navbar-start').outerWidth() + $('.navbar-main .navbar-end').outerWidth();
|
||||
if ($(document).outerWidth() < navbarWidth) {
|
||||
|
|
Loading…
Reference in New Issue