Skip to content

Commit

Permalink
Update grid utility classes with new properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Guirec Lefort committed Dec 14, 2020
1 parent d3944e8 commit a50173e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions assets/scss/utils/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,44 @@ $grid-utilities: (
"10": repeat(10, minmax(0, 1fr)),
"11": repeat(11, minmax(0, 1fr)),
"12": repeat(12, minmax(0, 1fr)),
"autofit": repeat(auto-fit, minmax(0, 1fr)),
"none": none,
),
responsive: true,
),
"grid-auto-flow": (
property: grid-auto-flow,
class: grid-flow,
values: (
"col": column,
"col-dense": column dense,
"row": row,
"row-dense": row dense,
),
responsive: true,
),
"grid-auto-columns": (
property: grid-auto-columns,
class: auto-cols,
values: (
"auto": auto,
"min": min-content,
"max": max-content,
"fr": minmax(0, 1fr),
),
responsive: true,
),
"grid-auto-row": (
property: grid-auto-row,
class: auto-rows,
values: (
"auto": auto,
"min": min-content,
"max": max-content,
"fr": minmax(0, 1fr),
),
responsive: true,
),
);

@include generate-utilities($grid-utilities);

0 comments on commit a50173e

Please sign in to comment.