Skip to content

Commit 067c585

Browse files
committed
Update consolidated snippets
1 parent 05b1bce commit 067c585

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

public/consolidated/all_snippets.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,27 @@
119119
"language": "css",
120120
"categoryName": "Layouts",
121121
"snippets": [
122+
{
123+
"title": "Grid layout",
124+
"description": "Equal sized items in a responsive grid",
125+
"code": [
126+
".grid-container {",
127+
" display: grid",
128+
" grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));",
129+
"/* Explanation:",
130+
"- `auto-fit`: Automatically fits as many columns as possible within the container.",
131+
"- `minmax(250px, 1fr)`: Defines a minimum column size of 250px and a maximum size of 1fr (fraction of available space).",
132+
"*/",
133+
"}",
134+
""
135+
],
136+
"tags": [
137+
"css",
138+
"layout",
139+
"grid"
140+
],
141+
"author": "xshubhamg"
142+
},
122143
{
123144
"title": "Sticky Footer",
124145
"description": "Ensures the footer always stays at the bottom of the page.",

0 commit comments

Comments
 (0)