From c7668676f1af9bd5cc390d48ae910d1e8f193a24 Mon Sep 17 00:00:00 2001 From: Vladimir Agafonkin Date: Thu, 27 Jun 2013 18:15:50 -0400 Subject: [PATCH] add anchor highlighting to the reference --- docs/css/screen.css | 21 +++++++++++++++++++++ reference.html | 10 +++++----- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/docs/css/screen.css b/docs/css/screen.css index 01668fc2..abe7ca63 100644 --- a/docs/css/screen.css +++ b/docs/css/screen.css @@ -548,3 +548,24 @@ p.notice { #disqus_thread { margin-top: 3em; } + +tr:target { + background: yellow; + -webkit-animation: highlight 2s ease 0.5s 1 normal forwards; + -moz-animation: highlight 2s ease 0.5s 1 normal forwards; + -o-animation: highlight 2s ease 0.5s 1 normal forwards; + animation: highlight 2s ease 0.5s 1 normal forwards; +} + +@-webkit-keyframes highlight { + 0% { background: yellow; } + 100% { background: white; } +} +@-moz-keyframes highlight { + 0% { background: yellow; } + 100% { background: white; } +} +@keyframes highlight { + 0% { background: yellow; } + 100% { background: white; } +} diff --git a/reference.html b/reference.html index 14a9eb50..119bc32f 100644 --- a/reference.html +++ b/reference.html @@ -6296,13 +6296,13 @@ var Leaflet = L.noConflict();
L.version // returns "0.5" (or whatever version is currently in use)