Ajout d'un titre sur la première page, mais qui n'est pas pris en compte dans la hiérarchie globale Ajout d'un fichier custom.css pour les règles communes à la version PDF et HTML Limitation de la profondeur de titres affichés dans la table des matières sur la première page de la version HTML
80 lines
1.3 KiB
CSS
80 lines
1.3 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;
|
|
}
|
|
|
|
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) ". "
|
|
}
|