fix dropdown navbar overflow scrolling, and code horizontal overflow
parent
6902898adc
commit
dd94b656c9
|
@ -41,7 +41,7 @@
|
|||
|
||||
.nav-bar__menu {
|
||||
overflow-y: scroll;
|
||||
max-height: 100vh;
|
||||
max-height: 75vh;
|
||||
}
|
||||
|
||||
.hide-menu {
|
||||
|
|
|
@ -330,6 +330,7 @@ code {
|
|||
padding-right: 0.2em;
|
||||
padding-top: 0.05em;
|
||||
padding-bottom: 0.3em;
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
code.hljs {
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
// TODO register these individually with window resize use self callled function
|
||||
function resizeElements() {
|
||||
navbarSpacer();
|
||||
heroResize();
|
||||
// tagResize('iframe');
|
||||
// tagResize('.thumb--yt');
|
||||
typeResize(); // for section content
|
||||
$('.section__content--modal').perfectScrollbar('update');
|
||||
$('.nav-bar__menu').perfectScrollbar('update');
|
||||
$('.code').perfectScrollbar('update');
|
||||
};
|
||||
|
||||
function initialize() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
$('.section__content--modal').perfectScrollbar();
|
||||
$('.nav-bar__menu').perfectScrollbar();
|
||||
$('code').perfectScrollbar('update');
|
||||
resizeElements()
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue