diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-25 20:51:16 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-25 20:51:16 +0100 |
| commit | 393d74f9bb0d4c71a69108d5be261103c39f47f3 (patch) | |
| tree | a1d4219de2d8fbec1a16ac3760a95e0b7c9529c5 /tests/typ | |
| parent | 304d9dd1107504f3925c2593dd279ea6616defab (diff) | |
Layout improvements
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/code/let.typ | 2 | ||||
| -rw-r--r-- | tests/typ/code/target.typ | 2 | ||||
| -rw-r--r-- | tests/typ/elements/circle.typ | 2 | ||||
| -rw-r--r-- | tests/typ/elements/rect.typ | 2 | ||||
| -rw-r--r-- | tests/typ/layout/grid-1.typ | 2 |
5 files changed, 4 insertions, 6 deletions
diff --git a/tests/typ/code/let.typ b/tests/typ/code/let.typ index cd7531b7..7fd6e0da 100644 --- a/tests/typ/code/let.typ +++ b/tests/typ/code/let.typ @@ -11,7 +11,7 @@ // Syntax sugar for function definitions. #let fill = conifer -#let rect(body) = rect(width: 2cm, fill: fill, pad(5pt, body)) +#let rect(body) = rect(width: 2cm, fill: fill, padding: 5pt, body) #rect[Hi!] --- diff --git a/tests/typ/code/target.typ b/tests/typ/code/target.typ index 12a5ff8b..73516817 100644 --- a/tests/typ/code/target.typ +++ b/tests/typ/code/target.typ @@ -7,6 +7,6 @@ #let d = 3 #let value = [hi] #let item(a, b) = a + b -#let fn(body) = rect(fill: conifer, pad(5pt, body)) +#let fn = rect with (fill: conifer, padding: 5pt) Some _includable_ text. diff --git a/tests/typ/elements/circle.typ b/tests/typ/elements/circle.typ index 2e97e985..ad9d3a4e 100644 --- a/tests/typ/elements/circle.typ +++ b/tests/typ/elements/circle.typ @@ -16,7 +16,7 @@ Auto-sized circle. \ Center-aligned rect in auto-sized circle. #circle(fill: forest, stroke: conifer, align(center + horizon, - rect(fill: conifer, pad(5pt)[But, soft!]) + rect(fill: conifer, padding: 5pt)[But, soft!] ) ) diff --git a/tests/typ/elements/rect.typ b/tests/typ/elements/rect.typ index bb666fb2..b3d4d286 100644 --- a/tests/typ/elements/rect.typ +++ b/tests/typ/elements/rect.typ @@ -19,7 +19,7 @@ )) // Fixed width, text height. -#rect(width: 2cm, fill: rgb("9650d6"), pad(5pt)[Fixed and padded]) +#rect(width: 2cm, fill: rgb("9650d6"), padding: 5pt)[Fixed and padded] // Page width, fixed height. #rect(height: 1cm, width: 100%, fill: rgb("734ced"))[Topleft] diff --git a/tests/typ/layout/grid-1.typ b/tests/typ/layout/grid-1.typ index 2d13452b..647e366f 100644 --- a/tests/typ/layout/grid-1.typ +++ b/tests/typ/layout/grid-1.typ @@ -20,8 +20,6 @@ cell(100%, rgb("00ff00")), ) -#grid() - --- #grid( columns: (auto, auto, 40%), |
