summaryrefslogtreecommitdiff
path: root/tests/typ/layout
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-13 12:04:26 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-13 12:18:34 +0100
commit72b60dfde751b4a2ab279aa1fcfa559b4a75eb51 (patch)
tree013065649ef0972bd342ad5c5821842a9c48c740 /tests/typ/layout
parentdb49b628f73d3c328aacadbb9126616e7cccfc49 (diff)
Fill and stroke properties for containers
Diffstat (limited to 'tests/typ/layout')
-rw-r--r--tests/typ/layout/columns.typ4
-rw-r--r--tests/typ/layout/container-fill.typ7
2 files changed, 9 insertions, 2 deletions
diff --git a/tests/typ/layout/columns.typ b/tests/typ/layout/columns.typ
index 1d82113c..b5dbf96f 100644
--- a/tests/typ/layout/columns.typ
+++ b/tests/typ/layout/columns.typ
@@ -6,10 +6,10 @@
#set text(lang: "ar", "Noto Sans Arabic", "IBM Plex Serif")
#set columns(gutter: 30pt)
-#box(rect(fill: conifer, height: 8pt, width: 6pt)) وتحفيز
+#box(fill: conifer, height: 8pt, width: 6pt) وتحفيز
العديد من التفاعلات الكيميائية. (DNA) من أهم الأحماض النووية التي تُشكِّل
إلى جانب كل من البروتينات والليبيدات والسكريات المتعددة
-#box(rect(fill: eastern, height: 8pt, width: 6pt))
+#box(fill: eastern, height: 8pt, width: 6pt)
الجزيئات الضخمة الأربعة الضرورية للحياة.
---
diff --git a/tests/typ/layout/container-fill.typ b/tests/typ/layout/container-fill.typ
new file mode 100644
index 00000000..ab5913ab
--- /dev/null
+++ b/tests/typ/layout/container-fill.typ
@@ -0,0 +1,7 @@
+#set page(height: 100pt)
+#let words = lorem(18).split()
+#block(inset: 8pt, fill: aqua, stroke: aqua.darken(30%))[
+ #words.slice(0, 12).join(" ")
+ #box(fill: teal, outset: 2pt)[incididunt]
+ #words.slice(12).join(" ")
+]