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

68 lines
1.2 KiB
SCSS
Raw Normal View History

@import "../../colors";
2015-09-08 14:56:28 -04:00
.thumbnail {
.thumbnail-image {
2015-09-08 14:56:28 -04:00
display: block;
}
.thumbnail-image img {
2015-09-08 14:56:28 -04:00
margin-bottom: 2px;
border: 1px solid $ui-border;
2015-09-08 14:56:28 -04:00
}
$extras: ".thumbnail-creator, .thumbnail-loves, .thumbnail-remixes";
.thumbnail-title,
#{$extras} {
2015-09-08 14:56:28 -04:00
line-height: normal;
word-wrap: break-word;
a {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2015-09-08 14:56:28 -04:00
}
.thumbnail-title {
margin-bottom: 1px;
font-size: .9230em;
font-weight: 800;
a {
display: block;
}
}
#{$extras} {
color: $type-gray;
2015-09-24 19:27:50 -04:00
font-size: .8462em;
a {
display: inline;
}
2015-09-08 14:56:28 -04:00
}
&.project {
$project-width: 144px;
$project-height: 108px;
width: $project-width;
img {
width: $project-width;
height: $project-height;
}
}
&.gallery {
$gallery-width: 170px;
$gallery-height: 100px;
width: $gallery-width;
img {
width: $gallery-width;
height: $gallery-height;
}
}
}