From 416b541a5c14193161579653551556b27f7b450f Mon Sep 17 00:00:00 2001 From: Steve Donovan Date: Wed, 1 Oct 2014 16:05:03 +0200 Subject: [PATCH] issue #180: make target function clearer with highlighting --- ldoc/html/ldoc_css.lua | 5 +++++ ldoc/html/ldoc_pale_css.lua | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ldoc/html/ldoc_css.lua b/ldoc/html/ldoc_css.lua index 1724909..157f1a6 100644 --- a/ldoc/html/ldoc_css.lua +++ b/ldoc/html/ldoc_css.lua @@ -287,6 +287,11 @@ ol ul { margin-top: 0px; } ol ol { margin-top: 0px; } ul ol { margin-top: 0px; } +/* make the target distinct; helps when we're navigating to a function */ +a:target + * { + background-color: #FF9; +} + /* styles for prettification of source */ pre .comment { color: #558817; } pre .constant { color: #a8660d; } diff --git a/ldoc/html/ldoc_pale_css.lua b/ldoc/html/ldoc_pale_css.lua index 23d1d01..edae358 100644 --- a/ldoc/html/ldoc_pale_css.lua +++ b/ldoc/html/ldoc_pale_css.lua @@ -286,6 +286,11 @@ ol ul { margin-top: 0px; } ol ol { margin-top: 0px; } ul ol { margin-top: 0px; } +/* make the target distinct; helps when we're navigating to a function */ +a:target + * { + background-color: #FF9; +} + /* styles for prettification of source */ pre .comment { color: #558817; } pre .constant { color: #a8660d; }