From: Anthony Talarico Date: Fri, 14 Jul 2017 14:22:10 +0000 (-0400) Subject: adjusting topbar padding on scroll X-Git-Tag: v1.0.0^2~27 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f739630a063a841744933075eb44a5f95173e8be;p=WP-Themes%2Ftroutcreek.git adjusting topbar padding on scroll when the fixed class is addd to the page-content , not enough padding is set to show the interior page scrolling elements --- diff --git a/css/app.css b/css/app.css index a654db5..49a23b4 100644 --- a/css/app.css +++ b/css/app.css @@ -6432,7 +6432,7 @@ header { border-top-right-radius: 0; } .topbar-fixed { - padding-top: 185px; } + padding-top: 197px; } @media only screen and (min-width:40.063em) and (max-width:64em) { .topbar-fixed { diff --git a/js/app.js b/js/app.js index 0183b8c..78fff59 100644 --- a/js/app.js +++ b/js/app.js @@ -52,10 +52,9 @@ $(document).ready(function () { window.scrollTo(0,0); }); var header_height = $('header.main').outerHeight(); - $("#main-content a[href^='#']").on("click", function () { - $('html, body').animate({ + $('html, body').animate({ scrollTop: $(this.hash).offset().top - header_height }, 1000); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 28051c0..9549610 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -43,10 +43,9 @@ $(document).ready(function () { window.scrollTo(0,0); }); var header_height = $('header.main').outerHeight(); - $("#main-content a[href^='#']").on("click", function () { - $('html, body').animate({ + $('html, body').animate({ scrollTop: $(this.hash).offset().top - header_height }, 1000); }); diff --git a/scss/_topbar.scss b/scss/_topbar.scss index 9174d55..2b0de9d 100644 --- a/scss/_topbar.scss +++ b/scss/_topbar.scss @@ -183,7 +183,7 @@ } } .topbar-fixed { - padding-top: 185px; + padding-top: 197px; } @media#{$medium-only} {