]>
Commit | Line | Data |
---|---|---|
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; | |
7b272fd7 | 102 | |
1f788f20 C |
103 | .icon { |
104 | @include icon(21px); | |
7b272fd7 | 105 | |
1f788f20 C |
106 | position: relative; |
107 | top: -2px; | |
108 | ||
109 | &.icon-like { | |
110 | background-image: url('../../../assets/images/video/like-grey.svg'); | |
111 | } | |
112 | ||
113 | &.icon-dislike { | |
114 | background-image: url('../../../assets/images/video/dislike-grey.svg'); | |
115 | } | |
7b272fd7 | 116 | |
1f788f20 C |
117 | &.icon-share { |
118 | background-image: url('../../../assets/images/video/share.svg'); | |
119 | } | |
120 | ||
121 | &.icon-more { | |
122 | background-image: url('../../../assets/images/video/more.svg'); | |
123 | top: -1px; | |
124 | } | |
7b272fd7 | 125 | } |
d38b8281 | 126 | |
196b7790 C |
127 | &.action-button-share { |
128 | width: 82px; | |
129 | } | |
130 | ||
1f788f20 C |
131 | &.action-button-like.activated { |
132 | background-color: #39CC0B; | |
4e1b0973 | 133 | |
1f788f20 C |
134 | .icon-like { |
135 | background-image: url('../../../assets/images/video/like-white.svg'); | |
136 | } | |
7b272fd7 | 137 | } |
6e33bf28 | 138 | |
1f788f20 C |
139 | &.action-button-dislike.activated { |
140 | background-color: #FF0000; | |
d38b8281 | 141 | |
1f788f20 C |
142 | .icon-dislike { |
143 | background-image: url('../../../assets/images/video/dislike-white.svg'); | |
144 | } | |
7b272fd7 | 145 | } |
b1fa3eba | 146 | } |
d38b8281 | 147 | |
1f788f20 C |
148 | .action-more { |
149 | display: inline-block; | |
4f8c0eb0 | 150 | |
1f788f20 C |
151 | .dropdown-menu .dropdown-item { |
152 | padding: 6px 24px; | |
7b272fd7 | 153 | |
1f788f20 C |
154 | .icon { |
155 | @include icon(24px); | |
7b272fd7 | 156 | |
1f788f20 C |
157 | margin-right: 10px; |
158 | position: relative; | |
159 | top: -1px; | |
5f0805d3 | 160 | |
1f788f20 C |
161 | &.icon-download { |
162 | background-image: url('../../../assets/images/video/download-black.svg'); | |
163 | } | |
5f0805d3 | 164 | |
1f788f20 C |
165 | &.icon-edit { |
166 | background-image: url('../../../assets/images/global/edit-black.svg'); | |
167 | } | |
4635f59d | 168 | |
1f788f20 C |
169 | &.icon-alert { |
170 | background-image: url('../../../assets/images/video/alert.svg'); | |
171 | } | |
7b272fd7 | 172 | |
1f788f20 C |
173 | &.icon-blacklist { |
174 | background-image: url('../../../assets/images/video/blacklist.svg'); | |
175 | } | |
5f0805d3 | 176 | } |
7b272fd7 | 177 | } |
b1fa3eba | 178 | } |
4e1b0973 | 179 | } |
6a9e1d42 | 180 | |
1f788f20 C |
181 | .video-info-likes-dislikes-bar { |
182 | height: 5px; | |
183 | width: 186px; | |
184 | background-color: #E5E5E5; | |
185 | margin-top: 25px; | |
6a9e1d42 | 186 | |
1f788f20 C |
187 | .likes-bar { |
188 | height: 100%; | |
189 | background-color: #39CC0B; | |
190 | } | |
6a9e1d42 C |
191 | } |
192 | } | |
d1992b93 C |
193 | } |
194 | ||
b1fa3eba C |
195 | .video-info-description { |
196 | margin: 20px 0; | |
197 | font-size: 15px; | |
d1992b93 | 198 | |
80958c78 C |
199 | .description-loading { |
200 | display: inline-block; | |
201 | } | |
202 | ||
b1fa3eba | 203 | .video-info-description-more { |
2de96f4d | 204 | cursor: pointer; |
b1fa3eba C |
205 | font-weight: $font-semibold; |
206 | color: #585858; | |
207 | font-size: 14px; | |
2de96f4d C |
208 | |
209 | .glyphicon { | |
210 | position: relative; | |
211 | top: 2px; | |
212 | } | |
213 | } | |
09223546 C |
214 | } |
215 | ||
1f788f20 C |
216 | .video-attributes .video-attribute { |
217 | font-size: 13px; | |
218 | display: block; | |
219 | margin-bottom: 12px; | |
220 | ||
221 | .video-attribute-label { | |
222 | width: 86px; | |
223 | display: inline-block; | |
224 | color: #585858; | |
225 | font-weight: $font-bold; | |
3eeeb87f C |
226 | } |
227 | } | |
41c3dfac C |
228 | } |
229 | ||
230 | .other-videos { | |
231 | .title-page { | |
232 | margin-top: 0; | |
233 | } | |
234 | ||
235 | /deep/ .video-miniature { | |
236 | display: flex; | |
237 | height: 100%; | |
238 | margin-bottom: 20px; | |
a01f107b | 239 | |
41c3dfac C |
240 | .video-miniature-information { |
241 | margin-left: 10px; | |
242 | } | |
243 | } | |
a01f107b | 244 | } |
d1992b93 | 245 | } |
41c3dfac | 246 | |
b9828abe | 247 | |
6e33bf28 | 248 | @media screen and (max-width: 1300px) { |
b9828abe C |
249 | .other-videos { |
250 | display: none; | |
251 | } | |
252 | ||
253 | .video-bottom { | |
254 | .video-info { | |
20206dfb | 255 | margin-right: 0; |
9b7d1c72 | 256 | |
1f788f20 | 257 | .video-info-first-row { |
b9828abe C |
258 | flex-direction: column; |
259 | margin-bottom: 30px; | |
1f788f20 C |
260 | |
261 | .video-actions-rates { | |
262 | margin-top: 20px; | |
263 | align-items: left; | |
264 | ||
265 | .video-info-likes-dislikes-bar { | |
266 | margin-top: 10px; | |
267 | } | |
268 | } | |
b9828abe C |
269 | } |
270 | ||
1f788f20 | 271 | .video-info-date-views { |
b9828abe C |
272 | flex-direction: column; |
273 | margin-bottom: 30px; | |
274 | ||
275 | .video-info-likes-dislikes-bar { | |
276 | margin-top: 0; | |
277 | } | |
278 | } | |
1f788f20 C |
279 | |
280 | .video-attributes .video-attribute { | |
281 | margin-bottom: 5px; | |
282 | } | |
b9828abe C |
283 | } |
284 | } | |
285 | } | |
b2731bff | 286 | |
1f788f20 | 287 | @media screen and (max-width: 600px) { |
b2731bff C |
288 | .video-bottom { |
289 | margin: 20px 0 0 0; | |
1f788f20 C |
290 | |
291 | .video-info { | |
292 | ||
293 | .video-info-first-row { | |
294 | ||
295 | .video-info-name { | |
296 | font-size: 20px; | |
297 | height: auto; | |
298 | } | |
299 | } | |
300 | } | |
b2731bff C |
301 | } |
302 | } |