]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.scss
Add `etc` on some points of the CoC (#305)
[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;
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
54a932e8
C
199 .video-info-description-html {
200 word-break: break-all;
201 }
202
80958c78
C
203 .description-loading {
204 display: inline-block;
205 }
206
b1fa3eba 207 .video-info-description-more {
2de96f4d 208 cursor: pointer;
b1fa3eba
C
209 font-weight: $font-semibold;
210 color: #585858;
211 font-size: 14px;
2de96f4d
C
212
213 .glyphicon {
214 position: relative;
215 top: 2px;
216 }
217 }
09223546
C
218 }
219
1f788f20
C
220 .video-attributes .video-attribute {
221 font-size: 13px;
222 display: block;
223 margin-bottom: 12px;
224
225 .video-attribute-label {
226 width: 86px;
227 display: inline-block;
228 color: #585858;
229 font-weight: $font-bold;
3eeeb87f
C
230 }
231 }
41c3dfac
C
232 }
233
234 .other-videos {
235 .title-page {
236 margin-top: 0;
237 }
238
239 /deep/ .video-miniature {
240 display: flex;
241 height: 100%;
242 margin-bottom: 20px;
a01f107b 243
41c3dfac
C
244 .video-miniature-information {
245 margin-left: 10px;
246 }
247 }
a01f107b 248 }
d1992b93 249}
41c3dfac 250
b9828abe 251
6e33bf28 252@media screen and (max-width: 1300px) {
b9828abe
C
253 .other-videos {
254 display: none;
255 }
256
257 .video-bottom {
258 .video-info {
20206dfb 259 margin-right: 0;
9b7d1c72 260
1f788f20 261 .video-info-first-row {
b9828abe
C
262 flex-direction: column;
263 margin-bottom: 30px;
1f788f20
C
264
265 .video-actions-rates {
266 margin-top: 20px;
267 align-items: left;
268
269 .video-info-likes-dislikes-bar {
270 margin-top: 10px;
271 }
272 }
b9828abe
C
273 }
274
1f788f20 275 .video-info-date-views {
b9828abe
C
276 flex-direction: column;
277 margin-bottom: 30px;
278
279 .video-info-likes-dislikes-bar {
280 margin-top: 0;
281 }
282 }
1f788f20
C
283
284 .video-attributes .video-attribute {
285 margin-bottom: 5px;
286 }
b9828abe
C
287 }
288 }
289}
b2731bff 290
1f788f20 291@media screen and (max-width: 600px) {
b2731bff
C
292 .video-bottom {
293 margin: 20px 0 0 0;
1f788f20
C
294
295 .video-info {
296
297 .video-info-first-row {
298
299 .video-info-name {
300 font-size: 20px;
301 height: auto;
302 }
303 }
304 }
b2731bff
C
305 }
306}