56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
#import "../core/macros.typ": memo_box
|
|
#import "decorations.typ" as spacers
|
|
#import "variables.typ": theme
|
|
|
|
#let ravhelp = memo_box
|
|
|
|
#let ravex(content) = ravhelp(title: "Par exemple", content)
|
|
#let ravtwoex(ex1, ex2) = ravhelp(
|
|
title: "Par exemple",
|
|
[#ex1 #spacers.fantasy-label("MÉCANIQUE EXCLUSIVE", theme-name: "warm") #ex2],
|
|
)
|
|
#let ravbox(args) = ravhelp(args, title: none)
|
|
#let inline_help(content) = {
|
|
emph[( #content )]
|
|
}
|
|
|
|
// Marks deliberately incomplete content in player-facing documents.
|
|
// Keep the pill available for compact indexes and headings, even where the
|
|
// complete admonition is more appropriate.
|
|
#let temporary-section-pill(label: "Section provisoire") = box(
|
|
inset: (x: 0.55em, y: 0.18em),
|
|
radius: 999pt,
|
|
fill: theme.dark-gold.lighten(82%),
|
|
stroke: 0.45pt + theme.dark-gold.lighten(38%),
|
|
text(
|
|
size: 7pt,
|
|
weight: "semibold",
|
|
tracking: 0.03em,
|
|
fill: theme.dark-gold.darken(12%),
|
|
upper(label),
|
|
),
|
|
)
|
|
|
|
#let temporary-section(
|
|
content,
|
|
title: [Contenu temporaire],
|
|
) = block(
|
|
width: 100%,
|
|
breakable: false,
|
|
inset: 12pt,
|
|
radius: 4pt,
|
|
fill: theme.parchment,
|
|
stroke: (left: 2.4pt + theme.dark-gold, rest: 0.55pt + theme.gold),
|
|
)[
|
|
#text(
|
|
size: 7.5pt,
|
|
weight: "semibold",
|
|
tracking: 0.04em,
|
|
fill: theme.dark-gold.darken(12%),
|
|
)[SECTION PROVISOIRE]
|
|
#h(0.6em)
|
|
#strong[#title]
|
|
#v(0.55em)
|
|
#content
|
|
]
|