summaryrefslogtreecommitdiff
path: root/templates/invoice.typ
diff options
context:
space:
mode:
Diffstat (limited to 'templates/invoice.typ')
-rw-r--r--templates/invoice.typ18
1 files changed, 10 insertions, 8 deletions
diff --git a/templates/invoice.typ b/templates/invoice.typ
index 7dacc59..b23f64b 100644
--- a/templates/invoice.typ
+++ b/templates/invoice.typ
@@ -44,7 +44,9 @@
]
]
- v(3em)
+ v(0.5em)
+ line(length: 100%, stroke: 0.4pt + rgb("#d1d5db"))
+ v(2em)
// Invoice title and number
grid(
@@ -91,16 +93,16 @@
#let professional-table() = {
table(
columns: (1fr, auto, auto, auto),
- stroke: (x, y) => if y == 0 or y == 1 { (bottom: 0.8pt + black) } else { none },
- inset: (x: 8pt, y: 12pt),
+ stroke: (x, y) => if y == 0 { (bottom: 0.8pt + black) } else if y > 1 { (top: 0.4pt + rgb("#e5e7eb")) } else { none },
+ inset: (x: 10pt, y: 12pt),
align: (left, center, center, right),
- column-gutter: 12pt,
+ fill: (x, y) => if y == 0 { rgb("#f8f9fa") } else { none },
// Header
- table.cell(fill: rgb("#f8f9fa"))[#text(weight: "bold", size: 9pt)[DESCRIPTION]],
- table.cell(fill: rgb("#f8f9fa"))[#text(weight: "bold", size: 9pt)[HOURS]],
- table.cell(fill: rgb("#f8f9fa"))[#text(weight: "bold", size: 9pt)[RATE]],
- table.cell(fill: rgb("#f8f9fa"))[#text(weight: "bold", size: 9pt)[AMOUNT]],
+ text(weight: "bold", size: 9pt)[DESCRIPTION],
+ text(weight: "bold", size: 9pt)[HOURS],
+ text(weight: "bold", size: 9pt)[RATE],
+ text(weight: "bold", size: 9pt)[AMOUNT],
// Line items
..data.line_items.map(item => (