fix horizontal overflow scrollbar appearing

master
David Kebler 2017-04-08 15:47:13 -07:00
parent 052bbf5708
commit e99df78be1
4 changed files with 11 additions and 2 deletions

View File

@ -20,6 +20,7 @@ body {
font-size: 1.4rem; font-size: 1.4rem;
flex-direction: column; flex-direction: column;
width: 100vw; width: 100vw;
overflow-x: hidden;
/* 14px default before jquery scalling */ /* 14px default before jquery scalling */
} }

View File

@ -68,12 +68,13 @@
color: white; color: white;
} }
@media only screen and (min-width: 900px) { @media only screen and (min-width: 1000px) {
.nav-bar { .nav-bar {
flex-direction: row; flex-direction: row;
flex-wrap: nowrap; flex-wrap: nowrap;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding-right: 1em;
} }
.nav-bar__menu { .nav-bar__menu {

View File

@ -135,6 +135,10 @@
padding: 1em; padding: 1em;
} }
/*fix for fucking google chrome pushing up overflow content */
.section__content--modal * {
flex-shrink: 0;
}
/* ---------------- /* ----------------
Hero Section Hero Section
---------------- */ ---------------- */

View File

@ -48,7 +48,7 @@ function heroResize(bfr = 30) {
//console.log('fr after', fr) //console.log('fr after', fr)
$('#hero').css({ $('#hero').css({
width: w + 10, width: w+15,
height: h / w > 1.5 ? w * 1.5 : h, height: h / w > 1.5 ? w * 1.5 : h,
}); });
@ -174,3 +174,6 @@ function lightgallery(id) {
}(jQuery)); }(jQuery));
// end modal // end modal
l
l
l