Skip to content

Commit

Permalink
fix body-padding-top
Browse files Browse the repository at this point in the history
missing scss variable interpolation
  • Loading branch information
juek committed Nov 20, 2018
1 parent 1d8cc03 commit de79c98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions themes/Bootswatch4_Scss/_common/compensate_fixed_navbar.scss
Expand Up @@ -7,7 +7,7 @@ $body-padding-top: 2rem;

// additional padding-top to the body element
body {
padding-top: calc( #{$navbar-height} + $body-padding-top );
padding-top: calc( #{$navbar-height} + #{$body-padding-top} );
}

// Prevent targeted anchors hiding behind fixed header navbar
Expand All @@ -16,7 +16,7 @@ body {
.GPAREA a[name]:not([href]),
.GPAREA a[id]:not([href]) {
margin-top: calc( ( #{$navbar-height} + #{$body-padding-top} ) * -1 );
padding-top: calc( #{$navbar-height} + #{$body-padding-top} );
padding-top: calc( #{$navbar-height} + #{$body-padding-top} );
z-index: -5;
}

Expand All @@ -25,5 +25,5 @@ body {
html:not(.override_admin_style) body.gpAdmin .GPAREA a[name]:not([href]),
html:not(.override_admin_style) body.gpAdmin .GPAREA a[id]:not([href]) {
margin-top: calc( ( #{$navbar-height} + #{$body-padding-top} + 29px ) * -1 );
padding-top: calc( #{$navbar-height} + #{$body-padding-top} + 29px );
padding-top: calc( #{$navbar-height} + #{$body-padding-top} + 29px );
}

0 comments on commit de79c98

Please sign in to comment.