scratch-www/src/components/grid/grid.scss

44 lines
871 B
SCSS
Raw Normal View History

@import "../../frameless";
.grid {
display: inline-block;
padding: 12px;
justify-content: space-around;
align-items: center;
.thumbnail {
padding: 12px;
&.project {
$project-width: 200px;
$project-height: 150px;
width: $project-width;
img {
width: $project-width;
height: $project-height;
}
}
&.gallery {
$gallery-width: 200px;
$gallery-height: 118px;
width: $gallery-width;
img {
width: $gallery-width;
height: $gallery-height;
}
}
}
&.column {
flex-direction: column;
justify-content: center;
}
@media only screen and (max-width: $tablet - 1) {
flex-direction: column;
}
}