Skip to content

Commit 6ac3308

Browse files
Add responsive gutter example (4 integers)
1 parent 617202b commit 6ac3308

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

layouts/shortcodes/grid.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,24 @@
154154

155155
{{< /grid >}}
156156

157+
Here's a grid with responsive gutters (i.e., "xs sm md lg" are set).
158+
159+
{{< grid columns="1 2 2 3" gutter="1 1 3 4" >}}
160+
161+
[[item]]
162+
type = 'card'
163+
body = 'Responsive gutter: 0.25rem on mobile, 1rem on tablet, 1.5rem on desktop'
164+
165+
[[item]]
166+
type = 'card'
167+
body = 'Responsive gutter: 0.25rem on mobile, 1rem on tablet, 1.5rem on desktop'
168+
169+
[[item]]
170+
type = 'card'
171+
body = 'Responsive gutter: 0.25rem on mobile, 1rem on tablet, 1.5rem on desktop'
172+
173+
{{< /grid >}}
174+
157175
*/}}
158176

159177
{{- $items := "" -}}

0 commit comments

Comments
 (0)