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

122 lines
2.6 KiB
SCSS
Raw Normal View History

@import "../../frameless";
2016-08-08 08:38:32 -04:00
@import "../../colors";
.grid {
display: inline-block;
width: 100%;
$project-width: 220px;
$project-height: 208px;
$gallery-width: 200px;
$gallery-height: 118px;
.flex-row {
margin: 0 auto;
padding: 12px;
width: $cols12;
justify-content: flex-start;
2016-08-23 10:11:18 -04:00
}
.thumbnail {
margin: 6px;
padding: 0;
&.project {
margin-bottom: 16px;
border-radius: 4px;
box-shadow: 0 0 3px $box-shadow-gray;
background-color: $ui-white;
width: $project-width;
height: $project-height;
.thumbnail-image {
margin: 8px auto;
width: 204px;
height: 152px;
2016-08-08 08:38:32 -04:00
img {
margin: 0 auto;
border: 0;
border-radius: 4px;
width: 204px;
height: 152px;
2016-08-08 08:38:32 -04:00
}
}
}
2016-08-08 08:38:32 -04:00
&.gallery {
margin-bottom: 16px;
border-radius: 4px;
box-shadow: 0 0 3px $box-shadow-gray;
background-color: $ui-white;
width: $project-width;
height: 164px;
.thumbnail-image {
margin: 8px auto;
width: 204px;
height: 120px;
2016-08-08 08:38:32 -04:00
img {
border: 0;
border-radius: 4px;
width: 204px;
height: 120px;
2016-08-08 08:38:32 -04:00
}
}
}
.thumbnail-info {
margin: 0 auto;
width: 204px;
.creator-image {
float: left;
2016-08-08 08:38:32 -04:00
img {
margin-right: 8px;
border-radius: 4px;
width: 32px;
height: 32px;
2016-08-08 08:38:32 -04:00
}
}
.thumbnail-title {
float: left;
max-width: 164px;
.thumbnail-creator a {
color: $type-gray;
}
}
}
}
&.column {
flex-direction: column;
justify-content: center;
}
//4 columns
@media only screen and (max-width: $mobile - 1) {
.flex-row {
width: $cols4;
}
}
//6 columns
@media only screen and (min-width: $mobile) and (max-width: $tablet - 1) {
.flex-row {
width: $cols6;
}
}
// 8 columns
@media only screen and (min-width: $tablet) and (max-width: $desktop - 1) {
.flex-row {
width: $cols9;
}
}
}