From c1ab14496a57c41ef63ed3a5e5abd110a235ecc7 Mon Sep 17 00:00:00 2001 From: Topi Reinio Date: Thu, 25 Mar 2021 11:21:30 +0100 Subject: [PATCH] Doc: CSS: Update selectors for target highlighting Certain targets on the generated HTML still use the obsolete method of creating an anchor. Add a rule for a replacement element, using the id attribute. This ensures that the highlighting animations continue to work after the use of obsolete HTML is dropped from QDoc. Change-Id: I2b70470b08d0e0f70702ad2820f4e065f2c08ff5 Reviewed-by: Paul Wicking --- doc/global/template/style/online.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/global/template/style/online.css b/doc/global/template/style/online.css index ff1e9700385..7ad121d51fd 100644 --- a/doc/global/template/style/online.css +++ b/doc/global/template/style/online.css @@ -1213,7 +1213,7 @@ pre:hover>.copy_text { width:initial } } -[id]:target,[name]:target,[name]:target+* { +[id]:target,[name]:target,[name]:target+*,span:target+* { -webkit-animation:highlighter 3s; animation:highlighter 3s }