diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-06 18:38:43 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-06 18:38:43 -0400 |
commit | 0cc75363415a4f60100a230d78945465f9cefdcc (patch) | |
tree | b3876bb1bee6e1858930aafdb6d4bbe7e88bbfc5 | |
parent | 1108915f758db254187d47d6a2e626ed6abcbbf3 (diff) | |
download | gitlab-ce-0cc75363415a4f60100a230d78945465f9cefdcc.tar.gz |
Fix header link anchors
-rw-r--r-- | app/assets/stylesheets/generic/typography.scss | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |