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