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 {
overflow-y: scroll;
max-height: 100vh;
max-height: 75vh;
}
.hide-menu {

View File

@ -330,6 +330,7 @@ code {
padding-right: 0.2em;
padding-top: 0.05em;
padding-bottom: 0.3em;
overflow-x: scroll;
}
code.hljs {

View File

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