@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 {
$play-overlay-height: 26px;
$play-overlay-width: 18px;
-@mixin miniature-thumbnail($width: $video-thumbnail-width, $height: $video-thumbnail-height) {
+@mixin miniature-thumbnail {
@include disable-outline;
- display: inline-block;
+ display: flex;
+ flex-direction: column;
position: relative;
border-radius: 3px;
overflow: hidden;
- width: $width;
- height: $height;
+ width: $video-thumbnail-width;
+ height: $video-thumbnail-height;
background-color: #ececec;
transition: filter $play-overlay-transition;
height: inherit;
&.blur-filter {
- filter: blur(5px);
+ filter: blur(20px);
transform : scale(1.03);
}
}
}
+@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});
+ border-radius: 0;
img {
width: 100%;
- height: auto;
+ height: 100%;
}
}
}