fix dropdown navbar overflow scrolling, and code horizontal overflow

master
David Kebler 2017-04-11 14:47:39 -07:00
parent 6902898adc
commit dd94b656c9
3 changed files with 7 additions and 3 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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()
}; };