]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-watch.component.scss
Fix client error logging
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.scss
1 @import '_variables';
2 @import '_mixins';
3
4 #video-element-wrapper {
5 background-color: #000;
6 display: flex;
7 justify-content: center;
8
9 /deep/ .video-js {
10 width: 888px;
11 height: 500px;
12
13 @media screen and (max-width: 600px) {
14 width: 100vw;
15 height: calc(100vw / 1.7); // 16/9
16 }
17
18 // VideoJS create an inner video player
19 video {
20 outline: 0;
21 position: relative !important;
22 }
23 }
24
25 /deep/ .video-js.vjs-theater-enabled {
26 width: 100%;
27 height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
28 }
29 }
30
31 .alert {
32 text-align: center;
33 }
34
35 #video-not-found {
36 height: 300px;
37 line-height: 300px;
38 margin-top: 50px;
39 text-align: center;
40 font-weight: $font-semibold;
41 font-size: 15px;
42 }
43
44 .video-bottom {
45 margin-top: 40px;
46 display: flex;
47
48 .video-info {
49 flex-grow: 1;
50 margin-right: 40px;
51 // Set min width for flex item
52 min-width: 1px;
53
54 .video-info-first-row {
55 display: flex;
56
57 & > div:first-child {
58 flex-grow: 1;
59 }
60
61 .video-info-name {
62 margin-right: 30px;
63 min-height: 40px; // Align with the action buttons
64 font-size: 27px;
65 font-weight: $font-semibold;
66 flex-grow: 1;
67 }
68
69 .video-info-date-views {
70 font-size: 16px;
71 margin-bottom: 10px;
72 flex-grow: 1;
73 }
74
75 .video-info-channel {
76 font-weight: $font-semibold;
77 font-size: 15px;
78
79 a {
80 @include disable-default-a-behaviour;
81
82 color: #000;
83
84 &:hover {
85 opacity: 0.8;
86 }
87
88 img {
89 @include avatar(18px);
90
91 margin: -2px 2px 0 5px;
92 }
93 }
94
95 my-help {
96 display: inline-block;
97 }
98 }
99
100 .video-info-by a {
101 @include disable-default-a-behaviour;
102
103 display: inline;
104 align-items: center;
105 font-size: 13px;
106 color: #000;
107
108 span:hover {
109 opacity: 0.8;
110 }
111
112 img {
113 @include avatar(18px);
114
115 margin-top: -2px;
116 margin-left: 7px;
117 }
118 }
119
120 my-video-feed {
121 margin-left: 5px;
122 margin-top: 1px;
123 }
124
125 .video-actions-rates {
126 display: flex;
127 flex-direction: column;
128 align-items: flex-end;
129
130 .video-actions {
131 height: 40px; // Align with the title
132 display: flex;
133 align-items: center;
134
135 .action-button:not(:first-child), .action-more {
136 margin-left: 10px;
137 }
138
139 .action-button {
140 @include peertube-button;
141 @include grey-button;
142
143 font-size: 15px;
144 font-weight: $font-semibold;
145 display: inline-block;
146 padding: 0 10px 0 10px;
147 white-space: nowrap;
148
149 .icon {
150 @include icon(21px);
151
152 position: relative;
153 top: -2px;
154
155 &.icon-like {
156 background-image: url('../../../assets/images/video/like-grey.svg');
157 }
158
159 &.icon-dislike {
160 background-image: url('../../../assets/images/video/dislike-grey.svg');
161 }
162
163 &.icon-support {
164 background-image: url('../../../assets/images/video/heart.svg');
165 }
166
167 &.icon-share {
168 background-image: url('../../../assets/images/video/share.svg');
169 }
170
171 &.icon-more {
172 background-image: url('../../../assets/images/video/more.svg');
173 top: -1px;
174 }
175 }
176
177 .icon-text {
178 margin-left: 3px;
179 }
180
181 &.action-button-like.activated {
182 background-color: #39CC0B;
183
184 .icon-like {
185 background-image: url('../../../assets/images/video/like-white.svg');
186 }
187 }
188
189 &.action-button-dislike.activated {
190 background-color: #FF0000;
191
192 .icon-dislike {
193 background-image: url('../../../assets/images/video/dislike-white.svg');
194 }
195 }
196 }
197
198 .action-more {
199 display: inline-block;
200
201 .dropdown-menu .dropdown-item {
202 padding: 6px 24px;
203
204 .icon {
205 @include icon(24px);
206
207 margin-right: 10px;
208 position: relative;
209 top: -1px;
210
211 &.icon-download {
212 background-image: url('../../../assets/images/video/download-black.svg');
213 }
214
215 &.icon-edit {
216 background-image: url('../../../assets/images/global/edit-black.svg');
217 }
218
219 &.icon-alert {
220 background-image: url('../../../assets/images/video/alert.svg');
221 }
222
223 &.icon-blacklist {
224 background-image: url('../../../assets/images/video/blacklist.svg');
225 }
226 }
227 }
228 }
229 }
230
231 .video-info-likes-dislikes-bar {
232 height: 5px;
233 width: 186px;
234 background-color: #E5E5E5;
235 margin-top: 25px;
236
237 .likes-bar {
238 height: 100%;
239 background-color: #39CC0B;
240 }
241 }
242 }
243 }
244
245 .video-info-description {
246 margin: 20px 0;
247 font-size: 15px;
248
249 .video-info-description-html {
250 @include peertube-word-wrap;
251 }
252
253 .glyphicon, .description-loading {
254 margin-left: 3px;
255 }
256
257 .description-loading {
258 display: inline-block;
259 }
260
261 .video-info-description-more {
262 cursor: pointer;
263 font-weight: $font-semibold;
264 color: #585858;
265 font-size: 14px;
266
267 .glyphicon {
268 position: relative;
269 top: 2px;
270 }
271 }
272 }
273
274 .video-attributes .video-attribute {
275 font-size: 13px;
276 display: block;
277 margin-bottom: 12px;
278
279 .video-attribute-label {
280 width: 86px;
281 display: inline-block;
282 color: #585858;
283 font-weight: $font-bold;
284 }
285 }
286 }
287
288 .other-videos {
289 padding-left: 1em;
290
291 .title-page {
292 margin-top: 0;
293 }
294
295 /deep/ .video-miniature {
296 display: flex;
297 height: 100%;
298 margin-bottom: 20px;
299 flex-wrap: wrap;
300
301 .video-miniature-information {
302 margin-left: 10px;
303 flex-grow: 1;
304 }
305 }
306 }
307 }
308
309 // If the view is not expanded, take into account the menu
310 .privacy-concerns {
311 width: calc(100% - #{$menu-width});
312 }
313
314 :host-context(.expanded) {
315 .privacy-concerns {
316 width: 100%;
317 }
318 }
319
320 .privacy-concerns {
321 position: fixed;
322 bottom: 0;
323
324 padding: 5px 15px;
325
326 display: flex;
327 align-items: center;
328 justify-content: flex-start;
329 background-color: rgba(0, 0, 0, 0.9);
330 color: #fff;
331
332 .privacy-concerns-text {
333 margin: 0 5px;
334 }
335
336 a {
337 @include disable-default-a-behaviour;
338
339 color: $orange-color;
340 transition: color 0.3s;
341
342 &:hover {
343 color: #fff;
344 }
345 }
346
347 .privacy-concerns-okay {
348 background-color: $orange-color;
349 padding: 5px 8px 5px 7px;
350 margin-left: auto;
351 border-radius: 3px;
352 cursor: pointer;
353 transition: background-color 0.3s;
354 font-weight: $font-semibold;
355
356 &:hover {
357 background-color: #000;
358 }
359 }
360 }
361
362
363 @media screen and (max-width: 1600px) {
364 .video-bottom {
365 .video-info {
366 margin-right: 20px;
367
368 .video-info-first-row {
369 flex-direction: column;
370 margin-bottom: 30px;
371
372 .video-actions-rates {
373 margin-top: 20px;
374 align-items: start;
375
376 .video-info-likes-dislikes-bar {
377 margin-top: 10px;
378 }
379 }
380 }
381
382 .video-info-date-views {
383 flex-direction: column;
384 margin-bottom: 30px;
385
386 .video-info-likes-dislikes-bar {
387 margin-top: 0;
388 }
389 }
390
391 .video-attributes .video-attribute {
392 margin-bottom: 5px;
393 }
394 }
395 }
396 }
397
398 @media screen and (max-width: 1300px) {
399 .video-bottom {
400 flex-direction: column;
401 }
402
403 .other-videos {
404 padding-left: 0;
405 }
406
407 .privacy-concerns {
408 font-size: 12px;
409 padding: 2px 5px;
410
411 .privacy-concerns-text {
412 margin: 0;
413 }
414 }
415 }
416
417 @media screen and (max-width: 600px) {
418 .video-bottom {
419 margin: 20px 0 0 0;
420
421 .video-info {
422
423 .video-info-first-row {
424
425 .video-info-name {
426 font-size: 20px;
427 height: auto;
428 }
429 }
430 }
431 }
432
433 .privacy-concerns {
434 width: 100%;
435
436 strong {
437 display: none;
438 }
439 }
440 }
441
442 @media screen and (max-width: 450px) {
443 .video-bottom .action-button .icon-text {
444 display: none !important;
445 }
446 }