Skip to content

Commit

Permalink
Doc: CSS: Update selectors for target highlighting
Browse files Browse the repository at this point in the history
Certain targets on the generated HTML still use the obsolete
<a name=""> method of creating an anchor. Add a rule for a
replacement <span> 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 <[email protected]>
  • Loading branch information
toreinio committed Jun 7, 2021
1 parent fade729 commit c1ab144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/global/template/style/online.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c1ab144

Please sign in to comment.