From 600be7d7865c7558c77c2cbaf7655abacd061d77 Mon Sep 17 00:00:00 2001 From: Vanguard90 Date: Mon, 5 Dec 2016 18:59:51 +0100 Subject: [PATCH] Styling updates on mobile. Window refresh on move. --- secondary/js-main.js | 9 +++++++++ secondary/main.css | 11 ++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/secondary/js-main.js b/secondary/js-main.js index 9ff1330e..3a829835 100644 --- a/secondary/js-main.js +++ b/secondary/js-main.js @@ -1,3 +1,12 @@ +/* Window resize reload start */ + +window.addEventListener('resize', function () { + "use strict"; + window.location.reload(); +}); + +/* Window resize reload end */ + /* Button click start */ var buttonClick = document.getElementsByClassName("abcd"); diff --git a/secondary/main.css b/secondary/main.css index 15e45585..30cb9d4a 100644 --- a/secondary/main.css +++ b/secondary/main.css @@ -999,18 +999,23 @@ header ol li:hover .header-element-11, header ol li:hover .header-element-12, he .mobile-hamburger { - height: 50px; + min-height: 50px; } .hamburger-menu { position: relative; padding-right: 3%; - padding-top: 2%; - height: 13%; + padding-top: 0px; + height: 12%; width: 15%; float: right; } +.hamburger-image { + + vertical-align: center; +} + .nav { display: none;