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
cbd59fcd
Commit
cbd59fcd
authored
Dec 29, 2016
by
bperraud
Browse files
no break after hn + add ToC page numbers support
parent
1f1411e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
hdoc_to_pdf/css/main.css
View file @
cbd59fcd
...
...
@@ -45,6 +45,10 @@
@bottom-center
{
content
:
counter
(
page
)
}
}
body
{
margin
:
0
;
}
*
{
font-family
:
"CMU Serif"
;
}
...
...
@@ -122,14 +126,12 @@ ul.toc.level4 > li {padding-left: 13mm;}
ul
.toc.level5
>
li
{
padding-left
:
15mm
;}
ul
.toc.level6
>
li
{
padding-left
:
17mm
;}
ul
.toc
>
li
>
a
::after
{
/*left: 0;*/
content
:
leader
(
dotted
)
target-counter
(
attr
(
href
),
page
);
}
/* Title formatting */
/* Main Title formatting */
h1
{
padding-top
:
20mm
;
...
...
@@ -155,3 +157,11 @@ img {
page-break-after
:
auto
;
page-break-inside
:
avoid
;
}
/* Widows and orphans processing */
h2
,
h3
,
h4
,
h5
,
h6
{
/*page-break-before: auto;*/
page-break-after
:
avoid
;
/*page-break-inside: avoid;*/
}
Write
Preview
Supports
Markdown
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