Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hdoc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Stephane Crozat
hdoc
Commits
275c389e
Commit
275c389e
authored
Jan 03, 2017
by
bperraud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rework of headings + their styling in ToC
parent
3a1dd3db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
hdoc_to_pdf/css/main.css
hdoc_to_pdf/css/main.css
+19
-0
hdoc_to_pdf/xsl/last_transformer.xsl
hdoc_to_pdf/xsl/last_transformer.xsl
+1
-1
No files found.
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