From dec2faec3d1ebdf0f72d5814e570ebc453346cde Mon Sep 17 00:00:00 2001 From: Bryan Braun Date: Fri, 15 May 2015 00:37:07 -0400 Subject: Update Anchor.js and port over the existing styles. Anchor.js 1.0.0 drops the need to use anchor.css, so we remove it from the codebase and move any leftover styles over to docs.css. Closes #16488 by merging it. --- docs/assets/css/src/docs.css | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'docs/assets/css/src/docs.css') diff --git a/docs/assets/css/src/docs.css b/docs/assets/css/src/docs.css index 2bdaaa0d8..28d92d73d 100644 --- a/docs/assets/css/src/docs.css +++ b/docs/assets/css/src/docs.css @@ -1595,6 +1595,31 @@ h1[id] { } } +/* + * AnchorJS Styles + */ +.anchorjs-link { + color: inherit; +} + +@media (max-width: 480px) { + .anchorjs-link { + display: none; + } +} + +*:hover > .anchorjs-link { + opacity: .75; + -webkit-transition: color .16s linear; + -o-transition: color .16s linear; + transition: color .16s linear; +} + +*:hover > .anchorjs-link:hover, +.anchorjs-link:focus { + text-decoration: none; + opacity: 1; +} /* * Miscellaneous -- cgit v1.2.3