i'm trying to build a css layout grid, i'm usig the grid shorthand proerty in this way:
body{
grid:
[row-one] "grid-col-1 grid-col-1" 1fr [row-one-end]
/ 1fr 1fr;
}
now, i'm using only the fr unit so i decided to do in this way:
@mixin grid-template($row,$col){
grid: repeat($row, 1fr) / repeat($col,1fr)
}
then in the body css i have:
@include grid-template(1,2);
is it a correct approach? and how can use the -ms- prefix? something like
@mixin grid-template($row,$col){
grid: repeat($row, 1fr) / repeat($col,1fr)
-ms-grid: repeat($row, 1fr) / repeat($col,1fr)
}
would work? thanks