diff options
Diffstat (limited to 'docs/assets/less/anchor.less')
-rw-r--r-- | docs/assets/less/anchor.less | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/assets/less/anchor.less b/docs/assets/less/anchor.less new file mode 100644 index 0000000000..5bc63602e7 --- /dev/null +++ b/docs/assets/less/anchor.less @@ -0,0 +1,25 @@ +/* + * 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; +} |