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