dernieres dernières corrections
All checks were successful
Deploy / Deploy to Production (push) Successful in 5s

This commit is contained in:
sarahgarcin1 2026-07-15 14:25:59 +02:00
parent f87eae1f6e
commit 0e4ba1241d
13 changed files with 188 additions and 17 deletions

View file

@ -38,6 +38,14 @@
letter-spacing: 0rem !important;
}
[data-id="0xbiographies"] .chapter-content p[data-unique-id="p-bmedieeddl"]{
letter-spacing: -0.016rem !important;
}
[data-id="0xbiographies"] .chapter-content p[data-unique-id="p-opeaedsidl"]{
letter-spacing: -0.012rem !important;
}
@ -96,8 +104,7 @@
[data-id="0xbiographies"] #angels-front,
/*[data-id="0xbiographies"] #elsa-boyer,*/
[data-id="0xbiographies"] #martin-de-bie,
[data-id="0xbiographies"] #stella-jacob,
[data-id="0xbiographies"] #jean-noel-lafargue{
[data-id="0xbiographies"] #stella-jacob{
margin-top: 0;
}
@ -107,7 +114,9 @@
/*[data-id="0xbiographies"] #sarah-garcin,*/
/*[data-id="0xbiographies"] #outdoor-computer-club{*/
/*[data-id="0xbiographies"] #remi-sagot-duvauroux*/
[data-id="0xbiographies"] #luz-palacios{
[data-id="0xbiographies"] #luz-palacios,
[data-id="0xbiographies"] #marie-lechner,
[data-id="0xbiographies"] #soline-nivet{
break-before: column;
margin: 0;
}

View file

@ -12,9 +12,13 @@ blockquote .tag-text-anchor{
line-height: 0;
}
blockquote p{
text-indent: 0 !important;
}
blockquote p::before{
/* display: none; */
display: none !important;
}
.before-blockquote_container,

View file

@ -142,6 +142,11 @@
background-color: var(--bg-type);
}
[data-unique-id="p-mptvdcnpsp"]{
letter-spacing: -0.005rem!important;
background-color: var(--bg-type);
}

View file

@ -111,15 +111,15 @@
background-color: var(--bg-type);
}
[data-unique-id="p-ldmbacufnl"]{
/*[data-unique-id="p-ldmbacufnl"]{
letter-spacing: -0.01rem!important;
background-color: var(--bg-type);
}
}*/
[data-unique-id="p-nce4efcupd"]{
/*[data-unique-id="p-nce4efcupd"]{
letter-spacing: -0.01rem!important;
background-color: var(--bg-type);
}
}*/
[data-unique-id="p-aldlltinfà"]{
letter-spacing: -0.01rem!important;

View file

@ -170,6 +170,14 @@
background-color: var(--bg-type);
}
[data-unique-id="p-lfqvmcmmfp"]{
letter-spacing: 0rem!important;
background-color: var(--bg-type);
}
/*[data-unique-id="p-jvdéqtgclm"]{
letter-spacing: 0rem!important;
background-color: var(--bg-type);

View file

@ -14,6 +14,8 @@
[data-unique-id="p-ppledcpnsa"]{
break-before: page;
letter-spacing: 0rem!important;
background-color: var(--bg-type);
}
[data-unique-id="p-eràcadddtd"]{

View file

@ -50,6 +50,26 @@
background-color: var(--bg-type);
}
[data-unique-id="p-lsiduiervc"]{
letter-spacing: 0rem!important;
background-color: var(--bg-type);
}
[data-unique-id="p-lldrpdupid"]{
letter-spacing: 0rem!important;
background-color: var(--bg-type);
}
[data-unique-id="p-ltnpalapfc"]{
letter-spacing: 0rem!important;
background-color: var(--bg-type);
}
#un-cadre-pauvre{
margin-top: calc(var(--baseline) * 2 - 3px);

View file

@ -158,7 +158,7 @@ break-before: page;
#fig-cyberrance-9 figcaption{
position: absolute;
width: calc(var(--unit)*2.5);
top: 45mm;
top: 62mm;
left: -22mm;
}

View file

@ -51,13 +51,16 @@ body[data-template="couverture"] #book-subtitle{
#motif-couv{
position: absolute;
top: 40mm;
left: 17.5mm;
/* top: 40mm;
left: 17.5mm;*/
top: 27mm;
left: 11.5mm;
}
#motif-couv p {
line-height: 1.1;
font-size: 9pt;
/*font-size: 9pt;*/
font-size: 10.5pt;
letter-spacing: 0.15rem;
}
@ -85,7 +88,7 @@ body[data-template="couverture"] .back p{
left: calc(var(--marginLR) + var(--bleeds));
right: var(--marginLR);
top: var(--marginTB);
font-size: 11.6pt;
font-size: 10.5pt;
line-height: 1.35;
letter-spacing: -0.005rem !important;
}
@ -148,7 +151,7 @@ body[data-template="couverture"] .back p{
#motif-backcover{
position: absolute;
top: 65mm;
top: 55mm;
/*left: 23mm;*/
}

View file

@ -339,6 +339,12 @@ padding-bottom: 38px;
margin-top: calc(var(--baseline)*2);
}
#fig-olivain-porry-2 figcaption{
max-width: calc(var(--unit)*4);
position: absolute;
top: 183mm;
}
#fig-olivain-porry-3{
position: absolute;
width: calc(var(--unit)*6.5);

View file

@ -219,6 +219,10 @@
}
[id="credits"] .chapter-content{
font-size: 10.7px;
}
[id="texte-intention"] h2,
[id="credits"] h2 {
font-family: var(--fontTitle);
@ -295,7 +299,7 @@
padding-bottom: calc(var(--baseline)*8);
}
[id="credits"] [data-unique-id="p-rdnd2v2t2c"] {
[id="credits"] [data-unique-id="p-d2v2t2c2n2"] {
text-align: left;
}

View file

@ -1,6 +1,6 @@
# JOB LOB
Contenu => https://www.swisstransfer.com/d/40831bd7-7201-477f-a02b-e18df848a2ff
Contenu => https://www.swisstransfer.com/d/d83f01cb-cfdb-4254-9222-4945587b0660
----
@ -53,7 +53,7 @@ Métallique argent or = 8002C
- Colophon: Logo Ensad + logo Ministère + logo Dilecta + logo Lafayette Anticipation
## TO DO
[] Demander à julie pour les codes des articles (pour intro et préface)
[x] Demander à julie pour les codes des articles (pour intro et préface)
[] Phrase explicative pour l'index ? => Demander à Olivier ?
[] Problème si je mets des italiques dans le titre, c'est un faux italique avec la typo Teletext
[] S'il reste une double page on peut faire un tableau avec les mots etc.

110
replace_hd_images.sh Executable file
View file

@ -0,0 +1,110 @@
#!/bin/bash
# replace_hd_images_v2.sh — source : HD_DECOR-6_47L
# Usage:
# dry-run (défaut) : ./replace_hd_images_v2.sh
# appliquer : ./replace_hd_images_v2.sh apply
# un chapitre seul : ./replace_hd_images_v2.sh apply "10_enseigner-..."
set -e
CONTENT_ROOT="/Users/sarah/Sites/revue_decor/content"
HD_DIR="/Users/sarah/Sites/revue_decor/HD_DECOR-6_47L"
MODE="${1:-dry-run}"
TARGET_CHAPTER="${2:-}"
do_replace() {
local chapter="$1"
local chapter_dir="$CONTENT_ROOT/$chapter"
local slug="${chapter#*_}"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "Chapitre : $chapter"
echo ""
local found_any=false
while IFS= read -r content_file; do
local content_basename
content_basename=$(basename "$content_file")
local content_base="${content_basename%.*}"
local content_ext="${content_basename##*.}"
# Cherche un fichier HD .jpg avec le nom exact
local hd_file=""
for f in "$HD_DIR"/*_"${slug}"__"${content_base}".jpg; do
[ -f "$f" ] && hd_file="$f" && break
done
# Si pas trouvé, cherche avec suffixe -0
if [ -z "$hd_file" ]; then
for f in "$HD_DIR"/*_"${slug}"__"${content_base}"-0.jpg; do
[ -f "$f" ] && hd_file="$f" && break
done
fi
if [ -z "$hd_file" ]; then
echo " [—] Pas de correspondance HD : $content_basename"
continue
fi
found_any=true
local hd_basename
hd_basename=$(basename "$hd_file")
local new_basename="${content_base}.jpg"
local dest_file="$chapter_dir/$new_basename"
# Vérifier si le fichier destination est déjà identique à la source HD
if [ -f "$dest_file" ] && cmp -s "$hd_file" "$dest_file"; then
echo " [=] Déjà à jour, ignoré : $new_basename"
continue
fi
if [ "$content_ext" = "jpg" ]; then
echo " [↑] $content_basename$hd_basename (mise à jour)"
else
echo " [✓] $content_basename$new_basename$hd_basename"
echo " .txt : ${content_basename}.txt → ${new_basename}.txt"
fi
if [ "$MODE" = "apply" ]; then
cp "$hd_file" "$dest_file"
# Supprimer l'ancien fichier si extension différente
if [ "$content_ext" != "jpg" ] && [ -f "$chapter_dir/$content_basename" ]; then
rm "$chapter_dir/$content_basename"
fi
# Renommer le .txt si extension différente
if [ "$content_ext" != "jpg" ] && [ -f "$chapter_dir/${content_basename}.txt" ]; then
mv "$chapter_dir/${content_basename}.txt" "$chapter_dir/${new_basename}.txt"
fi
fi
done < <(find "$chapter_dir" -maxdepth 1 -type f ! -name "*.txt" ! -name "chapitre.txt" | sort)
if [ "$found_any" = false ]; then
echo " (aucune image HD trouvée pour ce chapitre)"
fi
echo ""
}
echo ""
if [ "$MODE" = "apply" ]; then
echo "MODE : APPLY — les fichiers vont être remplacés"
else
echo "MODE : DRY-RUN — aucune modification"
fi
echo ""
if [ -n "$TARGET_CHAPTER" ]; then
do_replace "$TARGET_CHAPTER"
else
for chapter_dir in "$CONTENT_ROOT"/*/; do
chapter=$(basename "$chapter_dir")
[[ "$chapter" == _* ]] && continue
[[ "$chapter" == "home" || "$chapter" == "error" || "$chapter" == "print" ]] && continue
do_replace "$chapter"
done
fi
if [ "$MODE" = "dry-run" ]; then
echo "→ Dry-run terminé. Pour appliquer : bash <script> apply"
fi