@import '_mixins';
@mixin miniature-name {
- @include ellipsis-multiline(
- $font-size: 1rem,
- $line-height: 1,
- $lines-to-show: 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;
right: 0;
bottom: 0;
- width: $video-thumbnail-width;
- height: $video-thumbnail-height;
+ width: inherit;
+ height: inherit;
opacity: 0;
background-color: rgba(0, 0, 0, 0.7);
}
img {
- width: $video-thumbnail-width;
- height: $video-thumbnail-height;
+ width: inherit;
+ height: inherit;
&.blur-filter {
filter: blur(5px);
}
}
+@mixin thumbnail-size-component ($width, $height) {
+ /deep/ .video-thumbnail {
+ width: $width;
+ height: $height;
+ }
+}
+
@mixin static-thumbnail-overlay {
display: inline-block;
background-color: rgba(0, 0, 0, 0.7);
.video-miniature-information {
width: 100% !important;
+ text-align: left;
span {
width: 100%;
}
.video-thumbnail {
- width: 100%;
- height: auto;
+ margin: 0 -15px 10px -15px;
+ width: 100vw;
+ height: calc(100vw / #{$video-thumbnail-ratio});
img {
width: 100%;
- height: auto;
+ height: 100%;
}
}
}