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