Feat: add background color for code blocks
This commit is contained in:
16
styles.typ
16
styles.typ
@@ -31,10 +31,18 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Code section default
|
// Code section default
|
||||||
show raw: set text(
|
show raw: self => {
|
||||||
font: "Consolas",
|
set text(
|
||||||
size: 8pt
|
font: "Consolas",
|
||||||
)
|
size: 8pt
|
||||||
|
)
|
||||||
|
block(
|
||||||
|
fill: luma(240),
|
||||||
|
inset: 8pt,
|
||||||
|
radius: 2pt,
|
||||||
|
self
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
{ // Title
|
{ // Title
|
||||||
set align(center)
|
set align(center)
|
||||||
|
|||||||
Reference in New Issue
Block a user