update styles

Signed-off-by: szdytom <szdytom@qq.com>
This commit is contained in:
方而静 2025-07-06 23:46:25 +08:00
parent 9bf231157c
commit e3a8cfceb5
Signed by: szTom
GPG Key ID: 072D999D60C6473C

View File

@ -15,20 +15,24 @@
#let ee = "e"
#let ii = "i"
#let showy_wrapper(title: "", wrap-border: none, ..args) = {
#let margin-wrapper(margin: 2.5em, body) = {
set align(center)
block(inset: (
left: margin,
), width: 100%, body)
}
#let showy_wrapper(title: "", margin: none, ..args) = {
let b = if title != "" {
showybox(title: text(font: zhfont_sans, title), ..args)
} else {
showybox(title: title, ..args)
}
if wrap-border == none {
if margin == none {
b
} else {
set align(center)
block(inset: (
left: wrap-border,
), width: 100%, b)
margin-wrapper(b)
}
}
@ -39,7 +43,6 @@
color: theme_color.darken(40%),
sep-thickness: 0pt,
font: zhfont_sans
//align: center
),
frame: (
title-color: theme_color.lighten(80%),
@ -92,6 +95,7 @@
set highlight(fill: none, stroke: (
bottom: 4pt + theme_color.lighten(80%)
))
set footnote(numbering: "注1")
v(10fr)
h(2fr)