]>
Commit | Line | Data |
---|---|---|
8cbc40b2 C |
1 | @use '_variables' as *; |
2 | @use '_mixins' as *; | |
3 | @use '_miniature' as *; | |
63c4db6d | 4 | |
adcf9212 | 5 | $more-button-width: 40px; |
743f023c | 6 | |
0f7407d9 C |
7 | .video-miniature-name { |
8 | @include miniature-name; | |
9 | } | |
501bc6c2 | 10 | |
0f7407d9 C |
11 | .video-miniature-information { |
12 | width: calc(100% - #{$more-button-width}); | |
13 | } | |
501bc6c2 | 14 | |
746018f6 | 15 | my-actor-avatar { |
27bc9586 | 16 | @include margin(10px, 10px, 0, 0); |
f1ac6348 | 17 | } |
cf78883c | 18 | |
0f7407d9 C |
19 | .video-miniature-created-at-views { |
20 | font-size: 13px; | |
21 | } | |
501bc6c2 | 22 | |
0f7407d9 C |
23 | .video-miniature-account, |
24 | .video-miniature-channel { | |
25 | @include disable-default-a-behaviour; | |
26 | @include ellipsis; | |
33253c1a | 27 | |
0f7407d9 C |
28 | display: block; |
29 | font-size: 13px; | |
30 | color: pvar(--greyForegroundColor); | |
00a44645 | 31 | |
0f7407d9 C |
32 | &:hover { |
33 | color: $grey-foreground-hover-color; | |
34 | } | |
35 | } | |
adcf9212 | 36 | |
0f7407d9 C |
37 | .video-info-privacy, |
38 | .video-info-blocked .blocked-label, | |
39 | .video-info-nsfw { | |
40 | font-weight: $font-semibold; | |
41 | } | |
03e12d7c | 42 | |
0f7407d9 | 43 | .video-info-blocked { |
931d3430 | 44 | color: #ff0000; |
03e12d7c | 45 | |
0f7407d9 C |
46 | .blocked-reason::before { |
47 | content: ' - '; | |
48 | } | |
49 | } | |
0f4905e1 | 50 | |
0f7407d9 | 51 | .video-info-nsfw { |
931d3430 | 52 | color: #ff0000; |
0f7407d9 | 53 | } |
e2409062 | 54 | |
0f7407d9 C |
55 | .video-actions { |
56 | width: $more-button-width; | |
57 | height: 30px; | |
e2409062 | 58 | |
0f7407d9 C |
59 | ::ng-deep .dropdown-root:not(.show) { |
60 | opacity: 0; | |
61 | } | |
e2409062 | 62 | |
0f7407d9 C |
63 | ::ng-deep .playlist-dropdown.show + my-action-dropdown .dropdown-root { |
64 | opacity: 1; | |
65 | } | |
e2409062 | 66 | |
0f7407d9 C |
67 | ::ng-deep .more-icon { |
68 | opacity: .6; | |
3a0fb65c | 69 | |
0f7407d9 C |
70 | &:hover { |
71 | opacity: 1; | |
72 | } | |
73 | } | |
74 | } | |
3a0fb65c | 75 | |
f1ac6348 C |
76 | .video-miniature:hover { |
77 | ::ng-deep .video-thumbnail-actions-overlay, | |
78 | .video-actions ::ng-deep .dropdown-root { | |
0f7407d9 C |
79 | opacity: 1 !important; |
80 | } | |
81 | } | |
3a0fb65c | 82 | |
0f7407d9 C |
83 | // Grid mode |
84 | // Takes all the width on mobile | |
85 | .video-miniature:not(.display-as-row) { | |
86 | display: flex; | |
87 | flex-direction: column; | |
88 | padding-bottom: $video-miniature-margin-bottom; | |
89 | width: 100%; | |
3a0fb65c | 90 | |
0f7407d9 | 91 | my-video-thumbnail { |
cdeddff1 | 92 | @include block-ratio($selector: '::ng-deep .video-thumbnail'); |
0f7407d9 | 93 | } |
3fbba1d2 | 94 | |
0f7407d9 C |
95 | .video-bottom { |
96 | display: flex; | |
97 | width: 100%; | |
66615377 | 98 | min-width: 1px; |
0f7407d9 | 99 | } |
3a0fb65c | 100 | |
0f7407d9 C |
101 | .video-miniature-name { |
102 | margin-top: 10px; | |
103 | margin-bottom: 5px; | |
104 | } | |
0f4905e1 | 105 | |
0f7407d9 C |
106 | .video-miniature-created-at-views { |
107 | display: block; | |
3a0fb65c C |
108 | } |
109 | ||
0f7407d9 C |
110 | .video-actions { |
111 | margin-top: 3px; | |
3fbba1d2 RK |
112 | } |
113 | ||
0f7407d9 | 114 | @media screen and (max-width: $small-view) { |
e66883b3 | 115 | width: 100%; |
0f7407d9 C |
116 | margin-bottom: 25px; |
117 | ||
118 | .video-miniature-information { | |
119 | margin: 0 10px; | |
120 | ||
121 | width: 100%; | |
122 | text-align: left; | |
123 | } | |
e66883b3 | 124 | |
0f7407d9 C |
125 | .video-actions { |
126 | margin: 0; | |
127 | top: -3px; | |
e66883b3 | 128 | |
0f7407d9 C |
129 | ::ng-deep .dropdown-root { |
130 | opacity: 1 !important; | |
e66883b3 RK |
131 | } |
132 | } | |
133 | ||
0f7407d9 C |
134 | ::ng-deep .video-thumbnail { |
135 | border-radius: 0; | |
e66883b3 RK |
136 | } |
137 | } | |
0f7407d9 C |
138 | } |
139 | ||
140 | .video-miniature.display-as-row { | |
141 | --rowThumbnailWidth: #{$video-thumbnail-width}; | |
142 | --rowThumbnailHeight: #{$video-thumbnail-height}; | |
143 | ||
144 | display: flex; | |
145 | flex-direction: row; | |
e66883b3 | 146 | |
0f7407d9 | 147 | .video-bottom { |
bf64ed41 | 148 | display: flex; |
66615377 | 149 | min-width: 1px; |
0f7407d9 | 150 | } |
e2409062 | 151 | |
0f7407d9 | 152 | // We don't display avatar in row mode |
f1ac6348 | 153 | .channel-avatar { |
0f7407d9 C |
154 | display: none; |
155 | } | |
e2409062 | 156 | |
0f7407d9 | 157 | my-video-thumbnail { |
27bc9586 C |
158 | @include margin-right(10px); |
159 | ||
0f7407d9 C |
160 | min-width: var(--rowThumbnailWidth); |
161 | max-width: var(--rowThumbnailWidth); | |
162 | height: var(--rowThumbnailHeight); | |
0f7407d9 | 163 | } |
e2409062 | 164 | |
0f7407d9 | 165 | .video-miniature-name { |
4429a4a6 | 166 | @include ellipsis-multiline($video-miniature-row-name-font-size, 2); |
0f7407d9 C |
167 | } |
168 | ||
169 | .video-miniature-created-at-views, | |
170 | .video-miniature-account, | |
171 | .video-miniature-channel { | |
4429a4a6 | 172 | font-size: $video-miniature-row-info-font-size; |
0f7407d9 | 173 | } |
e2409062 | 174 | |
0f7407d9 C |
175 | .video-actions { |
176 | margin-top: -3px; | |
177 | } | |
178 | } | |
e2409062 | 179 | |
0f7407d9 C |
180 | @include on-small-main-col { |
181 | .video-miniature.display-as-row { | |
182 | --rowThumbnailWidth: #{$video-thumbnail-medium-width}; | |
183 | --rowThumbnailHeight: #{$video-thumbnail-medium-height}; | |
184 | } | |
185 | } | |
8dfceec4 | 186 | |
0f7407d9 C |
187 | @include on-mobile-main-col { |
188 | .video-miniature.display-as-row { | |
189 | --rowThumbnailWidth: #{$video-thumbnail-small-width}; | |
190 | --rowThumbnailHeight: #{$video-thumbnail-small-height}; | |
191 | ||
192 | .video-miniature-name { | |
4429a4a6 | 193 | font-size: $video-miniature-row-info-font-size; |
0f7407d9 C |
194 | } |
195 | ||
196 | .video-miniature-created-at-views, | |
197 | .video-miniature-account, | |
198 | .video-miniature-channel { | |
4429a4a6 | 199 | font-size: $video-miniature-row-mobile-info-font-size; |
e2409062 | 200 | } |
501bc6c2 C |
201 | } |
202 | } |