]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-watch.component.scss
d963f713dbf73dd4327c235084b67dba9a91a859
[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: 800px) {
14 height: auto;
15 }
16
17 // VideoJS create an inner video player
18 video {
19 outline: 0;
20 position: relative !important;
21 }
22 }
23 }
24
25 #video-not-found {
26 height: 300px;
27 line-height: 300px;
28 margin-top: 50px;
29 text-align: center;
30 font-weight: $font-semibold;
31 font-size: 15px;
32 }
33
34 .video-bottom {
35 margin-top: 40px;
36 display: flex;
37
38 .video-info {
39 flex-grow: 1;
40 margin-right: 28px;
41
42 .video-info-first-row {
43 display: flex;
44
45 & > div {
46 flex-grow: 1;
47 }
48
49 .video-info-name {
50 margin-right: 30px;
51 height: 40px; // Align with the action buttons
52 font-size: 27px;
53 font-weight: $font-semibold;
54 flex-grow: 1;
55 }
56
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 {
69 display: flex;
70 align-items: center;
71 font-size: 13px;
72
73 img {
74 @include avatar(18px);
75
76 margin-left: 7px;
77 }
78 }
79
80 .video-actions-rates {
81 display: flex;
82 flex-direction: column;
83 align-items: end;
84
85 .video-actions {
86 height: 40px; // Align with the title
87 min-width: 215px;
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
104 .icon {
105 @include icon(21px);
106
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 }
117
118 &.icon-share {
119 background-image: url('../../../assets/images/video/share.svg');
120 }
121
122 &.icon-more {
123 background-image: url('../../../assets/images/video/more.svg');
124 top: -1px;
125 }
126 }
127
128 &.action-button-like.activated {
129 background-color: #39CC0B;
130
131 .icon-like {
132 background-image: url('../../../assets/images/video/like-white.svg');
133 }
134 }
135
136 &.action-button-dislike.activated {
137 background-color: #FF0000;
138
139 .icon-dislike {
140 background-image: url('../../../assets/images/video/dislike-white.svg');
141 }
142 }
143 }
144
145 .action-more {
146 display: inline-block;
147
148 .dropdown-menu .dropdown-item {
149 padding: 6px 24px;
150
151 .icon {
152 @include icon(24px);
153
154 margin-right: 10px;
155 position: relative;
156 top: -1px;
157
158 &.icon-download {
159 background-image: url('../../../assets/images/video/download-black.svg');
160 }
161
162 &.icon-edit {
163 background-image: url('../../../assets/images/global/edit-black.svg');
164 }
165
166 &.icon-alert {
167 background-image: url('../../../assets/images/video/alert.svg');
168 }
169
170 &.icon-blacklist {
171 background-image: url('../../../assets/images/video/blacklist.svg');
172 }
173 }
174 }
175 }
176 }
177
178 .video-info-likes-dislikes-bar {
179 height: 5px;
180 width: 186px;
181 background-color: #E5E5E5;
182 margin-top: 25px;
183
184 .likes-bar {
185 height: 100%;
186 background-color: #39CC0B;
187 }
188 }
189 }
190 }
191
192 .video-info-description {
193 margin: 20px 0;
194 font-size: 15px;
195
196 .description-loading {
197 display: inline-block;
198 }
199
200 .video-info-description-more {
201 cursor: pointer;
202 font-weight: $font-semibold;
203 color: #585858;
204 font-size: 14px;
205
206 .glyphicon {
207 position: relative;
208 top: 2px;
209 }
210 }
211 }
212
213 .video-attributes .video-attribute {
214 font-size: 13px;
215 display: block;
216 margin-bottom: 12px;
217
218 .video-attribute-label {
219 width: 86px;
220 display: inline-block;
221 color: #585858;
222 font-weight: $font-bold;
223 }
224 }
225 }
226
227 .other-videos {
228 .title-page {
229 margin-top: 0;
230 }
231
232 /deep/ .video-miniature {
233 display: flex;
234 height: 100%;
235 margin-bottom: 20px;
236
237 .video-miniature-information {
238 margin-left: 10px;
239 }
240 }
241 }
242 }
243
244
245 @media screen and (max-width: 1300px) {
246 .other-videos {
247 display: none;
248 }
249
250 .video-bottom {
251 .video-info {
252 margin-right: 0;
253
254 .video-info-first-row {
255 flex-direction: column;
256 margin-bottom: 30px;
257
258 .video-actions-rates {
259 margin-top: 20px;
260 align-items: left;
261
262 .video-info-likes-dislikes-bar {
263 margin-top: 10px;
264 }
265 }
266 }
267
268 .video-info-date-views {
269 flex-direction: column;
270 margin-bottom: 30px;
271
272 .video-info-likes-dislikes-bar {
273 margin-top: 0;
274 }
275 }
276
277 .video-attributes .video-attribute {
278 margin-bottom: 5px;
279 }
280 }
281 }
282 }
283
284 @media screen and (max-width: 600px) {
285 .video-bottom {
286 margin: 20px 0 0 0;
287
288 .video-info {
289
290 .video-info-first-row {
291
292 .video-info-name {
293 font-size: 20px;
294 height: auto;
295 }
296 }
297 }
298 }
299 }