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:
parent
e315b33284
commit
0e8d42095d
3 changed files with 27 additions and 14 deletions
25
src/components/flow/TestGrid/styles.scss
Normal file
25
src/components/flow/TestGrid/styles.scss
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue