Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
275c389e
Commit
275c389e
authored
Jan 03, 2017
by
bperraud
Browse files
Rework of headings + their styling in ToC
parent
3a1dd3db
Changes
2
Hide whitespace changes
Inline
Side-by-side
hdoc_to_pdf/css/main.css
View file @
275c389e
...
...
@@ -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 */
...
...
hdoc_to_pdf/xsl/last_transformer.xsl
View file @
275c389e
...
...
@@ -68,7 +68,7 @@
<li>
<xsl:call-template
name=
"toc-a"
/>
<xsl:if
test=
"$toclevel <
6
"
>
<xsl:if
test=
"$toclevel <
4
"
>
<xsl:call-template
name=
"toc"
>
<xsl:with-param
name=
"toclevel"
select=
"$toclevel + 1"
/>
</xsl:call-template>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment