Spaces:
Running
Running
Update templates/dissertation_pdf.html
Browse files- templates/dissertation_pdf.html +11 -18
templates/dissertation_pdf.html
CHANGED
|
@@ -22,11 +22,12 @@
|
|
| 22 |
font-size: 20px;
|
| 23 |
color: #1a2a4c;
|
| 24 |
background-color: #fdfaf4;
|
|
|
|
| 25 |
line-height: 1.8;
|
| 26 |
background-image: linear-gradient(transparent 97%, #d8e2ee 98%);
|
| 27 |
background-size: 100% 40px;
|
| 28 |
border-left: 3px solid #ffaaab;
|
| 29 |
-
padding-left: 4em;
|
| 30 |
padding-top: 30px;
|
| 31 |
padding-bottom: 40px;
|
| 32 |
padding-right: 30px;
|
|
@@ -38,7 +39,7 @@
|
|
| 38 |
font-size: 1.5em;
|
| 39 |
text-align: center;
|
| 40 |
margin-top: 0;
|
| 41 |
-
margin-bottom: 30px;
|
| 42 |
color: #1a2a4c;
|
| 43 |
}
|
| 44 |
.dissertation-paper h3 {
|
|
@@ -50,21 +51,9 @@
|
|
| 50 |
color: #1a2a4c;
|
| 51 |
}
|
| 52 |
.dissertation-paper .development-block {
|
| 53 |
-
/*
|
| 54 |
margin-top: 40px;
|
| 55 |
}
|
| 56 |
-
|
| 57 |
-
/* === AJOUT DE LA RÈGLE CORRECTIVE === */
|
| 58 |
-
/*
|
| 59 |
-
* Cible les blocs de développement à partir du deuxième pour annuler leur marge supérieure.
|
| 60 |
-
* Le sélecteur `+` cible un élément qui suit immédiatement un autre.
|
| 61 |
-
* L'enchaînement après une transition sera ainsi fluide.
|
| 62 |
-
*/
|
| 63 |
-
.dissertation-paper .avoid-page-break + .avoid-page-break .development-block {
|
| 64 |
-
margin-top: 0;
|
| 65 |
-
}
|
| 66 |
-
/* ======================================= */
|
| 67 |
-
|
| 68 |
.dissertation-paper p {
|
| 69 |
text-align: justify;
|
| 70 |
margin: 0;
|
|
@@ -73,18 +62,20 @@
|
|
| 73 |
.dissertation-paper .prof {
|
| 74 |
text-align: center;
|
| 75 |
font-style: italic;
|
| 76 |
-
margin-bottom: 40px;
|
| 77 |
}
|
| 78 |
.dissertation-paper .indented {
|
| 79 |
text-indent: 3em;
|
| 80 |
}
|
| 81 |
.dissertation-paper .transition {
|
|
|
|
| 82 |
margin-top: 35px;
|
| 83 |
margin-bottom: 35px;
|
| 84 |
font-style: italic;
|
| 85 |
color: #4a6a9c;
|
| 86 |
}
|
| 87 |
.avoid-page-break {
|
|
|
|
| 88 |
page-break-inside: avoid;
|
| 89 |
break-inside: avoid;
|
| 90 |
}
|
|
@@ -100,13 +91,15 @@
|
|
| 100 |
<p class="indented">{{ dissertation.introduction }}</p>
|
| 101 |
|
| 102 |
{% for partie in dissertation.parties %}
|
| 103 |
-
<div
|
| 104 |
-
|
|
|
|
| 105 |
<p class="indented">{{ partie.chapeau }}</p>
|
| 106 |
{% for arg in partie.arguments %}
|
| 107 |
<p class="indented">{{ arg.paragraphe_argumentatif }}</p>
|
| 108 |
{% endfor %}
|
| 109 |
</div>
|
|
|
|
| 110 |
{% if partie.transition %}
|
| 111 |
<p class="indented transition">{{ partie.transition }}</p>
|
| 112 |
{% endif %}
|
|
|
|
| 22 |
font-size: 20px;
|
| 23 |
color: #1a2a4c;
|
| 24 |
background-color: #fdfaf4;
|
| 25 |
+
/* L'interligne peut rester relatif, c'est généralement bien géré */
|
| 26 |
line-height: 1.8;
|
| 27 |
background-image: linear-gradient(transparent 97%, #d8e2ee 98%);
|
| 28 |
background-size: 100% 40px;
|
| 29 |
border-left: 3px solid #ffaaab;
|
| 30 |
+
padding-left: 4em; /* Le padding horizontal en 'em' est OK */
|
| 31 |
padding-top: 30px;
|
| 32 |
padding-bottom: 40px;
|
| 33 |
padding-right: 30px;
|
|
|
|
| 39 |
font-size: 1.5em;
|
| 40 |
text-align: center;
|
| 41 |
margin-top: 0;
|
| 42 |
+
margin-bottom: 30px; /* Unité absolue */
|
| 43 |
color: #1a2a4c;
|
| 44 |
}
|
| 45 |
.dissertation-paper h3 {
|
|
|
|
| 51 |
color: #1a2a4c;
|
| 52 |
}
|
| 53 |
.dissertation-paper .development-block {
|
| 54 |
+
/* Espace avant chaque nouvelle partie */
|
| 55 |
margin-top: 40px;
|
| 56 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
.dissertation-paper p {
|
| 58 |
text-align: justify;
|
| 59 |
margin: 0;
|
|
|
|
| 62 |
.dissertation-paper .prof {
|
| 63 |
text-align: center;
|
| 64 |
font-style: italic;
|
| 65 |
+
margin-bottom: 40px; /* Unité absolue */
|
| 66 |
}
|
| 67 |
.dissertation-paper .indented {
|
| 68 |
text-indent: 3em;
|
| 69 |
}
|
| 70 |
.dissertation-paper .transition {
|
| 71 |
+
/* Espace vertical pour la transition */
|
| 72 |
margin-top: 35px;
|
| 73 |
margin-bottom: 35px;
|
| 74 |
font-style: italic;
|
| 75 |
color: #4a6a9c;
|
| 76 |
}
|
| 77 |
.avoid-page-break {
|
| 78 |
+
/* La règle qui empêche de couper un bloc sur deux pages */
|
| 79 |
page-break-inside: avoid;
|
| 80 |
break-inside: avoid;
|
| 81 |
}
|
|
|
|
| 91 |
<p class="indented">{{ dissertation.introduction }}</p>
|
| 92 |
|
| 93 |
{% for partie in dissertation.parties %}
|
| 94 |
+
<div>
|
| 95 |
+
<!-- La classe 'avoid-page-break' est maintenant ici, sur le bloc de contenu principal -->
|
| 96 |
+
<div class="development-block avoid-page-break">
|
| 97 |
<p class="indented">{{ partie.chapeau }}</p>
|
| 98 |
{% for arg in partie.arguments %}
|
| 99 |
<p class="indented">{{ arg.paragraphe_argumentatif }}</p>
|
| 100 |
{% endfor %}
|
| 101 |
</div>
|
| 102 |
+
|
| 103 |
{% if partie.transition %}
|
| 104 |
<p class="indented transition">{{ partie.transition }}</p>
|
| 105 |
{% endif %}
|