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)
})
#let highlight(fill: school-color.lighten(40%)/*luma(230)*/, content) = {
block(
width: 100%,
inset: 8pt,
radius: 4pt,
fill: fill,
content
)
}
#let highlight = block.with(
fill: school-color.lighten(45%), // luma(230)
width: 100%,
inset: 8pt,
radius: 4pt,
)