diff --git a/hdoc_to_pdf/css/main.css b/hdoc_to_pdf/css/main.css index d6a88942126320a202e4d04e0eeaa8c64e02dbe5..ec5690141397de9e84e63654d00e52de40368569 100644 --- a/hdoc_to_pdf/css/main.css +++ b/hdoc_to_pdf/css/main.css @@ -63,19 +63,33 @@ h3 {counter-reset: h4} h4 {counter-reset: h5} h5 {counter-reset: h6} -h2:before {counter-increment: h2; content: counter(h2) ".\0000a0\0000a0"} -h3:before {counter-increment: h3; content: counter(h2) "." counter(h3) ".\0000a0\0000a0"} -h4:before {counter-increment: h4; content: counter(h2) "." counter(h3) "." counter(h4) ".\0000a0\0000a0"} -h5:before {counter-increment: h5; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ".\0000a0\0000a0"} -h6:before {counter-increment: h6; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ".\0000a0\0000a0"} +h2::before {counter-increment: h2; content: counter(h2) ".\0000a0\0000a0"} +h3::before {counter-increment: h3; content: counter(h2) "." counter(h3) ".\0000a0\0000a0"} +h4::before {counter-increment: h4; content: counter(h2) "." counter(h3) "." counter(h4) ".\0000a0\0000a0"} +h5::before {counter-increment: h5; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ".\0000a0\0000a0"} +h6::before {counter-increment: h6; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ".\0000a0\0000a0"} /* Global lists styling */ -ul > li > p, ol > li > p { +ul > li p, ol > li p { text-indent: 0; } +ul { + list-style-type: none; +} + +ul > li { + position: relative; +} + +ul > li::before { + position: absolute; + left: -5mm; + content: "\2013"; +} + /* Title formatting */ diff --git a/hdoc_to_pdf/xsl/hdoc_flattenizer.xsl b/hdoc_to_pdf/xsl/hdoc_flattenizer.xsl index 5e26fd19d69c7b97f6da1ad07619ba7b22071792..a09c658b5a5e4a40b58171cf750558b6d0bcfe0e 100644 --- a/hdoc_to_pdf/xsl/hdoc_flattenizer.xsl +++ b/hdoc_to_pdf/xsl/hdoc_flattenizer.xsl @@ -1,57 +1,58 @@ - + - - - - - - - - - - - - - - - - - - - - - stylesheet - text/css - main.css + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" + xpath-default-namespace="http://www.w3.org/1999/xhtml" + xmlns="http://www.w3.org/1999/xhtml" + > + + + + + + + + + + + + + + + + + + + + + + stylesheet + text/css + main.css print - - - - - - -
- - - - -
-
- - - - - - - - - - + + +
+ + + + +
+ + + + +
+
+ + + + + + + + + +
diff --git a/hdoc_to_pdf/xsl/last_transformer.xsl b/hdoc_to_pdf/xsl/last_transformer.xsl index f81215c216e55f45d9460a8525f6d1d7101a4891..d3c260ec73a281fdeb07b071b3c8de220e461416 100644 --- a/hdoc_to_pdf/xsl/last_transformer.xsl +++ b/hdoc_to_pdf/xsl/last_transformer.xsl @@ -1,28 +1,30 @@ - + - - - - - - - - - - - -

-

- - - -
- - + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" + xpath-default-namespace="http://www.w3.org/1999/xhtml" + xmlns="http://www.w3.org/1999/xhtml"> + + + + + + + + + + + + +

+

+ + + +
+ + +
diff --git a/hdoc_to_pdf/xsl/ns_remover.xsl b/hdoc_to_pdf/xsl/ns_remover.xsl index 59dcaef4bd6aaecdd0e00346cc08900a1bd8b811..d6660b8e342f03b0cb8e8e65417b648b04c59058 100644 --- a/hdoc_to_pdf/xsl/ns_remover.xsl +++ b/hdoc_to_pdf/xsl/ns_remover.xsl @@ -1,30 +1,29 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + +