[www-doc] [Git][VideoLAN.org/websites][master] Fix navbar hides initial content when jumping to anchor

Jean-Baptiste Kempf gitlab at videolan.org
Thu Jan 21 13:42:03 CET 2016


Jean-Baptiste Kempf pushed to branch master at VideoLAN organization / websites


Commits:
db40843e by David Loiret at 2016-01-21T13:41:55Z
Fix navbar hides initial content when jumping to anchor

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

- - - - -


1 changed file:

- www.videolan.org/style/style.scss


Changes:

=====================================
www.videolan.org/style/style.scss
=====================================
--- a/www.videolan.org/style/style.scss
+++ b/www.videolan.org/style/style.scss
@@ -944,6 +944,15 @@ img, .normalButton {
 }
 
 /* ============================ BOOTSTRAP ADJUSTMENTS =========================== */
+//Fix navbar hides initial content when jumping to anchor.
+//Note that according to HTML5 spec, authors should not specify the name attribute on a elements.
+:target:before, a[name]:before {
+    display: block;
+    content: "";
+    margin-top: -75px;
+    height: 75px;
+    visibility: hidden;
+}
 
 .btn {
     border-radius: 4px;



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/commit/db40843ee4f7739df1df9ddc8ad0f0498c963321
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/www-doc/attachments/20160121/bbdc5f72/attachment.html>


More information about the www-doc mailing list