]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-watch.component.scss
Add max video height on mobile
[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
258 @media screen and (max-width: 1600px) {
259 .video-bottom {
260 .video-info {
261 margin-right: 0;
262
263 .video-info-first-row {
264 flex-direction: column;
265 margin-bottom: 30px;
266
267 .video-actions-rates {
268 margin-top: 20px;
269 align-items: left;
270
271 .video-info-likes-dislikes-bar {
272 margin-top: 10px;
273 }
274 }
275 }
276
277 .video-info-date-views {
278 flex-direction: column;
279 margin-bottom: 30px;
280
281 .video-info-likes-dislikes-bar {
282 margin-top: 0;
283 }
284 }
285
286 .video-attributes .video-attribute {
287 margin-bottom: 5px;
288 }
289 }
290 }
291 }
292
293 @media screen and (max-width: 1200px) {
294 .other-videos {
295 display: none;
296 }
297 }
298
299 @media screen and (max-width: 600px) {
300 .video-bottom {
301 margin: 20px 0 0 0;
302
303 .video-info {
304
305 .video-info-first-row {
306
307 .video-info-name {
308 font-size: 20px;
309 height: auto;
310 }
311 }
312 }
313 }
314 }
315
316 @media screen and (max-width: 450px) {
317 .video-bottom .action-button .icon-text {
318 display: none !important;
319 }
320 }