X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=docs%2Fsite.css;h=308ba7ad7b9fb1a6851a0768cb86a5bae6348112;hb=f598f5e131cf7644fa168bfe49bded499d16363f;hp=3c81ebadbb4e0b05f3b6a65ab40642b5fc6dfdd1;hpb=3ad199fc4354b0311d86e31ddb0472c6e81e4e14;p=dygraphs.git diff --git a/docs/site.css b/docs/site.css index 3c81eba..308ba7a 100644 --- a/docs/site.css +++ b/docs/site.css @@ -32,7 +32,7 @@ body { } } @media screen and (min-width: 768px) and (max-width: 992px) { - /* The topnav drops down to the next line between these sizes. We must accomodate. */ + /* The topnav drops down to the next line between these sizes. We must accommodate. */ body { padding-top: 130px; } @@ -131,17 +131,24 @@ pre{ /* 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 + * See http://stackoverflow.com/questions/10732690/offsetting-an-html-anchor-to-adjust-for-fixed-header */ a[name] { - padding-top: 100px; /* matches body { padding-top } */ - margin-top: -100px; /* matches body { padding-top } */ - display: inline-block; /* required for webkit browsers */ + display: block; + position: relative; + top: -100px; + visibility: hidden; } @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 */ + top: -130px; } } +a.link { + visibility: hidden; + text-decoration: none; + color: #777; +} +.option:hover a.link { + visibility: visible; +}