Correction rubrique

This commit is contained in:
Tibo
2020-01-08 23:09:14 +01:00
parent e6a6705b69
commit 119e9944d2
2 changed files with 11 additions and 10 deletions
+3
View File
@@ -134,6 +134,9 @@
font-size: 12pt;
text-transform: uppercase;
}
.layout:nth-child(odd) .section-title:not(.still){
text-align: right;
}
.section-content {
hyphens: auto;
+3 -5
View File
@@ -35,7 +35,7 @@
<div class="column image-cover image-bleed" v-bind:style='{ backgroundImage: `url(https://popsu-rouen-en.strapi.figli.io/uploads/50424a6a43e44551a4faa699f8ef3caa.JPEG)`, }' />
<!-- Sommaire -->
<div class="column">
<div class="section-title">
<div class="section-title still">
Sommaire
</div>
<div class="column justify-end table-of-content">
@@ -121,14 +121,14 @@ export default {
legend.classList.add("legend");
legend.innerHTML = found.legende;
legend.id = `legend-${img_id}`;
if(found.double){
if (found.double) {
let clone = img.parentNode.cloneNode(true);
clone.classList.add("breakBefore");
clone.querySelector("img").id += "-end";
img.parentNode.insertBefore(clone, img.previousSibling);
clone.parentNode.insertBefore(legend, clone.nextSibling);
}else{
} else {
img.parentNode.insertBefore(legend, img.nextSibling);
}
resolve();
@@ -143,8 +143,6 @@ export default {
});
}
};
</script>
<page-query>