SF.net SVN: docutils:[9938 ] trunk/docutils/docutils/w riters/html5_polyglot/minimal .css

milde--- via Docutils-checkins <[email protected]>
Newsgroups gmane.text.docutils.cvs
Message-ID <[email protected]>
Revision: 9938
          http://sourceforge.net/p/docutils/code/9938
Author:   milde
Date:     2024-09-23 22:36:47 +0000 (Mon, 23 Sep 2024)
Log Message:
-----------
Revert [r9902] (right align code line numbers with CSS).

The change in [r9902] has the side-effect of a spurious space
before the first line of a code block without line nubers.

Right-aligning via CSS is not required, as line numbers are already
padded by the parser.

Revert.

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

Modified: trunk/docutils/docutils/writers/html5_polyglot/minimal.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/minimal.css	2024-09-23 22:36:38 UTC (rev 9937)
+++ trunk/docutils/docutils/writers/html5_polyglot/minimal.css	2024-09-23 22:36:47 UTC (rev 9938)
@@ -1,4 +1,4 @@
-/* Minimal style sheet for the HTML output of Docutils.                    */
+t/* Minimal style sheet for the HTML output of Docutils.                    */
 /*                                                                         */
 /* :Author: Günter Milde, based on html4css1.css by David Goodger          */
 /* :Id: $Id$                                                               */
@@ -235,13 +235,10 @@
 div.line-block { display: block; }
 div.line-block div.line-block, pre { margin-left: 2em; }
 
-/* Code line numbers: align-right, don't copy with drag-and-drop */
+/* Code line numbers: don't copy with drag-and-drop */
 pre.code .ln { display: none; }
 pre.code code:before {
   content: attr(data-lineno);
-  display: inline-block;
-  min-width: 1.8em;
-  text-align: right;
   font-size: small;
   color: gray;
 }

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



_______________________________________________
Docutils-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-checkins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.