]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.scss
Fix player on very small screens
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.scss
CommitLineData
63c4db6d
C
1@import '_variables';
2@import '_mixins';
3
e31f6ad6 4#video-container {
be6a4802
C
5 background-color: #000;
6 display: flex;
7 justify-content: center;
8
9 #video-element {
10 width: 888px;
11 height: 500px;
7b272fd7 12
b9828abe
C
13 @media screen and (max-width: 800px) {
14 height: auto;
15 }
16
7b272fd7
C
17 // VideoJS create an inner video player
18 video {
19 outline: 0;
b9828abe 20 position: relative !important;
7b272fd7 21 }
be6a4802 22 }
e56b20f5
C
23}
24
9c89a45c
C
25#video-not-found {
26 height: 300px;
27 line-height: 300px;
28 margin-top: 50px;
29 text-align: center;
fb4fd623
C
30 font-weight: $font-semibold;
31 font-size: 15px;
9c89a45c
C
32}
33
b1fa3eba
C
34.video-bottom {
35 margin-top: 40px;
36 display: flex;
d1992b93 37
b1fa3eba
C
38 .video-info {
39 flex-grow: 1;
40 margin-right: 28px;
3eeeb87f 41
1f788f20 42 .video-info-first-row {
b1fa3eba 43 display: flex;
1f788f20 44
196b7790 45 & > div:first-child {
1f788f20
C
46 flex-grow: 1;
47 }
d1992b93 48
b1fa3eba 49 .video-info-name {
b2731bff 50 margin-right: 30px;
196b7790 51 min-height: 40px; // Align with the action buttons
b1fa3eba
C
52 font-size: 27px;
53 font-weight: $font-semibold;
54 flex-grow: 1;
55 }
09223546 56
1f788f20
C
57 .video-info-date-views {
58 font-size: 16px;
59 margin-bottom: 10px;
60 flex-grow: 1;
61 }
62
63 .video-info-channel {
64 font-weight: $font-semibold;
65 font-size: 15px;
66 }
67
68 .video-info-by {
6e33bf28 69 display: flex;
1f788f20
C
70 align-items: center;
71 font-size: 13px;
72
73 img {
74 @include avatar(18px);
6e33bf28 75
1f788f20 76 margin-left: 7px;
6e33bf28 77 }
1f788f20 78 }
b2731bff 79
1f788f20
C
80 .video-actions-rates {
81 display: flex;
82 flex-direction: column;
196b7790 83 align-items: flex-end;
09223546 84
1f788f20
C
85 .video-actions {
86 height: 40px; // Align with the title
1f788f20
C
87 display: flex;
88 align-items: center;
09223546 89
1f788f20
C
90 .action-button:not(:first-child), .action-more {
91 margin-left: 10px;
92 }
0727cab0 93
1f788f20
C
94 .action-button {
95 @include peertube-button;
96 @include grey-button;
7b272fd7 97
1f788f20
C
98 font-size: 15px;
99 font-weight: $font-semibold;
100 display: inline-block;
101 padding: 0 10px 0 10px;
07fa4c97 102 white-space: nowrap;
7b272fd7 103
1f788f20
C
104 .icon {
105 @include icon(21px);
7b272fd7 106
1f788f20
C
107 position: relative;
108 top: -2px;
109
110 &.icon-like {
111 background-image: url('../../../assets/images/video/like-grey.svg');
112 }
113
114 &.icon-dislike {
115 background-image: url('../../../assets/images/video/dislike-grey.svg');
116 }
7b272fd7 117
07fa4c97
C
118 &.icon-support {
119 background-image: url('../../../assets/images/video/heart.svg');
120 }
121
1f788f20
C
122 &.icon-share {
123 background-image: url('../../../assets/images/video/share.svg');
124 }
125
126 &.icon-more {
127 background-image: url('../../../assets/images/video/more.svg');
128 top: -1px;
129 }
7b272fd7 130 }
d38b8281 131
196b7790
C
132 &.action-button-share {
133 width: 82px;
134 }
135
1f788f20
C
136 &.action-button-like.activated {
137 background-color: #39CC0B;
4e1b0973 138
1f788f20
C
139 .icon-like {
140 background-image: url('../../../assets/images/video/like-white.svg');
141 }
7b272fd7 142 }
6e33bf28 143
1f788f20
C
144 &.action-button-dislike.activated {
145 background-color: #FF0000;
d38b8281 146
1f788f20
C
147 .icon-dislike {
148 background-image: url('../../../assets/images/video/dislike-white.svg');
149 }
7b272fd7 150 }
b1fa3eba 151 }
d38b8281 152
1f788f20
C
153 .action-more {
154 display: inline-block;
4f8c0eb0 155
1f788f20
C
156 .dropdown-menu .dropdown-item {
157 padding: 6px 24px;
7b272fd7 158
1f788f20
C
159 .icon {
160 @include icon(24px);
7b272fd7 161
1f788f20
C
162 margin-right: 10px;
163 position: relative;
164 top: -1px;
5f0805d3 165
1f788f20
C
166 &.icon-download {
167 background-image: url('../../../assets/images/video/download-black.svg');
168 }
5f0805d3 169
1f788f20
C
170 &.icon-edit {
171 background-image: url('../../../assets/images/global/edit-black.svg');
172 }
4635f59d 173
1f788f20
C
174 &.icon-alert {
175 background-image: url('../../../assets/images/video/alert.svg');
176 }
7b272fd7 177
1f788f20
C
178 &.icon-blacklist {
179 background-image: url('../../../assets/images/video/blacklist.svg');
180 }
5f0805d3 181 }
7b272fd7 182 }
b1fa3eba 183 }
4e1b0973 184 }
6a9e1d42 185
1f788f20
C
186 .video-info-likes-dislikes-bar {
187 height: 5px;
188 width: 186px;
189 background-color: #E5E5E5;
190 margin-top: 25px;
6a9e1d42 191
1f788f20
C
192 .likes-bar {
193 height: 100%;
194 background-color: #39CC0B;
195 }
6a9e1d42
C
196 }
197 }
d1992b93
C
198 }
199
b1fa3eba
C
200 .video-info-description {
201 margin: 20px 0;
202 font-size: 15px;
d1992b93 203
54a932e8
C
204 .video-info-description-html {
205 word-break: break-all;
206 }
207
80958c78
C
208 .description-loading {
209 display: inline-block;
210 }
211
b1fa3eba 212 .video-info-description-more {
2de96f4d 213 cursor: pointer;
b1fa3eba
C
214 font-weight: $font-semibold;
215 color: #585858;
216 font-size: 14px;
2de96f4d
C
217
218 .glyphicon {
219 position: relative;
220 top: 2px;
221 }
222 }
09223546
C
223 }
224
1f788f20
C
225 .video-attributes .video-attribute {
226 font-size: 13px;
227 display: block;
228 margin-bottom: 12px;
229
230 .video-attribute-label {
231 width: 86px;
232 display: inline-block;
233 color: #585858;
234 font-weight: $font-bold;
3eeeb87f
C
235 }
236 }
41c3dfac
C
237 }
238
239 .other-videos {
240 .title-page {
241 margin-top: 0;
242 }
243
244 /deep/ .video-miniature {
245 display: flex;
246 height: 100%;
247 margin-bottom: 20px;
a01f107b 248
41c3dfac
C
249 .video-miniature-information {
250 margin-left: 10px;
251 }
252 }
a01f107b 253 }
d1992b93 254}
41c3dfac 255
b9828abe 256
07fa4c97 257@media screen and (max-width: 1600px) {
b9828abe
C
258 .video-bottom {
259 .video-info {
20206dfb 260 margin-right: 0;
9b7d1c72 261
1f788f20 262 .video-info-first-row {
b9828abe
C
263 flex-direction: column;
264 margin-bottom: 30px;
1f788f20
C
265
266 .video-actions-rates {
267 margin-top: 20px;
268 align-items: left;
269
270 .video-info-likes-dislikes-bar {
271 margin-top: 10px;
272 }
273 }
b9828abe
C
274 }
275
1f788f20 276 .video-info-date-views {
b9828abe
C
277 flex-direction: column;
278 margin-bottom: 30px;
279
280 .video-info-likes-dislikes-bar {
281 margin-top: 0;
282 }
283 }
1f788f20
C
284
285 .video-attributes .video-attribute {
286 margin-bottom: 5px;
287 }
b9828abe
C
288 }
289 }
290}
b2731bff 291
07fa4c97
C
292@media screen and (max-width: 1200px) {
293 .other-videos {
294 display: none;
295 }
296}
297
1f788f20 298@media screen and (max-width: 600px) {
b2731bff
C
299 .video-bottom {
300 margin: 20px 0 0 0;
1f788f20
C
301
302 .video-info {
303
304 .video-info-first-row {
305
306 .video-info-name {
307 font-size: 20px;
308 height: auto;
309 }
310 }
311 }
b2731bff
C
312 }
313}
07fa4c97
C
314
315@media screen and (max-width: 450px) {
316 .video-bottom .action-button .icon-text {
317 display: none !important;
318 }
319}