From 0a7d0d86599bbb474c258ea154712fe869983f22 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 26 Jan 2016 13:16:39 -0500 Subject: [PATCH] added scroll to top function for off canvas, topbar link left aligned --- css/app.css | 2 +- js/app.js | 3 +++ js/custom/pageSetup.js | 3 +++ scss/_topbar.scss | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) 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; -- 2.17.1