Commit 275c389e authored by bperraud's avatar bperraud

Rework of headings + their styling in ToC

parent 3a1dd3db
......@@ -62,25 +62,44 @@ p {
word-break: normal;
}
h1 {font-size: 2em}
h2 {font-size: 1.6em}
h3 {font-size: 1.4em}
h4 {font-size: 1.2em}
h5, h6 {font-size: 1em}
h5 {font-family: "CMU Serif Extra"}
h6 {font-style: italic}
/* Global headings numbering */
body {counter-reset: h2}
h2 {counter-reset: h3}
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.nocount:before,
h3.nocount:before,
h4.nocount:before,
h5.nocount:before,
h6.nocount:before { content: ""; counter-increment: none }
*/
h2.nocount:before,
h3.nocount:before,
h4.nocount:before { content: ""; counter-increment: none }
/* Global lists styling */
......
......@@ -68,7 +68,7 @@
<li>
<xsl:call-template name="toc-a"/>
<xsl:if test="$toclevel &lt; 6">
<xsl:if test="$toclevel &lt; 4">
<xsl:call-template name="toc">
<xsl:with-param name="toclevel" select="$toclevel + 1"/>
</xsl:call-template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment