sous-titre MD, titres chapitres, titres images

This commit is contained in:
Tibo
2020-01-01 12:10:04 +01:00
parent f28da7261f
commit d2570a2357
2 changed files with 9 additions and 3 deletions
+6 -1
View File
@@ -94,6 +94,7 @@
font-size: 34pt; font-size: 34pt;
line-height: 34pt; line-height: 34pt;
text-align: right; text-align: right;
margin-bottom: 20mm;
} }
.chapter-title:after { .chapter-title:after {
@@ -180,7 +181,11 @@ p img{
max-width: 100%; max-width: 100%;
} }
.legend{
font-size: 9.5pt;
font-family: "Texta";
line-height: 9pt;
}
blockquote{ blockquote{
background-image: url("/motifs/croix.png"); background-image: url("/motifs/croix.png");
+3 -2
View File
@@ -35,7 +35,7 @@
<!-- Sommaire --> <!-- Sommaire -->
<div class="column no-folio"> <div class="column">
<div class="section-title"> <div class="section-title">
Sommaire Sommaire
</div> </div>
@@ -46,7 +46,7 @@
</div> </div>
</div> </div>
<!-- Chapitres --> <!-- Chapitres -->
@@ -106,6 +106,7 @@ export default {
img.onload = function() { img.onload = function() {
let legend = document.createElement("p"); let legend = document.createElement("p");
legend.classList.add("breakAfter"); legend.classList.add("breakAfter");
legend.classList.add("legend");
img.parentNode.classList.add("breakBefore"); img.parentNode.classList.add("breakBefore");
legend.innerHTML = found.legende; legend.innerHTML = found.legende;
img.parentNode.insertBefore(legend, img.nextSibling); img.parentNode.insertBefore(legend, img.nextSibling);