Prefix configuable
This commit is contained in:
		@@ -1,20 +1,20 @@
 | 
			
		||||
@mixin RV-FlexGrid__Container($-item_width: 300px, $-item_height: 300px) {
 | 
			
		||||
	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);
 | 
			
		||||
    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);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@mixin RV-FlexGrid($-item_width: 300px, $-item_height: 300px) {
 | 
			
		||||
	&__Container {
 | 
			
		||||
		@include RV-FlexGrid__Container($-item_width, $-item_height);
 | 
			
		||||
	}
 | 
			
		||||
@mixin RV-FlexGrid($-item_width: 300px, $-item_height: 300px, $-prefix: '&') {
 | 
			
		||||
    #{$-prefix}__Container {
 | 
			
		||||
        @include RV-FlexGrid__Container($-item_width, $-item_height);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
	&__Item {
 | 
			
		||||
		@include RV-Alignment;
 | 
			
		||||
	}
 | 
			
		||||
    #{$-prefix}__Item {
 | 
			
		||||
        @include RV-Alignment;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.RV-FlexGrid{
 | 
			
		||||
	@include RV-FlexGrid;
 | 
			
		||||
}
 | 
			
		||||
.RV-FlexGrid {
 | 
			
		||||
    @include RV-FlexGrid;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user