vheliotech-guide-de-montage/source/css/print-theme.css
Youen 995daaeff9 Mise en forme PDF
Numérotation des titres (niveaux 1 et 2)
L'avant propos n'est pas numéroté (et n'apparait pas dans la table des matières)
Le titre principal du document n'est pas un niveau de titre normal
Mise en forme de la première page
2023-05-11 02:09:29 +02:00

112 lines
1.9 KiB
CSS

.wy-grid-for-nav {
position: static !important;
}
@page {
@bottom-left {
content: "Guide de montage - v1.0.0 - Mai 2023";
font-size: 9px;
font-family: Lato, proxima-nova, Helvetica Neue, Arial, sans-serif;
}
@bottom-center {
content: "www.vhelio.org";
font-size: 9px;
font-family: Lato, proxima-nova, Helvetica Neue, Arial, sans-serif;
}
@bottom-right {
content: counter(page) "/82"; /* total number of pages is automatically updated by count_pdf_pages.py */
font-size: 9px;
font-family: Lato, proxima-nova, Helvetica Neue, Arial, sans-serif;
}
counter-increment: page;
}
@page :first {
counter-reset: page 2;
@bottom-left {
content: "";
}
@bottom-center {
content: "";
}
@bottom-right {
content: "";
}
}
div[role=navigation], .headerlink {
display: none;
}
.document-title {
width: 100%;
color: #fbbb15;
text-align: center;
font-size: 5em !important;
border-top: 2px solid black;
border-bottom: 2px solid black;
line-height: 1.2;
font-weight: bold;
}
.document-subtitle {
text-align: center;
font-size: 1.5em;
margin-top: 30px;
margin-bottom: 30px;
}
.title-page-footer {
text-align: center;
font-size: 1.2em !important;
margin-top: 30px;
}
/* displayed as a title, but doesn't count in numbering and doesn't appear in TOC */
.fake-title {
font-weight: 700;
font-size: 175% !important;
font-family: Roboto Slab,ff-tisa-web-pro,Georgia,Arial,sans-serif;
break-before: always;
}
h1 {
break-before: always;
}
.avoid-break {
break-before: avoid;
break-after: avoid;
}
.avoid-break-next-block + ul {
break-inside: avoid;
}
.admonition {
break-inside: avoid;
}
.resized {
width: 550px;
}
/* Automatic title numbering */
body {
counter-reset: h1
}
h1 {
counter-reset: h2
}
h1:before {
counter-increment: h1;
content: counter(h1) ". "
}
h2:before {
counter-increment: h2;
content: counter(h1) "." counter(h2) ". "
}