]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/video/video-thumbnail.component.scss
Provide z-index centralisation for lower components
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-thumbnail.component.scss
1 @import '_variables';
2 @import '_mixins';
3 @import '_miniature';
4
5 .video-thumbnail {
6 @include miniature-thumbnail;
7
8 .progress-bar {
9 height: 3px;
10 width: 100%;
11 position: absolute;
12 bottom: 0;
13 background-color: rgba(0, 0, 0, 0.20);
14
15 div {
16 height: 100%;
17 background-color: var(--mainColor);
18 }
19 }
20
21 .video-thumbnail-watch-later-overlay,
22 .video-thumbnail-duration-overlay {
23 @include static-thumbnail-overlay;
24
25 border-radius: 3px;
26 font-size: 12px;
27 font-weight: $font-bold;
28 z-index: z(miniature);
29 }
30
31 .video-thumbnail-duration-overlay {
32 position: absolute;
33 padding: 0 5px;
34 right: 5px;
35 bottom: 5px;
36 }
37
38 .video-thumbnail-actions-overlay {
39 position: absolute;
40 display: flex;
41 flex-direction: column;
42 right: 5px;
43 top: 5px;
44 opacity: 0;
45
46 div:not(:first-child) {
47 margin-top: 2px;
48 }
49
50 .video-thumbnail-watch-later-overlay {
51 padding: 3px;
52
53 my-global-icon {
54 width: 22px;
55 height: 22px;
56
57 @include apply-svg-color(#fff);
58 }
59 }
60 }
61 }