make highlight a curryfied version of block

This commit is contained in:
Jean-Marie Mineau 2025-08-04 23:44:27 +02:00
parent 5bfb2f38ca
commit 663f587f77
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -22,12 +22,9 @@
v(.7cm) v(.7cm)
}) })
#let highlight(fill: school-color.lighten(40%)/*luma(230)*/, content) = { #let highlight = block.with(
block( fill: school-color.lighten(45%), // luma(230)
width: 100%, width: 100%,
inset: 8pt, inset: 8pt,
radius: 4pt, radius: 4pt,
fill: fill, )
content
)
}