SF.net SVN: docutils:[10018 ] trunk/docutils/docutils/ writers/html5_polyglot

milde--- via Docutils-checkins <[email protected]> Thu, 06 Mar 2025 16:19:16 +0000
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 10018
          http://sourceforge.net/p/docutils/code/10018
Author:   milde
Date:     2025-03-06 16:19:15 +0000 (Thu, 06 Mar 2025)
Log Message:
-----------
HTML5 writer: docinfo styling tweaks

"minimal.css":
  make docinfo list compact (no top/bottom margin around fields).

"responsive.css":
  Use standard "wide" indentation (left margin) in "docinfo" fields
  to get better alignment, especially of multiple authors in "authors" field.
  Use a smaller indentation for narrow screens.

  Remove spurious selector: option-lists don't use the "--field-indent" variable.

Modified Paths:
--------------
    trunk/docutils/docutils/writers/html5_polyglot/minimal.css
    trunk/docutils/docutils/writers/html5_polyglot/responsive.css

Modified: trunk/docutils/docutils/writers/html5_polyglot/minimal.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/minimal.css	2025-03-06 08:41:10 UTC (rev 10017)
+++ trunk/docutils/docutils/writers/html5_polyglot/minimal.css	2025-03-06 16:19:15 UTC (rev 10018)
@@ -69,10 +69,9 @@
 /* Lists */
 
 /* compact and simple lists: no margin between items */
-.simple  li, .simple  ul, .simple  ol,
-.compact li, .compact ul, .compact ol,
-.simple  > li p, dl.simple  > dd,
-.compact > li p, dl.compact > dd {
+.simple  li, .simple  ul, .simple  ol, .simple  > li p,
+.compact li, .compact ul, .compact ol, .compact > li p,
+dl.simple  > dd, dl.compact > dd, dl.docinfo > dd {
   margin-top: 0;
   margin-bottom: 0;
 }
@@ -141,7 +140,7 @@
 /* Bibliographic Fields (docinfo) */
 dl.docinfo pre.address {
   font: inherit;
-  margin: 0.5em 0;
+  margin: 0;
 }
 dl.docinfo > dd.authors > p { margin: 0; }
 

Modified: trunk/docutils/docutils/writers/html5_polyglot/responsive.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/responsive.css	2025-03-06 08:41:10 UTC (rev 10017)
+++ trunk/docutils/docutils/writers/html5_polyglot/responsive.css	2025-03-06 16:19:15 UTC (rev 10018)
@@ -130,7 +130,7 @@
 
 /* Lists */
 
-dl.field-list.narrow, dl.docinfo, dl.option-list {
+dl.field-list.narrow {
   --field-indent: 2.4em;
 }
 
@@ -378,6 +378,9 @@
   body {
     --field-indent: 4em;
   }
+  dl.docinfo {
+    --field-indent: 5%;
+  }
   pre, pre * {
   font-size: 0.9em;
   /* overflow: auto; */

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.