From 0cc75363415a4f60100a230d78945465f9cefdcc Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Wed, 6 May 2015 18:38:43 -0400 Subject: [PATCH] Fix header link anchors --- app/assets/stylesheets/generic/typography.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/generic/typography.scss b/app/assets/stylesheets/generic/typography.scss index 36a9a540747..e5590897947 100644 --- a/app/assets/stylesheets/generic/typography.scss +++ b/app/assets/stylesheets/generic/typography.scss @@ -37,7 +37,9 @@ pre { position: relative; a.anchor { - display: none; + // Setting `display: none` would prevent the anchor being scrolled to, so + // instead we set the height to 0 and it gets updated on hover. + height: 0; } &:hover > a.anchor {