aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss
blob: 459539924d337e865843e893e303ea2aa68dd016 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@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);
  }
}

.video-thumbnail-watch-later-overlay,
.video-thumbnail-label-overlay,
.video-thumbnail-duration-overlay,
.video-thumbnail-live-overlay {
  @include static-thumbnail-overlay;

  border-radius: 3px;
  font-size: 12px;
  font-weight: $font-semibold;
  line-height: 1.1;
  z-index: z(miniature);
}

.video-thumbnail-label-overlay {
  position: absolute;
  padding: 0 5px;
  left: 5px;
  top: 5px;
  font-weight: $font-bold;

  &.warning { background-color: #ffa500; }
  &.danger { background-color: #ff0000; }
}

.video-thumbnail-duration-overlay,
.video-thumbnail-live-overlay {
  position: absolute;
  padding: 0 3px;
  right: 5px;
  bottom: 5px;
}

.video-thumbnail-live-overlay {
  font-weight: $font-semibold;
  color: #fff;

  &:not(.live-ended) {
    background-color: rgba(224, 8, 8, 0.7);
  }
}

.video-thumbnail-actions-overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  right: 5px;
  top: 5px;
  opacity: 0;

  div:not(:first-child) {
    margin-top: 2px;
  }
}

.video-thumbnail-watch-later-overlay {
  padding: 3px;

  my-global-icon {
    @include apply-svg-color(#fff);

    width: 22px;
    height: 22px;
  }
}