]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss
Fix report modal error
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-thumbnail / video-thumbnail.component.scss
CommitLineData
8cbc40b2
C
1@use '_variables' as *;
2@use '_mixins' as *;
3@use '_miniature' as *;
1aabcae7 4
202f6b6c 5.video-thumbnail {
830b4faf 6 @include miniature-thumbnail;
f1ac6348 7}
1aabcae7 8
f1ac6348
C
9.progress-bar {
10 height: 3px;
11 width: 100%;
12 position: absolute;
13 bottom: 0;
931d3430 14 background-color: rgba(0, 0, 0, 0.2);
6e46de09 15
f1ac6348
C
16 div {
17 height: 100%;
18 background-color: pvar(--mainColor);
6e46de09 19 }
f1ac6348 20}
6e46de09 21
f1ac6348
C
22.video-thumbnail-watch-later-overlay,
23.video-thumbnail-label-overlay,
24.video-thumbnail-duration-overlay,
25.video-thumbnail-live-overlay {
26 @include static-thumbnail-overlay;
830b4faf 27
f1ac6348
C
28 border-radius: 3px;
29 font-size: 12px;
30 font-weight: $font-semibold;
31 line-height: 1.1;
32 z-index: z(miniature);
33}
29128b2f 34
f1ac6348
C
35.video-thumbnail-label-overlay {
36 position: absolute;
37 padding: 0 5px;
38 left: 5px;
39 top: 5px;
40 font-weight: $font-bold;
62eacb42 41
931d3430
C
42 &.warning { background-color: #ffa500; }
43 &.danger { background-color: #ff0000; }
f1ac6348 44}
62eacb42 45
f1ac6348
C
46.video-thumbnail-duration-overlay,
47.video-thumbnail-live-overlay {
48 position: absolute;
49 padding: 0 3px;
50 right: 5px;
51 bottom: 5px;
52}
29128b2f 53
f1ac6348
C
54.video-thumbnail-live-overlay {
55 font-weight: $font-semibold;
56 color: #fff;
5c0904fc 57
f1ac6348
C
58 &:not(.live-ended) {
59 background-color: rgba(224, 8, 8, 0.7);
da0310f8 60 }
f1ac6348 61}
da0310f8 62
f1ac6348
C
63.video-thumbnail-actions-overlay {
64 position: absolute;
65 display: flex;
66 flex-direction: column;
67 right: 5px;
68 top: 5px;
69 opacity: 0;
29128b2f 70
f1ac6348
C
71 div:not(:first-child) {
72 margin-top: 2px;
73 }
74}
29128b2f 75
f1ac6348
C
76.video-thumbnail-watch-later-overlay {
77 padding: 3px;
29128b2f 78
f1ac6348 79 my-global-icon {
931d3430
C
80 @include apply-svg-color(#fff);
81
f1ac6348
C
82 width: 22px;
83 height: 22px;
29128b2f 84 }
202f6b6c 85}