This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
SA3/hw1/claudio_maggioni/css/gallery.css

29 lines
444 B
CSS
Raw Normal View History

2019-09-22 20:35:24 +00:00
/* vim: set ts=2 sw=2 et tw=80 */
main {
display: grid;
grid-template-columns: repeat( auto-fill, minmax(200px, 1fr) );
grid-gap: .5rem;
align-items: center;
justify-items: stretch;
}
@media screen and (min-width: 768px) {
max-width: calc(100vw - 20rem);
}
main a {
text-align: center;
}
main h2, main h4 {
grid-column: 1 / -1;
}
main img {
max-width: 200px;
max-height: 200px;
min-width: 80px;
min-height: 80px;
}