From: Dan Vanderkam Date: Thu, 29 Aug 2013 02:31:45 +0000 (-0400) Subject: fix for obscured headers on options.html#xyz X-Git-Tag: v1.0.1^2~5 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=3ad199fc4354b0311d86e31ddb0472c6e81e4e14;p=dygraphs.git fix for obscured headers on options.html#xyz --- diff --git a/docs/site.css b/docs/site.css index a0c18c6..3c81eba 100644 --- a/docs/site.css +++ b/docs/site.css @@ -128,3 +128,20 @@ pre{ #current-release p:last-child { margin-bottom: 0; } + +/* When you visit dygraphs.com/options.html#errorBars, the fixed top nav + * obscures the top 100px of content for that anchor. This is a workaround. + * See http://stackoverflow.com/questions/9047703/fixed-position-navbar-obscures-anchors + */ +a[name] { + padding-top: 100px; /* matches body { padding-top } */ + margin-top: -100px; /* matches body { padding-top } */ + display: inline-block; /* required for webkit browsers */ +} +@media screen and (min-width: 768px) and (max-width: 992px) { + a[name] { + padding-top: 130px; /* matches body { padding-top } */ + margin-top: -130px; /* matches body { padding-top } */ + display: inline-block; /* required for webkit browsers */ + } +}