@import '_mixins';
@mixin miniature-name {
- @include ellipsis-multiline(16px, 2);
+ @include ellipsis-multiline(1.1em, 2);
transition: color 0.2s;
font-size: 16px;
font-weight: $font-semibold;
color: var(--mainForegroundColor);
- margin-top: 5px;
+ margin-top: 10px;
margin-bottom: 5px;
&:hover {
@mixin miniature-thumbnail {
@include disable-outline;
- display: inline-block;
+ display: flex;
+ flex-direction: column;
position: relative;
border-radius: 3px;
overflow: hidden;
}
.video-thumbnail {
- width: calc(100% + 30px);
- height: auto;
- margin: 0 -15px;
+ margin: 0 -15px 10px -15px;
+ width: 100vw;
+ height: calc(100vw / #{$video-thumbnail-ratio});
img {
width: 100%;
- height: auto;
+ height: 100%;
}
}
}
max-height: $font-size * $number-of-lines;
/* Fallback for non-webkit */
font-size: $font-size;
- line-height: $font-size - 0.1;
- -webkit-line-clamp: $number-of-lines;
- -webkit-box-orient: vertical;
+ line-height: $font-size;
overflow: hidden;
text-overflow: ellipsis;
}
$video-miniature-width: 238px;
$video-thumbnail-height: 122px;
$video-thumbnail-width: 223px;
+$video-thumbnail-ratio: $video-thumbnail-width / $video-thumbnail-height;
$theater-bottom-space: 115px;