瀏覽代碼

6 Croix fin de dernier chapitre

Tibo 4 年之前
父節點
當前提交
280378ffe3
共有 2 個文件被更改,包括 15 次插入2 次删除
  1. 11 0
      src/css/styles_de_paragraphes.scss
  2. 4 2
      src/pages/Index.vue

+ 11 - 0
src/css/styles_de_paragraphes.scss

@@ -301,3 +301,14 @@ blockquote{
 .lsp3 {
 	letter-spacing: 0.03em;
 }
+
+
+.last-chapter-p:after {
+	content: "++++++";
+	display: block;
+	font-family: inherit;
+	font-weight: 200;
+	font-size: 14pt;
+	letter-spacing: 4pt;
+
+}

+ 4 - 2
src/pages/Index.vue

@@ -64,7 +64,7 @@
     </VueMarkdown>
   </div>
   <!-- Page blanche -->
-  <div class="blank-page" />
+  <div class="blank-page no-folio" />
   <!-- Sections -->
   <div v-for="edge in orderBy($page.sections.edges,'node.Ordre')">
     <div v-if="edge.node.espace" class="blank-page no-folio breakBeforeLeft" />
@@ -169,7 +169,9 @@ export default {
               }
               page.parentNode.removeChild(page);
             });
-
+            // Chercher le dernier paragraphe
+            let p = Array.from(document.querySelectorAll(".chapter-content"));
+            p[p.length-1].classList.add("last-chapter-p");
           });
         });
       });