]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/video-watch.component.scss
Improve comment highlighting
[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:first-child {
46 flex-grow: 1;
47 }
48
49 .video-info-name {
50 margin-right: 30px;
51 min-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: flex-end;
84
85 .video-actions {
86 height: 40px; // Align with the title
87 display: flex;
88 align-items: center;
89
90 .action-button:not(:first-child), .action-more {
91 margin-left: 10px;
92 }
93
94 .action-button {
95 @include peertube-button;
96 @include grey-button;
97
98 font-size: 15px;
99 font-weight: $font-semibold;
100 display: inline-block;
101 padding: 0 10px 0 10px;
102
103 .icon {
104 @include icon(21px);
105
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 }
116
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 }
125 }
126
127 &.action-button-share {
128 width: 82px;
129 }
130
131 &.action-button-like.activated {
132 background-color: #39CC0B;
133
134 .icon-like {
135 background-image: url('../../../assets/images/video/like-white.svg');
136 }
137 }
138
139 &.action-button-dislike.activated {
140 background-color: #FF0000;
141
142 .icon-dislike {
143 background-image: url('../../../assets/images/video/dislike-white.svg');
144 }
145 }
146 }
147
148 .action-more {
149 display: inline-block;
150
151 .dropdown-menu .dropdown-item {
152 padding: 6px 24px;
153
154 .icon {
155 @include icon(24px);
156
157 margin-right: 10px;
158 position: relative;
159 top: -1px;
160
161 &.icon-download {
162 background-image: url('../../../assets/images/video/download-black.svg');
163 }
164
165 &.icon-edit {
166 background-image: url('../../../assets/images/global/edit-black.svg');
167 }
168
169 &.icon-alert {
170 background-image: url('../../../assets/images/video/alert.svg');
171 }
172
173 &.icon-blacklist {
174 background-image: url('../../../assets/images/video/blacklist.svg');
175 }
176 }
177 }
178 }
179 }
180
181 .video-info-likes-dislikes-bar {
182 height: 5px;
183 width: 186px;
184 background-color: #E5E5E5;
185 margin-top: 25px;
186
187 .likes-bar {
188 height: 100%;
189 background-color: #39CC0B;
190 }
191 }
192 }
193 }
194
195 .video-info-description {
196 margin: 20px 0;
197 font-size: 15px;
198
199 .description-loading {
200 display: inline-block;
201 }
202
203 .video-info-description-more {
204 cursor: pointer;
205 font-weight: $font-semibold;
206 color: #585858;
207 font-size: 14px;
208
209 .glyphicon {
210 position: relative;
211 top: 2px;
212 }
213 }
214 }
215
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;
226 }
227 }
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;
239
240 .video-miniature-information {
241 margin-left: 10px;
242 }
243 }
244 }
245 }
246
247
248 @media screen and (max-width: 1300px) {
249 .other-videos {
250 display: none;
251 }
252
253 .video-bottom {
254 .video-info {
255 margin-right: 0;
256
257 .video-info-first-row {
258 flex-direction: column;
259 margin-bottom: 30px;
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 }
269 }
270
271 .video-info-date-views {
272 flex-direction: column;
273 margin-bottom: 30px;
274
275 .video-info-likes-dislikes-bar {
276 margin-top: 0;
277 }
278 }
279
280 .video-attributes .video-attribute {
281 margin-bottom: 5px;
282 }
283 }
284 }
285 }
286
287 @media screen and (max-width: 600px) {
288 .video-bottom {
289 margin: 20px 0 0 0;
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 }
301 }
302 }