Add travel-expense letter template with RTL amount list.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-06 13:45:11 +03:30
parent 46505eb3ee
commit 2db757877a
5 changed files with 213 additions and 6 deletions

View File

@@ -87,7 +87,8 @@ body {
direction: rtl;
font-family: "IRNazanin", sans-serif;
font-size: 13pt;
line-height: 1.2;
/* typst-templates use par(leading: 1.2em) — additive space, not CSS 1.2× */
line-height: 1.65;
color: var(--text);
background: #ffffff;
margin: 0;
@@ -302,18 +303,18 @@ h3 {
}
p {
margin: 0.4em 0 0.7em 0;
margin: 0.5em 0 0.85em 0;
text-align: justify;
}
ul, ol {
margin: 0.4em 0 0.8em 0;
margin: 0.5em 0 0.9em 0;
padding-right: 1.4em;
padding-left: 0;
}
li {
margin: 0.2em 0;
margin: 0.35em 0;
text-align: justify;
}
@@ -351,6 +352,73 @@ tbody tr + tr td {
border-top: 1pt solid var(--stroke);
}
.table-body-right tbody td {
text-align: right;
}
.letter-date {
margin: 0 0 12pt 0;
}
.letter-date p,
.letter-signature p {
text-align: left !important;
}
.letter-signature {
margin: 56pt 0 0 0;
padding-left: 2.5cm;
}
.expense-amounts {
margin: 28pt 0 32pt 0;
padding-right: 24pt;
direction: rtl;
}
.expense-amounts > ul {
list-style: circle;
margin: 0;
padding-right: 4em;
padding-left: 0;
direction: rtl;
}
.expense-amounts li {
direction: rtl;
unicode-bidi: embed;
margin: 0.35em 0;
text-align: right;
}
.expense-amounts .desc,
.expense-amounts .amount,
.expense-amounts .currency {
direction: rtl;
unicode-bidi: isolate;
}
.expense-amounts .desc {
display: inline-block;
min-width: 12.5rem;
text-align: right;
}
.expense-amounts .amount {
display: inline-block;
min-width: 8.5rem;
font-variant-numeric: tabular-nums;
text-align: right;
white-space: nowrap;
}
.expense-amounts .currency {
display: inline-block;
min-width: 2.5rem;
text-align: right;
white-space: nowrap;
}
table [dir="ltr"],
table .ltr {
direction: ltr;