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