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

fixed mobile cards aspect ratio

This commit is contained in:
Fedor Katurov 2021-06-25 14:33:45 +07:00
parent 6f9c380dcd
commit dd57fe7ac2

View file

@ -59,13 +59,15 @@ $cols: $content_width / $cell;
@media (max-width: $cell_mobile) {
// rework stamp, so it will be shown as smaller one on mobiles
grid-template-columns: repeat(auto-fill, minmax(45vw, 1fr));
grid-template-columns: repeat(auto-fill, minmax(calc(50vw - 20px), 1fr));
grid-template-rows: calc(100vw - 10px) auto 50vw;
grid-auto-rows: 50vw;
}
@media (max-width: ($fluid_cell + 5) * 1.5 + 20) {
grid-template-columns: repeat(auto-fill, minmax(45vw, 1fr));
grid-template-columns: repeat(auto-fill, minmax(calc(50vw - 20px), 1fr));
grid-template-rows: calc(100vw - 10px) auto 50vw;
grid-auto-rows: 50vw;
}
}