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