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