2020-08-23 19:20:11 +02:00
|
|
|
@mixin RV-FlexGrid__Container($-item_width: 300px, $-item_height: 300px) {
|
2020-12-27 16:00:24 +01:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax($-item_width, 1fr));
|
|
|
|
grid-template-rows: repeat(auto-fill, minmax($-item_height, 1fr));
|
|
|
|
grid-auto-rows: minmax($-item_height, 1fr);
|
2020-08-23 19:20:11 +02:00
|
|
|
}
|
|
|
|
|
2020-12-27 16:00:24 +01:00
|
|
|
@mixin RV-FlexGrid($-item_width: 300px, $-item_height: 300px, $-prefix: '&') {
|
|
|
|
#{$-prefix}__Container {
|
|
|
|
@include RV-FlexGrid__Container($-item_width, $-item_height);
|
|
|
|
}
|
2020-08-21 16:50:22 +02:00
|
|
|
|
2020-12-27 16:00:24 +01:00
|
|
|
#{$-prefix}__Item {
|
|
|
|
@include RV-Alignment;
|
|
|
|
}
|
2020-08-21 17:20:29 +02:00
|
|
|
}
|
|
|
|
|
2020-12-27 16:00:24 +01:00
|
|
|
.RV-FlexGrid {
|
|
|
|
@include RV-FlexGrid;
|
|
|
|
}
|