aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-06-03 22:27:36 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-06-03 22:27:36 +0100
commit03808b117af6259332ab372b3b564c6d1ec95f50 (patch)
treee7f977a815bb2a5e8b3126ee48ecd1a69c968698 /web
parenta18ac5c65d3ee4fa6220417ab1644bdba938a19d (diff)
Fix calculation when header height given in px.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/sass/_layout.scss9
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