From 5a5efb29ea45fd6f22fc7fa8c5ad63e9f9b3a7ee Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Mon, 5 Mar 2018 15:32:24 +0000 Subject: [PATCH] Tweak to fix conflict with WP admin bar. WIP #1912 @0.25 --- .../resources/assets/styles/layouts/header.styl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/physioassist/resources/assets/styles/layouts/header.styl b/wp-content/themes/physioassist/resources/assets/styles/layouts/header.styl index b19883b9..daed449d 100644 --- a/wp-content/themes/physioassist/resources/assets/styles/layouts/header.styl +++ b/wp-content/themes/physioassist/resources/assets/styles/layouts/header.styl @@ -1,4 +1,8 @@ -body.header-compact:not(.template-transparent-header) +// Add space above wrapper to compensate for fixed header on normal pages +// Padding applied to the .wrap element because applying it to the body requires +// us to set top:0 for header when fixed and this in turn causes it to sit +// partially under the WP admin bar when it is active. +body.header-compact:not(.template-transparent-header) .wrap padding-top: 65px header.site @@ -10,8 +14,6 @@ header.site // on hero-content pages when .header-compact class is added upon scroll .header-compact & position: fixed - top: 0 - left: 0 max-width: none width: 100% background-color: #003e65 -- 2.39.5