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