diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-06-03 22:27:36 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-06-03 22:27:36 +0100 |
commit | 03808b117af6259332ab372b3b564c6d1ec95f50 (patch) | |
tree | e7f977a815bb2a5e8b3126ee48ecd1a69c968698 /web/cobrands/sass/_layout.scss | |
parent | a18ac5c65d3ee4fa6220417ab1644bdba938a19d (diff) |
Fix calculation when header height given in px.
Diffstat (limited to 'web/cobrands/sass/_layout.scss')
-rw-r--r-- | web/cobrands/sass/_layout.scss | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss index 99e6d7761..cf777dc02 100644 --- a/web/cobrands/sass/_layout.scss +++ b/web/cobrands/sass/_layout.scss @@ -9,8 +9,13 @@ $mappage-header-height: 4em !default; /* Roughly the height of .nav-wrapper-2 (mappage-header-height) plus the * border-top on .nav-wrapper-2 (4px), plus the padding-top on * .item-list__item (0.5em). */ - padding-top: $mappage-header-height + 1em; - margin-top: -($mappage-header-height + 1em); + @if unit($mappage-header-height) == 'em' { + padding-top: $mappage-header-height + 1em; + margin-top: -($mappage-header-height + 1em); + } @else { + padding-top: $mappage-header-height + 16px; + margin-top: -($mappage-header-height + 16px); + } } //hacks for desk/mob only stuff |