Refactoring and stripped a feature
This commit is contained in:
parent
7eeaaff40c
commit
1179cfb0ff
@ -1,33 +1,13 @@
|
|||||||
@mixin RV-FlexGrid--sameHeight($-inline: false) {
|
|
||||||
@if $-inline {
|
|
||||||
grid-auto-rows: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
@if not $-inline {
|
|
||||||
&__Container {
|
|
||||||
grid-auto-rows: 1fr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin RV-FlexGrid($item_width: 300px, $item_height: 300px) {
|
@mixin RV-FlexGrid($item_width: 300px, $item_height: 300px) {
|
||||||
&__Container {
|
&__Container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax($item_width, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax($item_width, 1fr));
|
||||||
grid-template-rows: repeat(auto-fill, $item_height);
|
grid-template-rows: repeat(auto-fill, $item_height);
|
||||||
grid-auto-rows: $item_height;
|
grid-auto-rows: $item_height;
|
||||||
|
|
||||||
&--sameHeight {
|
|
||||||
@include RV-FlexGrid--sameHeight(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
&--spacing {
|
|
||||||
gap: 10px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__Item {
|
&__Item {
|
||||||
@include RV-AlignContent;
|
@include RV-Alignment;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user