SF.net SVN: docutils:[9550 ] trunk/docutils
milde--- via Docutils-checkins <[email protected]>
| Newsgroups | gmane.text.docutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 9550
http://sourceforge.net/p/docutils/code/9550
Author: milde
Date: 2024-03-08 10:03:16 +0000 (Fri, 08 Mar 2024)
Log Message:
-----------
Small fix for target-highlight in "responsive" stylesheet (HTML5).
Highlight heading of target section also with explicit hyperlink target.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/html5_polyglot/responsive.css
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2024-02-27 16:14:41 UTC (rev 9549)
+++ trunk/docutils/HISTORY.txt 2024-03-08 10:03:16 UTC (rev 9550)
@@ -138,6 +138,7 @@
* docutils/writers/html5_polyglot/\*.css
- Move MathML styles to "minimal.css" (required for correct rendering).
+ - Highlight heading of target section also with explicit hyperlink target.
* docutils/writers/_html_base.py
Modified: trunk/docutils/docutils/writers/html5_polyglot/responsive.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2024-02-27 16:14:41 UTC (rev 9549)
+++ trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2024-03-08 10:03:16 UTC (rev 9550)
@@ -286,9 +286,11 @@
font-size: smaller;
margin-left: 0.2em;
}
-/* highlight the target of the current URL */
+/* highlight specific targets of the current URL */
section:target > h2, section:target > h3, section:target > h4,
section:target > h5, section:target > h6,
+span:target + h2, span:target + h3, span:target + h4,
+span:target + h5, span:target + h6,
.contents :target,
.contents:target > .topic-title,
[role="doc-biblioentry"]:target > .label,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.