This commit is contained in:
Tibo
2020-01-15 10:13:48 +01:00
parent 1e895d5b51
commit b59ce3376c
157 changed files with 12 additions and 16848 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
height: 100%;
}
.layout {
.full-layout {
display: flex;
flex-direction: column;
height: 100%;
+3
View File
@@ -160,9 +160,12 @@
.justify p {
text-align: justify;
hyphens: auto;
text-justify: inter-character;
text-align-last: left !important;
hyphens: auto;
hanging-punctuation: first;
}
.section-content p {
+8 -20
View File
@@ -48,7 +48,7 @@
</div>
</div>
<!-- Chapitres -->
<div v-for="(edge,index) in $page.chapitres.edges.slice().reverse()" :key="`chapitre${edge.node.id}`">
<div v-for="(edge,index) in $page.chapitres.edges.slice().reverse()" :key="`chapitre${edge.node.id}`">
<div class="blank-page no-folio breakBeforeLeft" />
<div v-if="edge.node.Rubrique">
<div class="section-title">
@@ -145,25 +145,13 @@ export default {
this.$nextTick(function() {
Promise.all(allPromises).then(() => {
let hyphenopoly = document.createElement('script'),
hyph = document.createElement('script');
hyphenopoly.setAttribute('src', 'lib/Hyphenopoly-master/Hyphenopoly_Loader.js')
hyph.setAttribute('src', 'lib/hyph.js')
document.head.appendChild(hyph)
document.head.appendChild(hyphenopoly)
hyph.onload = () => {
Hyphenopoly.handleEvent = {
hyphenopolyEnd: (e) => {
let previewer = new Previewer();
previewer.preview();
}
};
};
let previewer = new Previewer();
previewer.preview().then((flow)=>{
let layouts = Array.from(document.querySelectorAll(".layout"));
layouts.forEach(l=>{
l.classList.add("full-layout");
});
});
});
});