Bestiaire format final

This commit is contained in:
Dandaedre 2026-08-22 18:40:31 +02:00
parent 47af978991
commit f38c180185
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
1 changed files with 11 additions and 7 deletions

View File

@ -151,7 +151,7 @@
table(
columns: 2,
column-gutter: 10pt,
inset: (x: 0pt, y: 2.5pt),
inset: (x: 0pt, y: 4pt),
stroke: none,
..rows,
)
@ -178,7 +178,7 @@
text(
size: 8pt,
table(
columns: (1.1fr, 1fr, 0.55fr, 2.2fr),
columns: (0.9fr, 1fr, 0.75fr, 2.2fr),
inset: (x: 4pt, y: 3pt),
stroke: none,
table.header([*Nom*], [*Catégorie*], [*Coût*], [*Effet*]),
@ -236,8 +236,12 @@
table.hline(stroke: 0.5pt + theme.border),
..rows,
table.hline(stroke: 0.5pt + theme.border),
table.cell(colspan: 9)[*Notes*],
table.cell(colspan: 9, text(size: 8pt, rich-text(creature.master-notes))),
table.cell(colspan: 9, inset: (top: 6pt, bottom: 3pt))[*Notes*],
table.cell(
colspan: 9,
inset: (top: 3pt, bottom: 6pt),
text(size: 8pt, rich-text(creature.master-notes)),
),
table.hline(stroke: 0.5pt + theme.border),
)
}
@ -278,7 +282,7 @@
columns: (25%,) + (75% / 13,) * 13,
row-gutter: 1.5pt,
inset: (x: 2pt, y: 3.5pt),
align: center + horizon,
align: (x, _) => if x == 0 { left + horizon } else { center + horizon },
stroke: none,
table.header(..headers),
table.hline(stroke: 0.5pt + theme.border),
@ -327,11 +331,11 @@
text(size: 12pt, it)
} else if it.y == 1 {
text(size: 7pt, align(center + bottom, rotate(-90deg, it, reflow: true)))
} else { it }
} else { text(size: 9pt, it) }
#align(center)[
#table(
columns: (100% / 22,) * 22,
inset: (x: 1.5pt, y: 2pt),
inset: (x: 1.5pt, y: 3pt),
align: (x, y) => if y == 1 { right + horizon } else {
center + horizon
},