correction bug paragraphes latour/lampe qui sautent et suppression des espaces blancs avant les paragraphes où ça n'est pas nécessaire

This commit is contained in:
Valentin
2023-06-16 15:09:53 +02:00
parent 587e900bf1
commit 2d3da66526
16 changed files with 262 additions and 30 deletions
@@ -2,11 +2,13 @@
--cols: 8;
--rows: 8;
--guts: 4mm;
--beige: #fbf2e7;
--ocre: #d98a29;
}
@page {
size: 165mm 230mm;
margin-top: 8mm;
margin-top: 16mm;
margin-bottom: 16mm;
bleed: 6mm;
color: black;
@@ -15,6 +17,46 @@
@page:left {
margin-left: 16mm;
margin-right: 8mm;
@left-middle {
content: counter(page);
display: flex;
justify-content: center;
align-items: center;
font-family: 'Ortica';
font-weight: bold;
font-size: 8pt;
color: var(--ocre);
height: 30mm;
}
@left-top {
content: 'Titre sous-section';
white-space: nowrap;
font-family: 'Ortica';
font-weight: bold;
font-size: 8pt;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
text-align: right;
}
@left-bottom {
content: 'Partie générale';
white-space: nowrap;
font-family: 'Ortica';
font-weight: bold;
font-size: 8pt;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
}
}
.pagedjs_margin-left-top div, .pagedjs_margin-left-bottom div {
display: block;
min-width: max-content;
transform: rotate(-90deg);
}
@page:right {
@@ -22,13 +64,12 @@
margin-right: 16mm;
}
* {
body {
font-family: 'Public';
hyphens: auto;
}
h2 {
color: blue;
color: blue;
}
h3 {
@@ -69,6 +110,8 @@ h3 {
padding-left: calc(var(--pagedjs-pagebox-width) / var(--cols));
line-height: 12pt;
font-size: 9pt;
text-align: justify;
hyphens: auto;
}
.labeur p:before {
@@ -81,12 +124,60 @@ h3 {
padding-left: 3mm;
}
.latour, .lampe {
font-family: 'Novel';
font-weight: normal;
margin-left: calc(var(--pagedjs-pagebox-width) / var(--cols));
margin-right: -16mm;
margin-bottom: 20mm;
background-color: var(--beige);
line-height: 12pt;
font-size: 9pt;
padding-right: 18mm;
padding-left: calc(var(--pagedjs-pagebox-width) / var(--cols));
padding-bottom: 10mm;
padding-top: 10mm;
}
.pagedjs_left_page .latour, .pagedjs_left_page .lampe {
padding-right: 10mm;
width: 128.375mm;
}
.latour[data-split-original="true"] {
padding-bottom: 1mm !important;
}
.latour[data-split-from] {
padding-top: 1mm !important;
}
.latour-header, .lampe-header {
display: flex;
flex-direction: row;
align-items: center;
line-height: 1.1;
/* font-family: 'Novel';
*/ font-weight: bold;
}
.latour-header div:first-of-type,
.lampe-header div:first-of-type {
margin-top: 1mm;
margin-right: 2mm;
}
.lampe {
margin-top: 20mm;
padding-top: 3mm;
padding-bottom: 3mm;
}
img {
width: 100%;
}
.fullpage2imgs {
break-before: right;
width: 130mm;
height: 210mm;
}
@@ -96,4 +187,40 @@ img {
margin-left: -10mm;
width: 171mm;
height: 230mm;
}
}
.bottomimg {
width: 100%;
}
.bottomimg img {
height: 100%;
}
.tripleimgs {
break-before: page;
break-after: page
}
.tripleimgs img:nth-of-type(2) {
width: calc(50% - 1mm);
margin-right: 2mm;
}
.tripleimgs img:last-of-type {
width: calc(50% - 1mm);
}
.tripleimgs2 {
break-before: page;
break-after: page
}
.tripleimgs2 img:nth-of-type(2) {
width: calc(37.5% - 1mm);
margin-right: 2mm;
}
.tripleimgs2 img:last-of-type {
width: calc(62.5% - 1mm);
}