Skip to content

Commit 04b17ef

Browse files
feat: add a function left-mid-right to place content on three columns (#397)
* Add a function left-mid-right to place content on three columns * fix: improve alignment of texts #397 Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com> --------- Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com>
1 parent 39069be commit 04b17ef

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/components.typ

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,20 @@
359359
left, none, right,
360360
)
361361

362+
/// Place three content blocks at the left, in the middle and right edges of the available width using a five-column grid.
363+
///
364+
/// - left (content): The content of the left part.
365+
///
366+
/// - mid (content): The content of the middle part.
367+
///
368+
/// - right (content): The content of the right part.
369+
///
370+
/// -> content
371+
#let left-mid-right(l, m, r) = grid(
372+
columns: (1fr, auto, 1fr),
373+
l, m, align(right, r),
374+
)
375+
362376

363377
/// Create a slide where the provided content blocks are displayed in a grid with a checkerboard color pattern.
364378
///

0 commit comments

Comments
 (0)