summaryrefslogtreecommitdiff
path: root/tests/typ/layout
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-21 16:19:46 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-21 16:19:46 +0100
commit31f904a2c406953cbce334e02b37a712b9b9d016 (patch)
treec23f6e063864d97afb9b3d58c10ce4c2877106c5 /tests/typ/layout
parent4af7b9118c5ce612b3d9d7dd06118ce23b731d9c (diff)
Split up and document shapes
Diffstat (limited to 'tests/typ/layout')
-rw-r--r--tests/typ/layout/grid-1.typ2
-rw-r--r--tests/typ/layout/grid-3.typ4
-rw-r--r--tests/typ/layout/pad.typ1
-rw-r--r--tests/typ/layout/par-knuth.typ2
-rw-r--r--tests/typ/layout/stack-2.typ3
5 files changed, 6 insertions, 6 deletions
diff --git a/tests/typ/layout/grid-1.typ b/tests/typ/layout/grid-1.typ
index dcc9b474..411fd8d0 100644
--- a/tests/typ/layout/grid-1.typ
+++ b/tests/typ/layout/grid-1.typ
@@ -2,7 +2,6 @@
---
#let cell(width, color) = rect(width: width, height: 2cm, fill: color)
-
#set page(width: 100pt, height: 140pt)
#grid(
columns: (auto, 1fr, 3fr, 0.25cm, 3%, 2mm + 10%),
@@ -21,6 +20,7 @@
)
---
+#set rect(inset: 0pt)
#grid(
columns: (auto, auto, 40%),
column-gutter: 1fr,
diff --git a/tests/typ/layout/grid-3.typ b/tests/typ/layout/grid-3.typ
index c55f22a6..8194da73 100644
--- a/tests/typ/layout/grid-3.typ
+++ b/tests/typ/layout/grid-3.typ
@@ -24,7 +24,7 @@
row-gutter: 10pt,
column-gutter: (0pt, 10%),
align(top, image("/res/rhino.png")),
- align(top, rect(fill: eastern, align(right)[LoL])),
+ align(top, rect(inset: 0pt, fill: eastern, align(right)[LoL])),
[rofl],
[\ A] * 3,
[Ha!\ ] * 3,
@@ -55,7 +55,7 @@
column-gutter: (0pt, 10%),
[A], [B], [C], [D],
grid(columns: 2, [A], [B], [C\ ]*3, [D]),
- align(top, rect(fill: eastern, align(right)[LoL])),
+ align(top, rect(inset: 0pt, fill: eastern, align(right)[LoL])),
[rofl],
[E\ ]*4,
)
diff --git a/tests/typ/layout/pad.typ b/tests/typ/layout/pad.typ
index 9791eae4..4f481502 100644
--- a/tests/typ/layout/pad.typ
+++ b/tests/typ/layout/pad.typ
@@ -5,6 +5,7 @@
#pad(left: 10pt, [Indented!])
// All sides together.
+#set rect(inset: 0pt)
#rect(fill: conifer,
pad(10pt, right: 20pt,
rect(width: 20pt, height: 20pt, fill: rgb("eb5278"))
diff --git a/tests/typ/layout/par-knuth.typ b/tests/typ/layout/par-knuth.typ
index 59349738..dbe13fc4 100644
--- a/tests/typ/layout/par-knuth.typ
+++ b/tests/typ/layout/par-knuth.typ
@@ -14,7 +14,7 @@
]
#let column(title, linebreaks, hyphenate) = {
- rect(width: 132pt, fill: rgb("eee"))[
+ rect(inset: 0pt, width: 132pt, fill: rgb("eee"))[
#set par(linebreaks: linebreaks)
#set text(hyphenate: hyphenate)
#strong(title) \ #story
diff --git a/tests/typ/layout/stack-2.typ b/tests/typ/layout/stack-2.typ
index f88f7a58..a06950f1 100644
--- a/tests/typ/layout/stack-2.typ
+++ b/tests/typ/layout/stack-2.typ
@@ -19,6 +19,5 @@ World! 🌍
#set text(white)
#rect(fill: forest)[
#v(1fr)
- #h(1fr) Hi you! #h(5pt)
- #v(5pt)
+ #h(1fr) Hi you!
]