From: Anthony Talarico Date: Tue, 26 Jan 2016 18:16:39 +0000 (-0500) Subject: added scroll to top function for off canvas, topbar link left aligned X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=0a7d0d86599bbb474c258ea154712fe869983f22;p=WP-Themes%2Fglmthemes%2Fsaultstemarie-theme.git added scroll to top function for off canvas, topbar link left aligned --- diff --git a/css/app.css b/css/app.css index 21ec620..f421b83 100644 --- a/css/app.css +++ b/css/app.css @@ -6457,7 +6457,7 @@ header { line-height: 1.25; padding-left: 15px; } .top-bar-section ul li a { - text-align: center; + text-align: left; padding: 0 20px; color: #FFFFFF; } .top-bar-section ul li:not(.has-form):not(.active) > a:not(.button) { diff --git a/js/app.js b/js/app.js index 98d446a..3846160 100644 --- a/js/app.js +++ b/js/app.js @@ -190,5 +190,8 @@ var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDat $(this).removeClass('front-page-blocks'); } }); + $(".menu-icon").on("click", function () { + window.scrollTo(0,0); + }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 94d07be..80328b7 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -181,5 +181,8 @@ var extraDay, end, arrival, currentDate, currentDate2, requiredDate, requiredDat $(this).removeClass('front-page-blocks'); } }); + $(".menu-icon").on("click", function () { + window.scrollTo(0,0); + }); }); diff --git a/scss/_topbar.scss b/scss/_topbar.scss index 3a1c8a5..2612647 100644 --- a/scss/_topbar.scss +++ b/scss/_topbar.scss @@ -36,7 +36,7 @@ // background: $white; } a { - text-align: center; + text-align: left; padding: 0 20px; // font-size: 18px;