aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/sass/_layout.scss
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-01-15 19:32:56 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-01-19 15:51:16 +0000
commit9232c62b050f5b9371b3c74dfe57e87ad186b9c9 (patch)
tree0eba0334066bf38796392f314366f712da519f06 /web/cobrands/sass/_layout.scss
parent3d5e0210feacf96e21e1916ab0df84b83f5f05e2 (diff)
Pad internal update links so they are in view.
Fixes #1308.
Diffstat (limited to 'web/cobrands/sass/_layout.scss')
-rw-r--r--web/cobrands/sass/_layout.scss8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss
index a2dd1a8a0..96b3d2aec 100644
--- a/web/cobrands/sass/_layout.scss
+++ b/web/cobrands/sass/_layout.scss
@@ -3,6 +3,14 @@
$image-sprite: '/cobrands/fixmystreet/images/sprite.png' !default;
+.internal-link-fixed-header {
+ display: block;
+ /* 5em is roughly the height of .nav-wrapper-2 (4em) plus the border-top on
+ .nav-wrapper-2 (4px), plus the padding-top on .item-list__item (0.5em). */
+ padding-top: 5em;
+ margin-top: -5em;
+}
+
//hacks for desk/mob only stuff
.desk-only {
display: block;