Improve dynamic resizing of search and photo rail

This commit is contained in:
Zed
2019-09-19 05:54:19 +02:00
parent 9917a69dc5
commit 7d655c3dd5
4 changed files with 32 additions and 0 deletions

View File

@@ -74,3 +74,23 @@
transition: max-height 0.4s;
}
}
@media(max-width: 600px) {
.photo-rail-grid {
grid-template-columns: repeat(6, 1fr);
}
#photo-rail-grid-toggle:checked ~ .photo-rail-grid {
max-height: 300px;
}
}
@media(max-width: 450px) {
.photo-rail-grid {
grid-template-columns: repeat(4, 1fr);
}
#photo-rail-grid-toggle:checked ~ .photo-rail-grid {
max-height: 450px;
}
}