From a2a614e2e42fd9c5a620d5600dfc01357503b489 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 30 Jul 2015 14:33:59 +0000 Subject: [PATCH] Mini header fix on small screens --- images/logo/Cube.svg | 18 +++++++++++++++ images/logo/Typo.svg | 53 ++++++++++++++++++++++++++++++++++++++++++++ js/header.js | 4 ++++ less/header.less | 4 ++-- 4 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 images/logo/Cube.svg create mode 100644 images/logo/Typo.svg diff --git a/images/logo/Cube.svg b/images/logo/Cube.svg new file mode 100644 index 0000000..e2ef3bf --- /dev/null +++ b/images/logo/Cube.svg @@ -0,0 +1,18 @@ + + + + + + + + + diff --git a/images/logo/Typo.svg b/images/logo/Typo.svg new file mode 100644 index 0000000..eb299ed --- /dev/null +++ b/images/logo/Typo.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/js/header.js b/js/header.js index 9f18337..025dcf6 100644 --- a/js/header.js +++ b/js/header.js @@ -30,6 +30,10 @@ function load_header() { var typo = $(logo).find('img.typo'); htl.add(TweenMax.fromTo(typo, 1, {opacity: 1}, {opacity: 0}), 1); + // Hamburger + var hamburger = $(h).find('.nav-icon'); + htl.add(TweenMax.fromTo(hamburger, 1, {paddingTop: 44, paddingBottom: 44}, {paddingTop: 14, paddingBottom: 14}), 0); + htl.stop(); $(window).on('scroll', headerScroll); headerScroll(); diff --git a/less/header.less b/less/header.less index 7eaf2f1..f7a86e7 100644 --- a/less/header.less +++ b/less/header.less @@ -99,7 +99,7 @@ header { position: absolute; top: 3px; right: 0; - padding: 2em 34px; // 34px is to push it away from the right margin and keep aligned with right edge + padding: 34px 34px; // 34px is to push it away from the right margin and keep aligned with right edge box-sizing: content-box; display: inline-block; @@ -151,7 +151,7 @@ header { #header { height: auto; - min-height: 130px; + height: 130px; z-index: 10; } -- 2.39.5