ad221d6ed64a5c4ecf7641b7747578c0348b4af9
[oweals/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: 1;
29   }
30
31   .video-thumbnail-duration-overlay {
32     position: absolute;
33     padding: 0 5px;
34     right: 5px;
35     bottom: 5px;
36   }
37
38   &:focus,
39   &:hover {
40     .video-thumbnail-actions-overlay {
41       opacity: 1;
42     }
43   }
44
45   .video-thumbnail-actions-overlay {
46     position: absolute;
47     display: flex;
48     flex-direction: column;
49     right: 5px;
50     top: 5px;
51     opacity: 0;
52
53     div:not(:first-child) {
54       margin-top: 2px;
55     }
56
57     .video-thumbnail-watch-later-overlay {
58       padding: 3px;
59
60       my-global-icon {
61         width: 22px;
62         height: 22px;
63
64         @include apply-svg-color(#fff);
65       }
66     }
67   }
68 }