Area 51 👽
2
3
4
5
6
7
8
9
10
11
12
// grid map (cols, rows, gap, col-gap, row-gap)
$grid: (
cols: repeat(5, 1fr) 2fr,
gap: 10px
);
// create grid
.grid {
@include grid($grid);
}
// set column, row and spans
.cell {
@include grid-column(1, 2); // column, col-span
@include grid-row(1, 2); // row, row-span
}
// set column, row and spans in one include
.cell {
@include grid-cell(1, 2, 1, 2); // column, col-span, row, row-span
}
// set column, row and spans using area keys
// keys: (column, col-span, row, row-span)
$grid-areas: (
area-51 : (1, 2, 1, 2),
studio-54: (3, 2, 1, 2)
);
.cell {
@include grid-area(area-51);
}
.cell {
@include grid-area(studio-54);
}