Docfile commited on
Commit
0d3c997
·
verified ·
1 Parent(s): 4ca90f2

Update templates/dissertation_pdf.html

Browse files
Files changed (1) hide show
  1. templates/dissertation_pdf.html +16 -8
templates/dissertation_pdf.html CHANGED
@@ -22,12 +22,11 @@
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,12 +38,11 @@
39
  font-size: 1.5em;
40
  text-align: center;
41
  margin-top: 0;
42
- margin-bottom: 30px; /* MODIFIÉ: Unité absolue */
43
  color: #1a2a4c;
44
  }
45
  .dissertation-paper h3 {
46
  font-size: 1.2em;
47
- /* MODIFIÉ: Remplacé 3em par 40px pour un espacement contrôlé */
48
  margin-top: 40px;
49
  margin-bottom: 30px;
50
  text-transform: uppercase;
@@ -52,10 +50,21 @@
52
  color: #1a2a4c;
53
  }
54
  .dissertation-paper .development-block {
55
- /* MODIFIÉ: Remplacé 3em par 40px. C'est le changement crucial */
56
- /* pour l'espace entre l'introduction et la première partie. */
57
  margin-top: 40px;
58
  }
 
 
 
 
 
 
 
 
 
 
 
 
59
  .dissertation-paper p {
60
  text-align: justify;
61
  margin: 0;
@@ -64,13 +73,12 @@
64
  .dissertation-paper .prof {
65
  text-align: center;
66
  font-style: italic;
67
- margin-bottom: 40px; /* MODIFIÉ: Unité absolue */
68
  }
69
  .dissertation-paper .indented {
70
  text-indent: 3em;
71
  }
72
  .dissertation-paper .transition {
73
- /* MODIFIÉ: Remplacé 2em par 35px pour la transition */
74
  margin-top: 35px;
75
  margin-bottom: 35px;
76
  font-style: italic;
 
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
  font-size: 1.5em;
39
  text-align: center;
40
  margin-top: 0;
41
+ margin-bottom: 30px;
42
  color: #1a2a4c;
43
  }
44
  .dissertation-paper h3 {
45
  font-size: 1.2em;
 
46
  margin-top: 40px;
47
  margin-bottom: 30px;
48
  text-transform: uppercase;
 
50
  color: #1a2a4c;
51
  }
52
  .dissertation-paper .development-block {
53
+ /* Marge pour le premier bloc de développement après l'introduction */
 
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
  .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;