scss-library/components/01_Layouts/flexGrid/_flexGrid.scss

17 lines
337 B
SCSS

@mixin RV-FlexGrid($item_width: 300px, $item_height: 300px) {
&__Container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax($item_width, 1fr));
grid-template-rows: repeat(auto-fill, $item_height);
grid-auto-rows: $item_height;
}
&__Item {
@include RV-Alignment;
}
}
.RV-FlexGrid{
@include RV-FlexGrid;
}