]> _ Git - physioassist-wordpress.git/commitdiff
Tweak to fix conflict with WP admin bar. WIP #1912 @0.25
authorstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 5 Mar 2018 15:32:24 +0000 (15:32 +0000)
committerstephen@cubedesigners.com <stephen@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 5 Mar 2018 15:32:24 +0000 (15:32 +0000)
wp-content/themes/physioassist/resources/assets/styles/layouts/header.styl

index b19883b987502143964253712e867a823dc05898..daed449d402da08f56da2df3600960feefad371d 100644 (file)
@@ -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