feat(series-studio): support type_doc (corrige, resume), 4 light themes, chemistry reactions and serie 05 (perso-2026-11-013)
This commit is contained in:
1 parent
b0836f73a0
commit
8f43363848
15 files changed
+2067
-128
No files matched your search
@@ -139,9 +139,14 @@
|
||||
color_secondary: rgb("#1e40af"),
|
||||
color_accent: rgb("#93c5fd"),
|
||||
color_border: rgb("#cbd5e1"),
|
||||
theme_name: "classique",
|
||||
body
|
||||
) = {
|
||||
v(6pt)
|
||||
if theme_name == "encre" [
|
||||
#rect(width: 100%, height: 7pt, fill: rgb("#1f2937"), radius: (top: 3pt, bottom: 0pt))
|
||||
#v(-7pt)
|
||||
]
|
||||
block(
|
||||
width: 100%,
|
||||
stroke: 0.8pt + color_border,
|
||||
@@ -150,36 +155,102 @@
|
||||
fill: rgb("#ffffff"),
|
||||
breakable: breakable_box,
|
||||
[
|
||||
#block(
|
||||
fill: color_primary,
|
||||
width: 100%,
|
||||
inset: (x: 10pt, y: 5.5pt),
|
||||
grid(
|
||||
columns: (1fr, auto),
|
||||
align: (left + horizon, right + horizon),
|
||||
[
|
||||
#text(fill: white, weight: "bold", size: 10.5pt)[
|
||||
EXERCICE #numero
|
||||
]
|
||||
#if titre != none [
|
||||
#h(6pt)
|
||||
#text(fill: color_accent, size: 8.8pt, style: "italic")[
|
||||
— #titre
|
||||
#if theme_name == "sobre" [
|
||||
#block(
|
||||
fill: rgb("#f8fafc"),
|
||||
stroke: (bottom: 1pt + color_border),
|
||||
width: 100%,
|
||||
inset: (x: 10pt, y: 5.5pt),
|
||||
grid(
|
||||
columns: (1fr, auto),
|
||||
align: (left + horizon, right + horizon),
|
||||
[
|
||||
#text(fill: color_primary, weight: "bold", size: 10.5pt)[
|
||||
EXERCICE #numero
|
||||
]
|
||||
#if titre != none [
|
||||
#h(6pt)
|
||||
#text(fill: color_secondary, size: 8.8pt, style: "italic")[
|
||||
— #titre
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
#if points != none [
|
||||
#rect(
|
||||
fill: color_secondary,
|
||||
radius: 3pt,
|
||||
inset: (x: 5pt, y: 2pt),
|
||||
text(fill: white, weight: "bold", size: 8pt)[#points]
|
||||
)
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
#if points != none [
|
||||
#rect(
|
||||
fill: color_secondary,
|
||||
radius: 3pt,
|
||||
inset: (x: 5pt, y: 2pt),
|
||||
text(fill: white, weight: "bold", size: 8pt)[#points]
|
||||
)
|
||||
]
|
||||
]
|
||||
)
|
||||
)
|
||||
)
|
||||
] else if theme_name == "encre" [
|
||||
#block(
|
||||
fill: rgb("#f3f4f6"),
|
||||
stroke: (bottom: 1.5pt + rgb("#1f2937")),
|
||||
width: 100%,
|
||||
inset: (x: 10pt, y: 5.5pt),
|
||||
grid(
|
||||
columns: (1fr, auto),
|
||||
align: (left + horizon, right + horizon),
|
||||
[
|
||||
#text(fill: rgb("#111827"), weight: "bold", size: 10.5pt)[
|
||||
EXERCICE #numero
|
||||
]
|
||||
#if titre != none [
|
||||
#h(6pt)
|
||||
#text(fill: rgb("#374151"), size: 8.8pt, style: "italic")[
|
||||
— #titre
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
#if points != none [
|
||||
#rect(
|
||||
fill: rgb("#374151"),
|
||||
radius: 3pt,
|
||||
inset: (x: 5pt, y: 2pt),
|
||||
text(fill: white, weight: "bold", size: 8pt)[#points]
|
||||
)
|
||||
]
|
||||
]
|
||||
)
|
||||
)
|
||||
] else [
|
||||
#block(
|
||||
fill: color_primary,
|
||||
width: 100%,
|
||||
inset: (x: 10pt, y: 5.5pt),
|
||||
grid(
|
||||
columns: (1fr, auto),
|
||||
align: (left + horizon, right + horizon),
|
||||
[
|
||||
#text(fill: white, weight: "bold", size: 10.5pt)[
|
||||
EXERCICE #numero
|
||||
]
|
||||
#if titre != none [
|
||||
#h(6pt)
|
||||
#text(fill: color_accent, size: 8.8pt, style: "italic")[
|
||||
— #titre
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
#if points != none [
|
||||
#rect(
|
||||
fill: color_secondary,
|
||||
radius: 3pt,
|
||||
inset: (x: 5pt, y: 2pt),
|
||||
text(fill: white, weight: "bold", size: 8pt)[#points]
|
||||
)
|
||||
]
|
||||
]
|
||||
)
|
||||
)
|
||||
]
|
||||
#block(
|
||||
width: 100%,
|
||||
inset: (x: 12pt, top: 7pt, bottom: 8pt),
|
||||
|
||||
Reference in new issue
Block a user