]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.scss
Move to sass module
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-video-playlist / video-playlist-miniature.component.scss
CommitLineData
8cbc40b2
C
1@use '_variables' as *;
2@use '_mixins' as *;
3@use '_miniature' as *;
830b4faf
C
4
5.miniature {
6 display: inline-block;
0f7407d9 7 width: 100%;
830b4faf 8
931d3430 9 &.no-videos:not(.to-manage) {
f0a39880
C
10 a {
11 cursor: default !important;
12 }
13 }
14
bce47964 15 &.to-manage,
f0a39880 16 &.no-videos {
bce47964
C
17 .play-overlay {
18 display: none;
19 }
f0a39880 20 }
0f7407d9 21}
f0a39880 22
0f7407d9
C
23.miniature-thumbnail {
24 @include miniature-thumbnail;
25
26 .miniature-playlist-info-overlay {
27 @include static-thumbnail-overlay;
28
29 position: absolute;
30 right: 0;
31 bottom: 0;
32 height: 100%;
33 padding: 0 10px;
34 display: flex;
35 align-items: center;
36 font-size: 14px;
37 font-weight: $font-semibold;
830b4faf 38 }
0f7407d9 39}
830b4faf 40
0f7407d9 41.miniature-info {
3143ae17 42
0f7407d9
C
43 .miniature-name {
44 @include miniature-name;
3143ae17 45
d3de2555
C
46 margin-top: 10px;
47 margin-bottom: 5px;
0f7407d9 48 }
bce47964 49
0f7407d9
C
50 .by {
51 @include disable-default-a-behaviour;
bce47964 52
0f7407d9
C
53 display: block;
54 color: pvar(--greyForegroundColor);
55 }
bce47964 56
0f7407d9
C
57 .privacy-date {
58 margin-top: 5px;
d3de2555 59 font-size: 13px;
3143ae17 60
0f7407d9 61 .video-info-privacy {
0f7407d9 62 font-weight: $font-semibold;
bce47964 63
0f7407d9
C
64 &::after {
65 content: '-';
66 margin: 0 3px;
bce47964
C
67 }
68 }
0f7407d9 69 }
bce47964 70
0f7407d9
C
71 .video-info-description {
72 margin-top: 10px;
73 color: pvar(--greyForegroundColor);
74 }
75}
76
77.miniature:not(.display-as-row) {
37a44fc9 78
0f7407d9 79 .miniature-thumbnail {
37a44fc9
C
80 @include block-ratio($selector: '::ng-deep a');
81
0f7407d9
C
82 margin-top: 10px;
83 margin-bottom: 5px;
84 }
85}
86
87.miniature.display-as-row {
88 --rowThumbnailWidth: #{$video-thumbnail-width};
89 --rowThumbnailHeight: #{$video-thumbnail-height};
90
91 display: flex;
92
93 .miniature-thumbnail {
27bc9586
C
94 @include margin-right(10px);
95
0f7407d9
C
96 width: var(--rowThumbnailWidth);
97 height: var(--rowThumbnailHeight);
0f7407d9
C
98 }
99}
100
101@include on-small-main-col {
102 .miniature.display-as-row {
103 --rowThumbnailWidth: #{$video-thumbnail-medium-width};
104 --rowThumbnailHeight: #{$video-thumbnail-medium-height};
105 }
106}
107
108@include on-mobile-main-col {
109 .miniature.display-as-row {
110 --rowThumbnailWidth: #{$video-thumbnail-small-width};
111 --rowThumbnailHeight: #{$video-thumbnail-small-height};
830b4faf
C
112 }
113}