23 lines
547 B
Typst
23 lines
547 B
Typst
#import "../pallete.typ": palette
|
|
|
|
|
|
|
|
#let sideways(..args) = {
|
|
// This rule is scoped only to this specific table
|
|
|
|
show table.cell.where(x: 0): strong
|
|
show table.cell.where(y: 0): it => strong(delta: -300, it)
|
|
|
|
table(
|
|
// Your existing stroke/fill logic
|
|
fill: (_, y) => if calc.odd(y) { rgb(palette.ui.bg-dark) },
|
|
stroke: (x, y) => (
|
|
top: none,
|
|
bottom: none,
|
|
left: if x == 0 { 0pt } else if x == 1 { palette.ui.border } else { 1pt + palette.ui.border },
|
|
right: if x == 0 { 2pt },
|
|
),
|
|
..args
|
|
)
|
|
}
|