client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss
@use '_variables' as *;
@use '_mixins' as *;
@use '_miniature' as *;
.video-thumbnail {
@include miniature-thumbnail;
}
.progress-bar {
height: 3px;
width: 100%;
position: absolute;
bottom: 0;
background-color: rgba(0, 0, 0, 0.2);
div {
height: 100%;
background-color: pvar(--mainColor);
}
}
.watch-icon-overlay,
.label-overlay,
.duration-overlay,
.live-overlay {
border-radius: 3px;
font-size: 12px;
font-weight: $font-semibold;
line-height: 1.1;
z-index: z(miniature);
@include static-thumbnail-overlay;
}
.label-overlay {
position: absolute;
padding: 0 5px;
left: 5px;
top: 5px;
font-weight: $font-bold;
&.warning { background-color: #ffa500; }
&.danger { background-color: #ff0000; }
}
.duration-overlay,
.live-overlay {
position: absolute;
padding: 0 3px;
right: 5px;
bottom: 5px;
}
.live-overlay {
font-weight: $font-semibold;
color: #fff;
&:not(.live-ended) {
background-color: rgba(224, 8, 8, 0.7);
}
}
.actions-overlay {
position: absolute;
display: flex;
flex-direction: column;
right: 5px;
top: 5px;
opacity: 0;
div:not(:first-child) {
margin-top: 2px;
}
}
.watch-icon-overlay {
padding: 3px;
my-global-icon {
width: 22px;
height: 22px;
@include apply-svg-color(#fff);
}
}