|
From: <mi...@us...> - 2026-06-26 10:27:00
|
Revision: 10372
http://sourceforge.net/p/docutils/code/10372
Author: milde
Date: 2026-06-26 10:26:58 +0000 (Fri, 26 Jun 2026)
Log Message:
-----------
"responsive.css": Highlight `<h1>` link target.
Add selectors for `<h1>` to the CSS rule highlighting section headings
if they are the current ":target" in the "responsive.css" stylesheet of the
HTML5 writer.
Since the change of the "initial_header_level" setting default to "auto"
in [r10365], `<h1>` is regularely used for top-level section headings if
there is no document title.
Modified Paths:
--------------
trunk/docutils/HISTORY.rst
trunk/docutils/docutils/writers/html5_polyglot/responsive.css
Modified: trunk/docutils/HISTORY.rst
===================================================================
--- trunk/docutils/HISTORY.rst 2026-06-23 17:20:41 UTC (rev 10371)
+++ trunk/docutils/HISTORY.rst 2026-06-26 10:26:58 UTC (rev 10372)
@@ -69,7 +69,7 @@
- Do not add "name" attribute to `<reference>` elements
nor set the internal attribute `indirect_reference_name`.
- - Warn if a `"figure"`_ directive is missing both caption and legend.
+ - Warn if a "figure" directive is missing both caption and legend.
* docutils/parsers/rst/directives/tables.py
@@ -113,7 +113,7 @@
* docutils/writers/html5_polyglot/*
- Change the default value of the initial_header_level_ setting to "auto"
- (<h2> if there is a document title, else <h1>).
+ (<h2> if there is a document title, else <h1>). Adapt "responsive.css".
- Change the default value of the "section_self_link" setting to True.
- Add CSS rules for back-link and self-link symbols from
"responsive.css" also in "plain.css" and "tuftig.css".
Modified: trunk/docutils/docutils/writers/html5_polyglot/responsive.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2026-06-23 17:20:41 UTC (rev 10371)
+++ trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2026-06-26 10:26:58 UTC (rev 10372)
@@ -292,10 +292,10 @@
margin-left: 0.2em;
}
/* 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,
+section:target > h1, section:target > h2, section:target > h3,
+section:target > h4, section:target > h5, section:target > h6,
+span:target + h1, span:target + h2, span:target + h3,
+span:target + h4, span:target + h5, span:target + h6,
dt:target, span:target, p:target,
.contents :target,
.contents:target > .topic-title,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|