]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.scss
Add more when deleting a video
[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;
0f7407d9 45 }
bce47964 46
0f7407d9
C
47 .by {
48 @include disable-default-a-behaviour;
bce47964 49
0f7407d9
C
50 display: block;
51 color: pvar(--greyForegroundColor);
52 }
bce47964 53
0f7407d9
C
54 .privacy-date {
55 margin-top: 5px;
d3de2555 56 font-size: 13px;
3143ae17 57
0f7407d9 58 .video-info-privacy {
0f7407d9 59 font-weight: $font-semibold;
bce47964 60
0f7407d9
C
61 &::after {
62 content: '-';
63 margin: 0 3px;
bce47964
C
64 }
65 }
0f7407d9 66 }
bce47964 67
0f7407d9
C
68 .video-info-description {
69 margin-top: 10px;
70 color: pvar(--greyForegroundColor);
71 }
72}
73
74.miniature:not(.display-as-row) {
37a44fc9 75
76b8d72e
C
76 .miniature-name {
77 margin-top: 10px;
78 margin-bottom: 5px;
79 }
80
0f7407d9 81 .miniature-thumbnail {
37a44fc9
C
82 @include block-ratio($selector: '::ng-deep a');
83
0f7407d9
C
84 margin-top: 10px;
85 margin-bottom: 5px;
86 }
87}
88
89.miniature.display-as-row {
90 --rowThumbnailWidth: #{$video-thumbnail-width};
91 --rowThumbnailHeight: #{$video-thumbnail-height};
92
93 display: flex;
94
76b8d72e
C
95 .miniature-name {
96 @include ellipsis-multiline($video-miniature-row-name-font-size, 2);
97 }
98
0f7407d9 99 .miniature-thumbnail {
27bc9586
C
100 @include margin-right(10px);
101
0f7407d9
C
102 width: var(--rowThumbnailWidth);
103 height: var(--rowThumbnailHeight);
0f7407d9
C
104 }
105}
106
107@include on-small-main-col {
108 .miniature.display-as-row {
109 --rowThumbnailWidth: #{$video-thumbnail-medium-width};
110 --rowThumbnailHeight: #{$video-thumbnail-medium-height};
111 }
112}
113
114@include on-mobile-main-col {
115 .miniature.display-as-row {
116 --rowThumbnailWidth: #{$video-thumbnail-small-width};
117 --rowThumbnailHeight: #{$video-thumbnail-small-height};
830b4faf
C
118 }
119}