1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed grid

This commit is contained in:
muerwre 2019-07-26 14:23:19 +07:00
parent e315b33284
commit 0e8d42095d
3 changed files with 27 additions and 14 deletions

View file

@ -0,0 +1,25 @@
$cols: $content_width / $cell;
.grid {
//display: grid;
padding: $gap / 2;
margin: 0 (-$gap / 2);
}
.grid_test {
//width: $content_width;
display: grid;
//grid-template-columns: minmax($cell, 1fr);
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
//grid-template-columns: repeat($cols, 1fr);
//grid-template-rows: $cell * 1.2 - 4;
grid-auto-rows: 256px;
grid-auto-flow: row dense;
grid-column-gap: $grid_line;
grid-row-gap: $grid_line;
}
.pad_last {
grid-column-end: $cols + 1;
}