Ajout des fonts et css
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
// Coloriser
|
||||
|
||||
.green {
|
||||
background-blend-mode: screen;
|
||||
background-color: rgb(0,161,154);
|
||||
}
|
||||
|
||||
.fill-green {
|
||||
background-color: rgb(0,161,154);
|
||||
width: calc(148mm + #{$fond-perdu} * 2);
|
||||
height: calc(210mm + #{$fond-perdu} * 2);
|
||||
position: absolute;
|
||||
margin-left: calc(-2cm - #{$fond-perdu});
|
||||
margin-top: calc(-2cm - #{$fond-perdu});
|
||||
}
|
||||
|
||||
.fill-motif {
|
||||
background-size: 0.4cm;
|
||||
width: calc(148mm + #{$fond-perdu} * 2);
|
||||
height: calc(210mm + #{$fond-perdu} * 2);
|
||||
position: absolute;
|
||||
margin-left: calc(-2cm - #{$fond-perdu});
|
||||
margin-top: calc(-2cm - #{$fond-perdu});
|
||||
padding: 2cm;
|
||||
}
|
||||
|
||||
.fill-motif-cross-left {
|
||||
@extend .fill-motif;
|
||||
background-image: url("/motifs/croix.png");
|
||||
background-position: right;
|
||||
clip-path: polygon(100% 7%, 83% 12%, 92% 15%, 88% 21%, 86% 38%, 80% 37%, 75% 30%, 77% 27%, 75% 21%, 61% 21%, 69% 18%, 66% 10%, 58% 9%, 55% 3%, 42% 3%, 24% 6%, 22% 11%, 25% 15%, 17% 18%, 15% 23%, 24% 26%, 27% 32%, 22% 40%, 25% 48%, 37% 53%, 49% 49%, 55% 42%, 57% 46%, 56% 55%, 61% 67%, 58% 70%, 41% 65%, 34% 72%, 47% 76%, 51% 81%, 62% 76%, 67% 83%, 67% 89%, 71% 89%, 78% 96%, 97% 94%, 100% 88%, 96% 83%, 100% 82%);
|
||||
}
|
||||
|
||||
.fill-motif-cross-right {
|
||||
@extend .fill-motif;
|
||||
background-image: url("/motifs/croix.png");
|
||||
background-position: left;
|
||||
clip-path: polygon(0 7%, 15% 10%, 30% 15%, 37% 26%, 53% 32%, 48% 47%, 65% 57%, 64% 62%, 61% 67%, 40% 64%, 40% 71%, 24% 71%, 20% 79%, 0 82%,);
|
||||
}
|
||||
|
||||
.layer-1 {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.layer-2 {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
// .highlight-white {
|
||||
// background: white;
|
||||
// padding: 0.1rem 0rem;
|
||||
// }
|
||||
@@ -0,0 +1,23 @@
|
||||
@font-face {
|
||||
font-family: 'Cormorant';
|
||||
src: url("../fonts/Cormorant-Light.ttf");
|
||||
font-weight: 200;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'TextaAlt';
|
||||
src: url("../fonts/TextaAlt-Bold.otf");
|
||||
font-weight: 800;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Texta';
|
||||
src: url("../fonts/Texta-Black.otf");
|
||||
font-weight: 800;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Duke POPSU';
|
||||
src: url("../fonts/Duke-POPSU.ttf");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "SGI-TextAlt";
|
||||
src: url("../fonts/SGI-TextAlt.otf") format("opentype");
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
@import 'parametres';
|
||||
|
||||
body {
|
||||
font-size: $font-de-base;
|
||||
counter-reset: footnote;
|
||||
}
|
||||
@media print {
|
||||
@page {
|
||||
size: $largeur $hauteur;
|
||||
margin: $marge;
|
||||
bleed: $fond-perdu;
|
||||
}
|
||||
|
||||
@page :left {
|
||||
@bottom-left {
|
||||
content: counter(page);
|
||||
font-size: 12pt;
|
||||
font-family: 'Duke POPSU';
|
||||
transform: translateX(-1.4cm);
|
||||
}
|
||||
}
|
||||
|
||||
@page :right {
|
||||
@bottom-right {
|
||||
content: counter(page);
|
||||
font-size: 12pt;
|
||||
font-family: 'Duke POPSU';
|
||||
transform: translateX(1.4cm);
|
||||
}
|
||||
}
|
||||
@page imagecover {
|
||||
size: $largeur $hauteur;
|
||||
margin: 0;
|
||||
@bottom-left {
|
||||
content: unset;
|
||||
}
|
||||
@bottom-right {
|
||||
content: unset;
|
||||
}
|
||||
}
|
||||
|
||||
@page nofolio :left {
|
||||
@bottom-left {
|
||||
content: unset;
|
||||
}
|
||||
}
|
||||
|
||||
@page nofolio :right {
|
||||
@bottom-right {
|
||||
content: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
.pagedjs_page_content > div {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
.no-folio {
|
||||
page: nofolio;
|
||||
}
|
||||
|
||||
.blank-page {
|
||||
page-break-after: always;
|
||||
}
|
||||
|
||||
.image-bleed {
|
||||
position: absolute;
|
||||
width: calc(100% + #{$fond-perdu} * 6);
|
||||
height: calc(100% + #{$fond-perdu} * 6);
|
||||
margin-left: -$fond-perdu - 16;
|
||||
margin-top: -$fond-perdu - 16;
|
||||
}
|
||||
|
||||
.image-cover {
|
||||
page: imagecover;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-color: lightgray;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.cover-left {
|
||||
background-position: 0 50%;
|
||||
}
|
||||
|
||||
.cover-right {
|
||||
background-position: -148mm 50%;
|
||||
}
|
||||
|
||||
.grow {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.column {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.justify-end {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.canbreak {
|
||||
page-break-before: always;
|
||||
}
|
||||
|
||||
.v-center {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
// parametres du document
|
||||
$largeur: 148mm;
|
||||
$hauteur: 210mm;
|
||||
$marge: 2cm;
|
||||
$font-de-base: 10pt;
|
||||
$fond-perdu: 8mm;
|
||||
$traits-de-coupes: true;
|
||||
@if $traits-de-coupes {
|
||||
.pagedjs_bleed-top::after {
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
content: "";
|
||||
height: calc(#{$fond-perdu} * 0.8);
|
||||
width: calc(100% - #{$fond-perdu} * 2);
|
||||
border-left: 0.25pt solid black;
|
||||
border-right: 0.25pt solid black;
|
||||
}
|
||||
|
||||
.pagedjs_bleed-bottom::after {
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
content: "";
|
||||
height: calc(#{$fond-perdu} * 0.8);
|
||||
width: calc(100% - #{$fond-perdu} * 2);
|
||||
border-left: 0.25pt solid black;
|
||||
border-right: 0.25pt solid black;
|
||||
}
|
||||
|
||||
.pagedjs_bleed-left::after {
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
content: "";
|
||||
width: calc(#{$fond-perdu} * 0.8);
|
||||
height: calc(100% - #{$fond-perdu} * 2);
|
||||
border-top: 0.25pt solid black;
|
||||
border-bottom: 0.25pt solid black;
|
||||
}
|
||||
|
||||
.pagedjs_bleed-right::after {
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
content: "";
|
||||
width: calc(#{$fond-perdu} * 0.8);
|
||||
height: calc(100% - #{$fond-perdu} * 2);
|
||||
border-top: 0.25pt solid black;
|
||||
border-bottom: 0.25pt solid black;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
@import 'parametres';
|
||||
@import 'font';
|
||||
@import 'gabarits';
|
||||
@import 'layout';
|
||||
@import 'styles_de_paragraphes';
|
||||
@import 'styles_de_caracteres';
|
||||
@import 'effets';
|
||||
@import 'screen';
|
||||
@@ -0,0 +1,28 @@
|
||||
@media screen {
|
||||
body {
|
||||
background-color: whitesmoke;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.pagedjs_pages {
|
||||
display: grid;
|
||||
grid-row-gap: 1cm;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.pagedjs_page:first-child {
|
||||
grid-column: 2;
|
||||
}
|
||||
|
||||
.pagedjs_page {
|
||||
background-color: #fdfdfd;
|
||||
flex: none;
|
||||
box-shadow: 0 0 1px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.pagedjs_bleed {
|
||||
background-color: lightpink;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
.bold {
|
||||
font-family: "TextaAlt";
|
||||
font-weight: 800;
|
||||
font-size: 12pt;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.capital {
|
||||
text-transform: uppercase;
|
||||
font-size: 12pt;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
// Notes de fin de chapitres
|
||||
|
||||
[data-note] {
|
||||
position: relative;
|
||||
counter-increment: footnote;
|
||||
}
|
||||
|
||||
[data-note]::after {
|
||||
position: absolute;
|
||||
content: counter(footnote);
|
||||
transform: translateY(-3px);
|
||||
font-family: "TextaAlt";
|
||||
font-size: 6pt;
|
||||
}
|
||||
|
||||
// / Replace `$search` with `$replace` in `$string`
|
||||
// / @author Hugo Giraudel
|
||||
// / @param {String} $string - Initial string
|
||||
// / @param {String} $search - Substring to replace
|
||||
// / @param {String} $replace ('') - New value
|
||||
// // / @return {String} - Updated string
|
||||
// @function str-replace($string, $search, $replace: '') {
|
||||
// $index: str-index($string, $search);
|
||||
//
|
||||
// @if $index {
|
||||
// @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
||||
// }
|
||||
//
|
||||
// @return $string;
|
||||
// }
|
||||
//
|
||||
// p {
|
||||
// $string: '490 000';
|
||||
// content: str-replace($string, '490 000', '490\0000A0000');
|
||||
// }
|
||||
@@ -0,0 +1,179 @@
|
||||
// .pre-title {
|
||||
// font-family: "Duke POPSU";
|
||||
// font-weight: inherit;
|
||||
// font-size: 45pt;
|
||||
// line-height: 33pt;
|
||||
// }
|
||||
//
|
||||
// .pre-sub-title {
|
||||
// font-family: "Texa";
|
||||
// font-weight: 800;
|
||||
// font-size: 10pt;
|
||||
// line-height: 13pt;
|
||||
// }
|
||||
|
||||
.intro {
|
||||
font-family: "SGI-TextAlt";
|
||||
font-size: 9.5pt;
|
||||
line-height: 20pt;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.main-title {
|
||||
font-family: "Duke POPSU";
|
||||
font-weight: inherit;
|
||||
font-size: 60pt;
|
||||
line-height: 42pt;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.main-sub-title {
|
||||
font-family: "Texa";
|
||||
font-weight: 800;
|
||||
font-size: 12pt;
|
||||
line-height: 15pt;
|
||||
}
|
||||
|
||||
.main-pre-title {
|
||||
font-family: "Texta";
|
||||
font-weight: 800;
|
||||
font-size: 12pt;
|
||||
text-transform: uppercase;
|
||||
line-height: 15pt;
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
width: 250px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.table-of-content {
|
||||
font-family: "Cormorant";
|
||||
font-weight: 200;
|
||||
font-size: 25pt;
|
||||
line-height: 25pt;
|
||||
margin: 0;
|
||||
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
a::after {
|
||||
font-size: 9pt;
|
||||
margin-left: 10pt;
|
||||
content: target-counter(attr(href), page);
|
||||
font-family: "SGI-TextAlt";
|
||||
}
|
||||
}
|
||||
|
||||
.credits {
|
||||
font-size: 9pt;
|
||||
margin-bottom: 6pt;
|
||||
|
||||
h4 {
|
||||
font-family: "TextaAlt";
|
||||
text-transform: uppercase;
|
||||
margin: 8pt 0 0;
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: "SGI-TextAlt";
|
||||
line-height: 13pt;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.chapter-title {
|
||||
font-family: "Cormorant";
|
||||
font-weight: 200;
|
||||
font-size: 34pt;
|
||||
line-height: 34pt;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.chapter-title:after {
|
||||
content: "++++";
|
||||
display: block;
|
||||
font-family: inherit;
|
||||
font-weight: 200;
|
||||
font-size: 10pt;
|
||||
letter-spacing: 4pt;
|
||||
}
|
||||
|
||||
.chapter-title::before {
|
||||
content: attr(data-rubrique);
|
||||
display: block;
|
||||
@extend .section-title;
|
||||
}
|
||||
|
||||
.chapter-content {
|
||||
hyphens: auto;
|
||||
font-family: "Cormorant";
|
||||
font-weight: 200;
|
||||
font-size: 10.5pt;
|
||||
line-height: 18pt;
|
||||
// hanging-punctuation: first last;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-family: "TextaAlt";
|
||||
font-weight: 800;
|
||||
font-size: 12pt;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.section-content {
|
||||
hyphens: auto;
|
||||
font-family: "SGI-TextAlt";
|
||||
font-size: 9.5pt;
|
||||
font-weight: 200;
|
||||
line-height: 18pt;
|
||||
// text-align: left;
|
||||
}
|
||||
// texte justifié par defaut
|
||||
|
||||
|
||||
.justify p {
|
||||
text-align: justify;
|
||||
text-align-last: left !important;
|
||||
hyphens: auto;
|
||||
hanging-punctuation: first;
|
||||
}
|
||||
|
||||
.section-content p {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.chapter-content h3 {
|
||||
hyphens: none;
|
||||
font-size: 19pt;
|
||||
font-weight: 200;
|
||||
line-height: 23pt;
|
||||
margin-left: 10mm;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
// phrase amorce du chapitre 1
|
||||
strong {
|
||||
font-family: "Cormorant";
|
||||
font-weight: 200;
|
||||
font-size: 14pt;
|
||||
line-height: 18pt;
|
||||
}
|
||||
|
||||
// .column .image-cover .image-bleed {
|
||||
// margin:0;
|
||||
//
|
||||
// }
|
||||
|
||||
p img{
|
||||
max-width: 100%;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2,6 +2,7 @@
|
||||
// The Client API can be used here. Learn more: gridsome.org/docs/client-api
|
||||
|
||||
import DefaultLayout from '~/layouts/Default.vue'
|
||||
import '~/css/print.scss'
|
||||
|
||||
export default function (Vue, { router, head, isClient }) {
|
||||
// Set default layout as a global component
|
||||
|
||||
+13
-2
@@ -1,8 +1,11 @@
|
||||
<template>
|
||||
<Layout>
|
||||
<!-- Mise en page -->
|
||||
<div v-for="edge in $page.chapitres.edges" :key="edge.node.id">
|
||||
{{edge.node.titre}}
|
||||
<div v-for="edge in $page.chapitres.edges" :key="`sommaire${edge.node.id}`">
|
||||
<h2>{{edge.node.titre}}</h2>
|
||||
</div>
|
||||
<div v-for="edge in $page.chapitres.edges" :key="`chapitres${edge.node.id}`">
|
||||
<h2>{{edge.node.titre}}</h2>
|
||||
{{edge.node.contenu}}
|
||||
</div>
|
||||
|
||||
@@ -10,7 +13,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Previewer } from 'pagedjs'
|
||||
|
||||
export default {
|
||||
mounted(){
|
||||
this.$nextTick(()=>{
|
||||
let previewer = new Previewer();
|
||||
previewer.preview();
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user