X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=docs%2Fsite.css;h=58232d73e06be53628f70ae4e8b858357c340398;hb=ad739e06ecde73b8a05ff619fa901474b408ddaa;hp=a0c18c62c56fb4815f7a98fe366129c0724b3205;hpb=eb35c2f316f7d878b0ad7433b52cc4583894af07;p=dygraphs.git diff --git a/docs/site.css b/docs/site.css index a0c18c6..58232d7 100644 --- a/docs/site.css +++ b/docs/site.css @@ -128,3 +128,27 @@ 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/10732690/offsetting-an-html-anchor-to-adjust-for-fixed-header + */ +a[name] { + display: block; + position: relative; + top: -100px; + visibility: hidden; +} +@media screen and (min-width: 768px) and (max-width: 992px) { + a[name] { + top: -130px; + } +} +a.link { + visibility: hidden; + text-decoration: none; + color: #777; +} +.option:hover a.link { + visibility: visible; +}