2021-05-27 18:25:00 +02:00
|
|
|
@use '_variables' as *;
|
|
|
|
@use '_mixins' as *;
|
|
|
|
@use '_miniature' as *;
|
2019-02-20 14:56:18 +01:00
|
|
|
|
2017-12-01 18:56:26 +01:00
|
|
|
.video-thumbnail {
|
2019-03-06 15:36:44 +01:00
|
|
|
@include miniature-thumbnail;
|
2021-04-15 13:43:50 +02:00
|
|
|
}
|
2019-02-20 14:56:18 +01:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
.progress-bar {
|
|
|
|
height: 3px;
|
|
|
|
width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
2021-04-28 16:41:07 +02:00
|
|
|
background-color: rgba(0, 0, 0, 0.2);
|
2018-10-05 11:15:06 +02:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
div {
|
|
|
|
height: 100%;
|
|
|
|
background-color: pvar(--mainColor);
|
2018-10-05 11:15:06 +02:00
|
|
|
}
|
2021-04-15 13:43:50 +02:00
|
|
|
}
|
2018-10-05 11:15:06 +02:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
.video-thumbnail-watch-later-overlay,
|
|
|
|
.video-thumbnail-label-overlay,
|
|
|
|
.video-thumbnail-duration-overlay,
|
|
|
|
.video-thumbnail-live-overlay {
|
|
|
|
@include static-thumbnail-overlay;
|
2019-03-06 15:36:44 +01:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
border-radius: 3px;
|
|
|
|
font-size: 12px;
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
line-height: 1.1;
|
|
|
|
z-index: z(miniature);
|
|
|
|
}
|
2020-01-02 13:07:18 +01:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
.video-thumbnail-label-overlay {
|
|
|
|
position: absolute;
|
|
|
|
padding: 0 5px;
|
|
|
|
left: 5px;
|
|
|
|
top: 5px;
|
|
|
|
font-weight: $font-bold;
|
2020-04-11 14:47:13 +02:00
|
|
|
|
2021-04-28 16:41:07 +02:00
|
|
|
&.warning { background-color: #ffa500; }
|
|
|
|
&.danger { background-color: #ff0000; }
|
2021-04-15 13:43:50 +02:00
|
|
|
}
|
2020-04-11 14:47:13 +02:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
.video-thumbnail-duration-overlay,
|
|
|
|
.video-thumbnail-live-overlay {
|
|
|
|
position: absolute;
|
|
|
|
padding: 0 3px;
|
|
|
|
right: 5px;
|
|
|
|
bottom: 5px;
|
|
|
|
}
|
2020-01-02 13:07:18 +01:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
.video-thumbnail-live-overlay {
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
color: #fff;
|
2020-11-13 14:36:30 +01:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
&:not(.live-ended) {
|
|
|
|
background-color: rgba(224, 8, 8, 0.7);
|
2020-10-27 08:45:30 +01:00
|
|
|
}
|
2021-04-15 13:43:50 +02:00
|
|
|
}
|
2020-10-27 08:45:30 +01:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
.video-thumbnail-actions-overlay {
|
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
right: 5px;
|
|
|
|
top: 5px;
|
|
|
|
opacity: 0;
|
2020-01-02 13:07:18 +01:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
div:not(:first-child) {
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
}
|
2020-01-02 13:07:18 +01:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
.video-thumbnail-watch-later-overlay {
|
|
|
|
padding: 3px;
|
2020-01-02 13:07:18 +01:00
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
my-global-icon {
|
2021-04-28 16:41:07 +02:00
|
|
|
@include apply-svg-color(#fff);
|
|
|
|
|
2021-04-15 13:43:50 +02:00
|
|
|
width: 22px;
|
|
|
|
height: 22px;
|
2020-01-02 13:07:18 +01:00
|
|
|
}
|
2017-12-01 18:56:26 +01:00
|
|
|
}
|