From 91385a25948f0b455628884670d6d9d62adb1710 Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Sat, 2 Sep 2023 09:13:25 +0200 Subject: [PATCH] Update docstring --- src/layout/grid.lisp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/layout/grid.lisp b/src/layout/grid.lisp index 9da3d22..95fa0bb 100644 --- a/src/layout/grid.lisp +++ b/src/layout/grid.lisp @@ -245,27 +245,31 @@ arguments, containing the specified body content." COLS: Specifies the number of columns the element spans. BREAKPOINT: List that specifies the number of columns the element spans and -optional offset at various breakpoints. It should be :xs, :sm, :md, :lg, :xl, -or :xxl. +optional offset at various breakpoints. It should be 'xs', 'sm', 'md', 'lg', 'xl', +or 'xxl'. -ALIGN-SELF: Specifies the alignment of the column. Possible values are :start, :center, :end. +ALIGN-SELF: Specifies the alignment of the column. +Possible values are 'start', 'center', 'end'. SPACING: A list specifying the Bootstrap spacing class. The list should contain keyword arguments that can be passed to the cl-sbt/utility:spacing function. -Examples: +Example 1: (col (:col 6) \"Hello, world!\") ; This will generate a column that spans 6 columns by default, containing the ; text 'Hello, world!'. +Example 2: (col (:breakpoint (:md (8 2))) \"Hello, world!\") ; This will generate a column that spans 8 medium-sized columns with an ; offset of 2 medium-sized columns, containing the text 'Hello, world!'. +Example 3: (col (:alignself :center) \"Hello, world!\") ; This will generate a column that aligns its content in the center, ; containing the text 'Hello, world!'. +Example 4: (col (:spacing (:property :p :size 2)) \"Hello, world!\") ; This will generate a column that has a padding of 2 units on all sides, ; containing the text 'Hello, world!'."