]>
Commit | Line | Data |
---|---|---|
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; | |
5b0ec7cd | 56 | font-size: 14px; |
3143ae17 | 57 | |
247bbe29 | 58 | .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 | |
247bbe29 C |
68 | .description { |
69 | @include peertube-word-wrap; | |
70 | ||
0f7407d9 C |
71 | margin-top: 10px; |
72 | color: pvar(--greyForegroundColor); | |
73 | } | |
74 | } | |
75 | ||
76 | .miniature:not(.display-as-row) { | |
37a44fc9 | 77 | |
76b8d72e C |
78 | .miniature-name { |
79 | margin-top: 10px; | |
80 | margin-bottom: 5px; | |
81 | } | |
82 | ||
0f7407d9 | 83 | .miniature-thumbnail { |
37a44fc9 C |
84 | @include block-ratio($selector: '::ng-deep a'); |
85 | ||
0f7407d9 C |
86 | margin-top: 10px; |
87 | margin-bottom: 5px; | |
88 | } | |
89 | } | |
90 | ||
91 | .miniature.display-as-row { | |
92 | --rowThumbnailWidth: #{$video-thumbnail-width}; | |
93 | --rowThumbnailHeight: #{$video-thumbnail-height}; | |
94 | ||
95 | display: flex; | |
96 | ||
76b8d72e C |
97 | .miniature-name { |
98 | @include ellipsis-multiline($video-miniature-row-name-font-size, 2); | |
99 | } | |
100 | ||
0f7407d9 | 101 | .miniature-thumbnail { |
27bc9586 C |
102 | @include margin-right(10px); |
103 | ||
247bbe29 C |
104 | min-width: var(--rowThumbnailWidth); |
105 | max-width: var(--rowThumbnailWidth); | |
0f7407d9 | 106 | height: var(--rowThumbnailHeight); |
0f7407d9 C |
107 | } |
108 | } | |
109 | ||
110 | @include on-small-main-col { | |
111 | .miniature.display-as-row { | |
112 | --rowThumbnailWidth: #{$video-thumbnail-medium-width}; | |
113 | --rowThumbnailHeight: #{$video-thumbnail-medium-height}; | |
114 | } | |
115 | } | |
116 | ||
117 | @include on-mobile-main-col { | |
118 | .miniature.display-as-row { | |
119 | --rowThumbnailWidth: #{$video-thumbnail-small-width}; | |
120 | --rowThumbnailHeight: #{$video-thumbnail-small-height}; | |
830b4faf C |
121 | } |
122 | } |