]>
Commit | Line | Data |
---|---|---|
8cbc40b2 C |
1 | @use '_variables' as *; |
2 | @use '_mixins' as *; | |
93c728a2 | 3 | @use '_icons' as *; |
bbe0f064 | 4 | |
931d3430 | 5 | /* stylelint-disable */ |
cd2fad00 | 6 | @import '~primeng/resources/primeng.css'; |
4f926722 | 7 | |
266947e5 | 8 | // Override primeng style we don't want |
931d3430 | 9 | input[type=button] { |
266947e5 C |
10 | border-radius: inherit; |
11 | } | |
12 | ||
1fd61899 C |
13 | p-table .p-datatable-header .caption { |
14 | margin-bottom: 15px; | |
15 | } | |
16 | ||
4f926722 C |
17 | // Taken from old nova light theme |
18 | ||
19 | body .p-disabled { | |
20 | opacity: 0.5; | |
21 | } | |
22 | ||
23 | // Checkbox | |
24 | body .p-checkbox { | |
25 | display: inline-block; | |
26 | vertical-align: middle; | |
27 | margin: 0; | |
28 | width: 20px; | |
29 | height: 20px; | |
30 | } | |
31 | body .p-checkbox .p-checkbox-box { | |
32 | border: 1px solid #a6a6a6; | |
33 | background-color: #ffffff; | |
34 | width: 20px; | |
35 | height: 20px; | |
36 | text-align: center; | |
37 | border-radius: 3px; | |
38 | transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; | |
39 | } | |
40 | body .p-checkbox .p-checkbox-box:not(.p-disabled):hover { | |
41 | border-color: #212121; | |
42 | } | |
43 | body .p-checkbox .p-checkbox-box .p-checkbox-icon { | |
44 | overflow: hidden; | |
45 | position: relative; | |
46 | font-size: 18px; | |
47 | } | |
48 | ||
49 | // Paginator | |
50 | body .p-paginator { | |
51 | background-color: #f4f4f4; | |
52 | border: 1px solid #c8c8c8; | |
53 | padding: 0; | |
54 | } | |
55 | body .p-paginator .p-paginator-first, | |
56 | body .p-paginator .p-paginator-prev, | |
57 | body .p-paginator .p-paginator-next, | |
58 | body .p-paginator .p-paginator-last { | |
59 | color: #848484; | |
60 | height: 2.286em; | |
61 | min-width: 2.286em; | |
62 | border: 0 none; | |
63 | line-height: 2.286em; | |
64 | padding: 0; | |
65 | margin: 0; | |
66 | vertical-align: top; | |
67 | transition: box-shadow 0.2s; | |
68 | border-radius: 0; | |
69 | } | |
70 | body .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover, | |
71 | body .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover, | |
72 | body .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover, | |
73 | body .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover { | |
74 | background-color: #e0e0e0; | |
75 | color: #333333; | |
76 | } | |
77 | body .p-paginator .p-paginator-first:focus, | |
78 | body .p-paginator .p-paginator-prev:focus, | |
79 | body .p-paginator .p-paginator-next:focus, | |
80 | body .p-paginator .p-paginator-last:focus { | |
81 | outline: 0 none; | |
82 | outline-offset: 0; | |
83 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
84 | } | |
85 | body .p-paginator .p-paginator-current { | |
86 | color: #333333; | |
87 | height: 2.286em; | |
88 | min-width: 2.286em; | |
89 | line-height: 2.286em; | |
90 | } | |
91 | body .p-paginator .p-dropdown { | |
92 | border: 0 none; | |
93 | } | |
94 | body .p-paginator .p-dropdown .p-dropdown-trigger, body .p-paginator .p-dropdown .p-dropdown-label { | |
95 | color: #848484; | |
96 | } | |
97 | body .p-paginator .p-dropdown:hover .p-dropdown-trigger, body .p-paginator .p-dropdown:hover .p-dropdown-label { | |
98 | color: #333333; | |
99 | } | |
100 | body .p-paginator .p-paginator-first:before { | |
101 | position: relative; | |
102 | top: 1px; | |
103 | } | |
104 | body .p-paginator .p-paginator-prev:before { | |
105 | position: relative; | |
106 | top: 1px; | |
107 | } | |
108 | body .p-paginator .p-paginator-next:before { | |
109 | position: relative; | |
110 | top: 1px; | |
111 | } | |
112 | body .p-paginator .p-paginator-last:before { | |
113 | position: relative; | |
114 | top: 1px; | |
115 | } | |
116 | body .p-paginator .p-paginator-pages { | |
117 | vertical-align: top; | |
118 | display: inline-block; | |
119 | padding: 0; | |
120 | } | |
121 | body .p-paginator .p-paginator-pages .p-paginator-page { | |
122 | color: #848484; | |
123 | height: 2.286em; | |
124 | min-width: 2.286em; | |
125 | border: 0 none; | |
126 | line-height: 2.286em; | |
127 | padding: 0; | |
128 | margin: 0; | |
129 | vertical-align: top; | |
130 | transition: box-shadow 0.2s; | |
131 | border-radius: 0; | |
132 | } | |
133 | body .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover { | |
134 | background-color: #e0e0e0; | |
135 | color: #333333; | |
136 | } | |
137 | body .p-paginator .p-paginator-pages .p-paginator-page:focus { | |
138 | outline: 0 none; | |
139 | outline-offset: 0; | |
140 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
141 | } | |
142 | body .p-paginator .p-dropdown { | |
27bc9586 C |
143 | @include margin-left(0.5em); |
144 | ||
4f926722 C |
145 | height: 2.286em; |
146 | min-width: auto; | |
147 | } | |
148 | ||
149 | // Dropdown | |
150 | ||
151 | body .p-dropdown { | |
152 | background: #ffffff; | |
153 | border: 1px solid #a6a6a6; | |
154 | transition: border-color 0.2s, box-shadow 0.2s; | |
155 | } | |
156 | body .p-dropdown:not(.p-disabled):hover { | |
157 | border-color: #212121; | |
158 | } | |
159 | body .p-dropdown:not(.p-disabled).p-focus { | |
160 | outline: 0 none; | |
161 | outline-offset: 0; | |
162 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
163 | border-color: pvar(--mainColor); | |
164 | } | |
165 | body .p-dropdown .p-dropdown-label { | |
27bc9586 | 166 | @include padding-right(2em); |
4f926722 C |
167 | } |
168 | body .p-dropdown .p-dropdown-trigger { | |
169 | background-color: #ffffff; | |
170 | width: 2em; | |
171 | line-height: 2em; | |
172 | text-align: center; | |
173 | padding: 0; | |
174 | color: #848484; | |
175 | } | |
176 | body .p-dropdown .p-dropdown-clear-icon { | |
177 | color: #848484; | |
178 | } | |
179 | body .p-dropdown.p-dropdown-clearable .p-dropdown-label { | |
27bc9586 | 180 | @include padding-right(4em); |
4f926722 C |
181 | } |
182 | body .p-dropdown-panel { | |
183 | padding: 0; | |
184 | border: 1px solid #c8c8c8; | |
185 | background-color: #ffffff; | |
186 | box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); | |
187 | } | |
188 | body .p-dropdown-panel .p-dropdown-filter-container { | |
189 | padding: 0.429em 0.857em 0.429em 0.857em; | |
190 | border-bottom: 1px solid #eaeaea; | |
191 | color: #333333; | |
192 | background-color: #ffffff; | |
193 | margin: 0; | |
194 | } | |
195 | body .p-dropdown-panel .p-dropdown-filter-container .p-dropdown-filter { | |
27bc9586 C |
196 | @include padding-right(2em); |
197 | ||
4f926722 | 198 | width: 100%; |
4f926722 C |
199 | } |
200 | body .p-dropdown-panel .p-dropdown-filter-container .p-dropdown-filter-icon { | |
201 | top: 50%; | |
202 | margin-top: -0.5em; | |
203 | right: 1.357em; | |
204 | color: pvar(--mainColor); | |
205 | } | |
206 | body .p-dropdown-panel .p-dropdown-items { | |
207 | padding: 0; | |
208 | } | |
209 | body .p-dropdown-panel .p-dropdown-items .p-dropdown-item, body .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group { | |
210 | margin: 0; | |
211 | padding: 0.429em 0.857em; | |
212 | border: 0 none; | |
213 | color: #333333; | |
214 | background-color: transparent; | |
215 | -moz-border-radius: 0; | |
216 | -webkit-border-radius: 0; | |
217 | border-radius: 0; | |
218 | } | |
219 | body .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight, | |
220 | body .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group.p-highlight { | |
221 | color: #ffffff; | |
222 | background-color: pvar(--mainColor); | |
223 | } | |
224 | body .p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover, | |
225 | body .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group:not(.p-highlight):not(.p-disabled):hover { | |
226 | color: #333333; | |
227 | background-color: #eaeaea; | |
228 | } | |
229 | body p-dropdown.ng-dirty.ng-invalid > .p-dropdown { | |
230 | border: 1px solid #a80000; | |
231 | } | |
232 | ||
233 | // p-toast | |
234 | body .p-toast .p-toast-message { | |
235 | box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); | |
236 | margin: 0 0 1em 0; | |
237 | } | |
238 | ||
239 | // p-calendar | |
240 | body .p-datepicker { | |
241 | padding: 0.857em; | |
242 | min-width: 20em; | |
243 | background-color: #ffffff; | |
244 | color: #333333; | |
245 | border: 1px solid #a6a6a6; | |
246 | } | |
247 | ||
248 | body .p-datepicker:not(.p-datepicker-inline) { | |
249 | border: 1px solid #c8c8c8; | |
250 | box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); | |
251 | } | |
252 | body .p-datepicker:not(.p-disabled) .p-datepicker-header .p-datepicker-prev:focus, | |
253 | body .p-datepicker:not(.p-disabled) .p-datepicker-header .p-datepicker-next:focus { | |
254 | outline: 0 none; | |
255 | outline-offset: 0; | |
256 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
257 | } | |
258 | body .p-datepicker:not(.p-disabled) table td a:not(.p-highlight):not(.p-highlight):hover { | |
259 | background-color: #eaeaea; | |
260 | } | |
261 | body .p-datepicker:not(.p-disabled) .p-monthpicker a.p-monthpicker-month:not(.p-highlight):hover { | |
262 | background-color: #eaeaea; | |
263 | } | |
264 | body .p-datepicker .p-datepicker-header { | |
265 | padding: 0.429em 0.857em 0.429em 0.857em; | |
266 | background-color: #ffffff; | |
267 | color: #333333; | |
268 | -moz-border-radius: 0; | |
269 | -webkit-border-radius: 0; | |
270 | border-radius: 0; | |
271 | } | |
272 | body .p-datepicker .p-datepicker-header .p-datepicker-prev, | |
273 | body .p-datepicker .p-datepicker-header .p-datepicker-next { | |
274 | cursor: pointer; | |
275 | top: 0; | |
276 | color: #a6a6a6; | |
277 | transition: color 0.2s, box-shadow 0.2s; | |
278 | } | |
279 | body .p-datepicker .p-datepicker-header .p-datepicker-title { | |
280 | margin: 0; | |
281 | padding: 0; | |
282 | line-height: 1; | |
283 | } | |
284 | body .p-datepicker .p-datepicker-header .p-datepicker-title select { | |
285 | margin-top: -0.35em; | |
286 | margin-bottom: 0; | |
287 | transition: color 0.2s, box-shadow 0.2s; | |
288 | } | |
289 | body .p-datepicker .p-datepicker-header .p-datepicker-title select:focus { | |
290 | outline: 0 none; | |
291 | outline-offset: 0; | |
292 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
293 | } | |
294 | body .p-datepicker table { | |
295 | font-size: 14px; | |
296 | margin: 0.857em 0 0 0; | |
297 | } | |
298 | body .p-datepicker table th { | |
299 | padding: 0.5em; | |
300 | } | |
301 | body .p-datepicker table th.p-datepicker-weekheader { | |
302 | border-right: 1px solid #a6a6a6; | |
303 | } | |
304 | body .p-datepicker table td { | |
305 | padding: 0.5em; | |
306 | } | |
307 | body .p-datepicker table td > a, | |
308 | body .p-datepicker table td > span { | |
309 | display: block; | |
310 | text-align: center; | |
311 | color: #333333; | |
312 | padding: 0.5em; | |
313 | transition: box-shadow 0.2s; | |
314 | border-radius: 3px; | |
315 | } | |
316 | body .p-datepicker table td > a.p-highlight, | |
317 | body .p-datepicker table td > span.p-highlight { | |
318 | color: #ffffff; | |
319 | background-color: pvar(--mainColor); | |
320 | } | |
321 | body .p-datepicker table td > a { | |
322 | cursor: pointer; | |
323 | } | |
324 | body .p-datepicker table td > a:focus { | |
325 | outline: 0 none; | |
326 | outline-offset: 0; | |
327 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
328 | } | |
329 | body .p-datepicker table td.p-datepicker-today > a, | |
330 | body .p-datepicker table td.p-datepicker-today > span { | |
331 | background-color: #d0d0d0; | |
332 | color: #333333; | |
333 | } | |
334 | body .p-datepicker table td.p-datepicker-today > a.p-highlight, | |
335 | body .p-datepicker table td.p-datepicker-today > span.p-highlight { | |
336 | color: #ffffff; | |
337 | background-color: pvar(--mainColor); | |
338 | } | |
339 | body .p-datepicker table td.p-datepicker-weeknumber { | |
340 | border-right: 1px solid #a6a6a6; | |
341 | } | |
342 | body .p-datepicker .p-datepicker-buttonbar { | |
343 | border-top: 1px solid #d8dae2; | |
344 | } | |
345 | body .p-datepicker .p-timepicker { | |
346 | border: 0 none; | |
347 | border-top: 1px solid #d8dae2; | |
348 | padding: 0.857em; | |
349 | } | |
350 | body .p-datepicker .p-timepicker a { | |
351 | color: #333333; | |
352 | font-size: 1.286em; | |
353 | } | |
354 | body .p-datepicker .p-timepicker a:hover { | |
355 | color: pvar(--mainColor); | |
356 | } | |
357 | body .p-datepicker .p-timepicker span { | |
358 | font-size: 1.286em; | |
359 | } | |
360 | body .p-datepicker .p-monthpicker .p-monthpicker-month { | |
361 | color: #333333; | |
362 | } | |
363 | body .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight { | |
364 | color: #ffffff; | |
365 | background-color: pvar(--mainColor); | |
366 | } | |
367 | body .p-datepicker.p-datepicker-timeonly { | |
368 | padding: 0; | |
369 | } | |
370 | body .p-datepicker.p-datepicker-timeonly .p-timepicker { | |
371 | border-top: 0 none; | |
372 | } | |
373 | body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group { | |
27bc9586 C |
374 | @include padding-right(0.857em); |
375 | @include padding-left(0.857em); | |
376 | ||
4f926722 | 377 | border-right: 1px solid #d8dae2; |
4f926722 C |
378 | padding-top: 0; |
379 | padding-bottom: 0; | |
380 | } | |
381 | body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child { | |
27bc9586 | 382 | @include padding-left(0); |
4f926722 C |
383 | } |
384 | body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child { | |
27bc9586 | 385 | @include padding-right(0); |
4f926722 C |
386 | border-right: 0 none; |
387 | } | |
388 | body .p-calendar.p-calendar-w-btn .p-inputtext { | |
389 | border-top-right-radius: 0; | |
390 | border-bottom-right-radius: 0; | |
391 | border-right: 0 none; | |
392 | } | |
393 | body .p-calendar.p-calendar-w-btn .p-inputtext:enabled:hover:not(.p-error), | |
394 | body .p-calendar.p-calendar-w-btn .p-inputtext:enabled:focus:not(.p-error) { | |
395 | border-right: 0 none; | |
396 | } | |
397 | body .p-calendar.p-calendar-w-btn .p-datepicker-trigger.p-button { | |
398 | width: 2.357em; | |
399 | border-top-left-radius: 0; | |
400 | border-bottom-left-radius: 0; | |
401 | } | |
402 | body .ui-fluid .p-calendar.p-calendar-w-btn input.p-inputtext { | |
403 | width: calc(100% - 2.357em); | |
404 | } | |
405 | body p-calendar.ng-dirty.ng-invalid > .p-calendar > .p-inputtext { | |
406 | border: 1px solid #a80000; | |
407 | } | |
408 | body .p-timepicker .p-separator { | |
27bc9586 | 409 | @include margin-left(0); |
4f926722 C |
410 | min-width: 0.75rem; |
411 | } | |
412 | ||
413 | // auto complete | |
414 | body .p-autocomplete .p-autocomplete-input { | |
415 | padding: 0.429em; | |
416 | } | |
417 | body .p-autocomplete-panel { | |
418 | padding: 0; | |
419 | border: 1px solid #c8c8c8; | |
420 | background-color: #ffffff; | |
421 | box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); | |
422 | } | |
423 | body .p-autocomplete-panel .p-autocomplete-items { | |
424 | padding: 0; | |
425 | } | |
426 | body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item { | |
427 | margin: 0; | |
428 | padding: 0.429em 0.857em; | |
429 | border: 0 none; | |
430 | color: #333333; | |
431 | background-color: transparent; | |
432 | border-radius: 0; | |
433 | } | |
434 | body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight, | |
435 | body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover { | |
436 | color: #ffffff; | |
437 | background-color: pvar(--mainColor); | |
438 | } | |
439 | body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-group { | |
440 | padding: 0.429em 0.857em; | |
441 | background-color: #d8dae2; | |
442 | color: #333333; | |
443 | } | |
444 | body p-autocomplete.ng-dirty.ng-invalid > .p-autocomplete > .p-inputtext { | |
445 | border: 1px solid #a80000; | |
446 | } | |
447 | ||
93c728a2 C |
448 | // --------------------------------------------------------------------------- |
449 | // PeerTube customizations | |
450 | // --------------------------------------------------------------------------- | |
bbe0f064 | 451 | |
bbe0f064 | 452 | p-table { |
72c98d18 C |
453 | table { |
454 | table-layout: fixed; | |
455 | } | |
456 | ||
4f926722 | 457 | .p-datatable-header { |
276d9652 | 458 | border: none !important; |
e66883b3 | 459 | background-color: pvar(--mainBackgroundColor) !important; |
b014b6b9 C |
460 | |
461 | .caption { | |
fbe088b8 | 462 | min-height: 40px; |
25a42e29 RK |
463 | width: 100%; |
464 | display: inline-flex; | |
b014b6b9 | 465 | align-items: center; |
0d3a2982 | 466 | |
9c1a88e3 | 467 | .left-buttons { |
27bc9586 | 468 | @include padding-left(15px); |
9c1a88e3 | 469 | } |
b014b6b9 | 470 | } |
791645e6 C |
471 | } |
472 | ||
276d9652 | 473 | th { |
e66883b3 | 474 | background-color: pvar(--mainBackgroundColor) !important; |
276d9652 | 475 | outline: 0; |
b0a9743a C |
476 | overflow: hidden; |
477 | text-overflow: ellipsis; | |
478 | white-space: nowrap; | |
276d9652 C |
479 | } |
480 | ||
481 | td, th { | |
482 | font-family: $main-fonts; | |
5b0ec7cd | 483 | font-size: 15px; |
e66883b3 | 484 | color: pvar(--mainForegroundColor) !important; |
276d9652 C |
485 | } |
486 | ||
bbe0f064 | 487 | td { |
27bc9586 | 488 | @include padding-left(15px !important); |
141b177d | 489 | |
4f926722 C |
490 | &.expand-cell { |
491 | padding: 10px 15px; | |
492 | } | |
493 | ||
7706b370 | 494 | &:not(.action-cell):not(.expand-cell):not(.checkbox-cell) { |
141b177d C |
495 | overflow: hidden !important; |
496 | text-overflow: ellipsis !important; | |
497 | white-space: nowrap !important; | |
498 | } | |
bbe0f064 C |
499 | } |
500 | ||
501 | tr { | |
276d9652 | 502 | outline: 0; |
e66883b3 | 503 | background-color: pvar(--mainBackgroundColor) !important; |
bbe0f064 | 504 | height: 46px; |
791645e6 | 505 | |
4f926722 | 506 | &.p-highlight { |
218f730c | 507 | background-color: pvar(--submenuBackgroundColor) !important; |
276d9652 C |
508 | |
509 | td, td > a { | |
e66883b3 | 510 | color: pvar(--mainForegroundColor) !important; |
276d9652 | 511 | } |
791645e6 | 512 | } |
bbe0f064 C |
513 | } |
514 | ||
4f926722 | 515 | .p-datatable-tbody { |
bbe0f064 C |
516 | tr { |
517 | &:hover { | |
218f730c | 518 | background-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 C |
519 | } |
520 | ||
276d9652 C |
521 | td { |
522 | border: none !important; | |
7aebd32f | 523 | white-space: normal !important; |
276d9652 C |
524 | } |
525 | ||
bbe0f064 C |
526 | &:first-child td { |
527 | border-top: none !important; | |
528 | } | |
529 | ||
530 | &:last-child td { | |
531 | border-bottom: none !important; | |
532 | } | |
654a188f RK |
533 | |
534 | &:focus + tr > td, | |
535 | &:focus > td { | |
536 | box-shadow: none !important; | |
537 | } | |
bbe0f064 C |
538 | } |
539 | ||
540 | .expander { | |
541 | cursor: pointer; | |
542 | position: relative; | |
543 | top: 1px; | |
544 | } | |
545 | } | |
546 | ||
547 | th { | |
548 | border: none !important; | |
b9fcfb1d | 549 | border-bottom: 1px solid !important; |
218f730c | 550 | border-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 C |
551 | text-align: left !important; |
552 | padding: 5px 0 5px 15px !important; | |
553 | font-weight: $font-semibold !important; | |
e66883b3 | 554 | color: pvar(--mainForegroundColor) !important; |
bbe0f064 | 555 | |
4f926722 | 556 | &.p-sortable-column:hover { |
218f730c | 557 | background-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 C |
558 | } |
559 | ||
4f926722 | 560 | &.p-highlight { |
218f730c | 561 | background-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 | 562 | |
93c728a2 C |
563 | .pi-sort-amount-up-alt, |
564 | .pi-sort-amount-down { | |
565 | display: inline-block; | |
566 | position: relative; | |
567 | top: -1px; | |
568 | color: pvar(--mainForegroundColor) !important; | |
569 | } | |
bbe0f064 | 570 | |
93c728a2 C |
571 | .pi-sort-amount-up-alt { |
572 | @include arrow-up(5px); | |
573 | } | |
f2fab901 | 574 | |
93c728a2 C |
575 | .pi-sort-amount-down { |
576 | @include arrow-down(5px); | |
bbe0f064 C |
577 | } |
578 | } | |
579 | } | |
580 | ||
581 | .action-cell { | |
582 | width: 250px !important; | |
bbe0f064 | 583 | |
28e0e40d C |
584 | .dropdown-root, |
585 | my-edit-button, | |
586 | my-delete-button, | |
587 | my-button { | |
2170f1db | 588 | display: inline-block !important; |
27bc9586 | 589 | @include margin-left(5px); |
c5a1ae50 | 590 | |
9c1a88e3 | 591 | &:first-child { |
27bc9586 | 592 | @include margin-left(0) |
165ee292 | 593 | } |
bbe0f064 C |
594 | } |
595 | } | |
596 | ||
597 | p-paginator { | |
4f926722 | 598 | .p-paginator-bottom { |
e66883b3 | 599 | background-color: pvar(--mainBackgroundColor) !important; |
bbe0f064 | 600 | position: relative; |
8b183196 RK |
601 | border: none; |
602 | border-top: 1px solid !important; | |
218f730c | 603 | border-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 C |
604 | height: 40px; |
605 | display: flex; | |
606 | justify-content: center; | |
607 | align-items: center; | |
608 | ||
4f926722 | 609 | .p-dropdown { |
2bc9bd08 | 610 | position: absolute; |
4f926722 | 611 | top: 10px; |
2bc9bd08 | 612 | left: 0; |
9b4241e3 | 613 | |
4f926722 | 614 | &.p-focus { |
e66883b3 | 615 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
9b4241e3 RK |
616 | } |
617 | ||
4f926722 | 618 | .p-label { |
e66883b3 | 619 | color: pvar(--inputPlaceholderColor); |
9b4241e3 | 620 | } |
2bc9bd08 RK |
621 | } |
622 | ||
a3345972 C |
623 | .p-dropdown, |
624 | .p-dropdown-trigger { | |
625 | color: pvar(--mainForegroundColor); | |
626 | background-color: pvar(--mainBackgroundColor); | |
627 | } | |
628 | ||
4f926722 | 629 | .p-paginator-current { |
2bc9bd08 RK |
630 | position: absolute; |
631 | right: 0; | |
e66883b3 | 632 | color: pvar(--inputPlaceholderColor); |
4f926722 | 633 | overflow: visible; |
fbe088b8 C |
634 | |
635 | @media screen and (max-width: $small-view) { | |
636 | left: 0; | |
637 | top: 40px; | |
638 | } | |
2bc9bd08 RK |
639 | } |
640 | ||
4f926722 C |
641 | .p-paginator-first, |
642 | .p-paginator-prev, | |
643 | .p-paginator-next, | |
644 | .p-paginator-last { | |
30eac84e | 645 | padding: 5px 2px; |
93c728a2 | 646 | height: 100%; |
30eac84e | 647 | outline: none; |
93c728a2 | 648 | color: pvar(--mainForegroundColor); |
30eac84e | 649 | |
2bc9bd08 RK |
650 | &.focus-within, |
651 | &:focus { | |
e66883b3 | 652 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
2bc9bd08 RK |
653 | } |
654 | ||
4f926722 | 655 | &.p-disabled:hover { |
30eac84e C |
656 | background-color: #fff !important; |
657 | } | |
658 | ||
4f926722 | 659 | &.p-paginator-first { |
93c728a2 C |
660 | .p-paginator-icon { |
661 | width: 18px; | |
662 | height: 18px; | |
663 | background: url('../assets/images/feather/skip-back.svg') no-repeat; | |
664 | background-size: contain; | |
665 | } | |
30eac84e C |
666 | } |
667 | ||
4f926722 | 668 | &.p-paginator-prev { |
3bf57a01 C |
669 | @include margin-right(10px); |
670 | ||
93c728a2 | 671 | .p-paginator-icon { |
72cd9f30 | 672 | @include chevron-left-default; |
93c728a2 | 673 | } |
30eac84e C |
674 | } |
675 | ||
4f926722 | 676 | &.p-paginator-next { |
3bf57a01 C |
677 | @include margin-left(10px); |
678 | ||
93c728a2 | 679 | .p-paginator-icon { |
72cd9f30 | 680 | @include chevron-right-default; |
93c728a2 | 681 | } |
30eac84e C |
682 | } |
683 | ||
4f926722 | 684 | &.p-paginator-last { |
93c728a2 C |
685 | .p-paginator-icon { |
686 | width: 18px; | |
687 | height: 18px; | |
688 | background: url('../assets/images/feather/skip-forward.svg') no-repeat; | |
689 | background-size: contain; | |
690 | } | |
30eac84e C |
691 | } |
692 | } | |
693 | ||
4f926722 | 694 | .p-paginator-pages { |
bbe0f064 C |
695 | height: auto !important; |
696 | ||
4f926722 | 697 | .p-paginator-page { |
2bc9bd08 RK |
698 | &.focus-within, |
699 | &:focus { | |
e66883b3 | 700 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest) !important; |
165ee292 | 701 | } |
2bc9bd08 | 702 | |
e66883b3 | 703 | color: pvar(--mainForegroundColor) !important; |
bbe0f064 | 704 | font-weight: $font-semibold !important; |
276d9652 | 705 | margin: 0 5px !important; |
bbe0f064 C |
706 | outline: 0 !important; |
707 | border-radius: 3px !important; | |
708 | padding: 5px 2px !important; | |
709 | height: auto !important; | |
276d9652 | 710 | line-height: initial !important; |
bbe0f064 | 711 | |
4f926722 | 712 | &.p-highlight { |
bbe0f064 C |
713 | &, &:hover, &:active, &:focus { |
714 | color: #fff !important; | |
e66883b3 | 715 | background-color: pvar(--mainColor) !important; |
bbe0f064 C |
716 | } |
717 | } | |
718 | } | |
719 | } | |
720 | } | |
721 | } | |
eeae8142 | 722 | |
4c8749cb C |
723 | .pt-badge { |
724 | font-size: 12px; | |
725 | text-transform: uppercase; | |
eeae8142 | 726 | } |
bbe0f064 C |
727 | } |
728 | ||
165ee292 | 729 | // overflow data table |
d7941370 C |
730 | p-table { |
731 | .p-datatable-wrapper { | |
732 | overflow-x: auto; | |
733 | max-width: 100%; | |
165ee292 | 734 | |
d7941370 | 735 | table { |
d94b8ecf | 736 | width: 100%; |
d7941370 C |
737 | } |
738 | } | |
619443a3 | 739 | |
d7941370 C |
740 | @media screen and (max-width: #{breakpoint(lg)}) { |
741 | // Prevent overflow | |
742 | p-paginator { | |
743 | .p-paginator-current, | |
744 | .p-dropdown { | |
745 | top: 0; | |
746 | margin-top: 30px; | |
747 | } | |
748 | } | |
749 | } | |
619443a3 | 750 | |
d7941370 C |
751 | @media screen and (max-width: $mobile-view) { |
752 | // Prevent overflow | |
753 | p-paginator { | |
754 | .p-paginator-pages > .p-paginator-page:not(.p-highlight) { | |
755 | display: none; | |
165ee292 K |
756 | } |
757 | } | |
758 | } | |
759 | } | |
760 | ||
bbe0f064 | 761 | // PrimeNG calendar tweaks |
4f926722 | 762 | p-calendar .p-datepicker { |
bbe0f064 C |
763 | a { |
764 | @include disable-default-a-behaviour; | |
765 | } | |
766 | ||
4f926722 | 767 | .p-datepicker-header { |
bbe0f064 | 768 | |
4f926722 | 769 | .p-datepicker-year { |
27bc9586 | 770 | @include margin-left(5px); |
bbe0f064 C |
771 | } |
772 | ||
4f926722 | 773 | .p-datepicker-next { |
72cd9f30 | 774 | @include chevron-right-default; |
276d9652 | 775 | |
aa879092 | 776 | color: #000 !important; |
27bc9586 | 777 | text-align: end; |
276d9652 C |
778 | |
779 | .pi.pi-chevron-right { | |
780 | display: none !important; | |
781 | } | |
bbe0f064 C |
782 | } |
783 | ||
4f926722 | 784 | .p-datepicker-prev { |
72cd9f30 | 785 | @include chevron-left-default; |
276d9652 | 786 | |
aa879092 | 787 | color: #000 !important; |
27bc9586 | 788 | text-align: start; |
276d9652 C |
789 | |
790 | .pi.pi-chevron-left { | |
791 | display: none !important; | |
792 | } | |
bbe0f064 C |
793 | } |
794 | } | |
795 | ||
4f926722 | 796 | .p-timepicker { |
bbe0f064 C |
797 | |
798 | .pi.pi-chevron-up { | |
72cd9f30 | 799 | @include chevron-up-default; |
aa879092 C |
800 | |
801 | color: #000 !important; | |
bbe0f064 C |
802 | } |
803 | ||
804 | .pi.pi-chevron-down { | |
72cd9f30 | 805 | @include chevron-down-default; |
aa879092 C |
806 | |
807 | color: #000 !important; | |
bbe0f064 C |
808 | } |
809 | } | |
791645e6 C |
810 | } |
811 | ||
4f926722 | 812 | p-tablecheckbox:hover div .p-checkbox-box { |
46db9430 RK |
813 | box-shadow: 0 0 0 .1rem rgba(87, 85, 217, .2); |
814 | } | |
815 | ||
4f926722 | 816 | .p-checkbox { |
276d9652 | 817 | |
4f926722 | 818 | &, .p-checkbox-box { |
17bb716b C |
819 | width: 18px !important; |
820 | height: 18px !important; | |
791645e6 C |
821 | } |
822 | ||
4f926722 C |
823 | .p-checkbox-box { |
824 | &.p-highlight { | |
e66883b3 RK |
825 | border-color: pvar(--mainColor) !important; |
826 | background-color: pvar(--mainColor) !important; | |
791645e6 C |
827 | } |
828 | ||
4f926722 | 829 | .p-checkbox-icon { |
17bb716b C |
830 | position: relative; |
831 | overflow: visible !important; | |
832 | ||
833 | &:after { | |
834 | content: ''; | |
835 | position: absolute; | |
4f926722 C |
836 | bottom: -5px; |
837 | left: -2px; | |
17bb716b C |
838 | width: 5px; |
839 | height: 12px; | |
840 | opacity: 0; | |
841 | transform: rotate(45deg) scale(0); | |
e66883b3 RK |
842 | border-right: 2px solid pvar(--mainBackgroundColor); |
843 | border-bottom: 2px solid pvar(--mainBackgroundColor); | |
17bb716b C |
844 | } |
845 | ||
846 | &.pi-check:after { | |
847 | opacity: 1; | |
848 | transform: rotate(45deg) scale(1); | |
849 | } | |
791645e6 C |
850 | } |
851 | } | |
276d9652 C |
852 | } |
853 | ||
f8b2c1b4 | 854 | p-toast { |
4f926722 C |
855 | .p-toast { |
856 | width: auto; | |
857 | max-width: 300px; | |
e6ad4316 | 858 | min-width: 200px; |
3195cd1c | 859 | |
4f926722 | 860 | .p-toast-icon-close { |
21973012 | 861 | opacity: 0; |
4f926722 C |
862 | position: absolute; |
863 | right: 5px; | |
864 | top: 5px; | |
93c728a2 C |
865 | width: 18px; |
866 | height: 18px; | |
867 | background: url('../assets/images/feather/x.svg') no-repeat; | |
868 | background-size: contain; | |
75264e37 RK |
869 | } |
870 | ||
4f926722 | 871 | &:hover .p-toast-icon-close { |
21973012 | 872 | opacity: .3; |
75264e37 RK |
873 | } |
874 | } | |
875 | ||
4f926722 | 876 | .p-toast-message { |
f8b2c1b4 | 877 | font-family: $main-fonts; |
e66883b3 RK |
878 | background-color: pvar(--mainBackgroundColor) !important; |
879 | color: pvar(--mainForegroundColor) !important; | |
28c801b6 RK |
880 | border-radius: 5px; |
881 | box-sizing: border-box; | |
882 | border: 1px solid #EBEEF5 !important; | |
883 | box-shadow: 0 2px 12px 0 rgba(0, 0 , 0, .1); | |
884 | overflow: hidden; | |
885 | ||
4707f410 C |
886 | .notification-block { |
887 | display: flex; | |
2f1548fd | 888 | align-items: center; |
e6ad4316 | 889 | width: 100%; |
93991770 | 890 | padding: 10px 20px; |
f8b2c1b4 | 891 | |
4707f410 | 892 | .message { |
27bc9586 | 893 | @include margin-right(20px); |
6e7e63b8 | 894 | |
c4a05171 C |
895 | flex-grow: 1; |
896 | ||
4707f410 C |
897 | h3 { |
898 | font-size: 21px; | |
899 | } | |
f8b2c1b4 | 900 | |
4707f410 | 901 | p { |
c4a05171 C |
902 | @include peertube-word-wrap; |
903 | ||
2f1548fd | 904 | margin-bottom: 0; |
4707f410 | 905 | } |
f8b2c1b4 | 906 | } |
f8b2c1b4 C |
907 | } |
908 | } | |
93c728a2 C |
909 | |
910 | .p-toast-message-success my-global-icon { | |
911 | color: #8BC34A !important; | |
912 | } | |
913 | ||
914 | .p-toast-message-error my-global-icon { | |
915 | color: #F44336 !important; | |
916 | } | |
917 | ||
918 | .p-toast-message-warn my-global-icon { | |
919 | color: #F1680D !important; | |
920 | } | |
921 | ||
922 | .p-toast-message-info my-global-icon { | |
923 | color: #03A9F4 !important; | |
924 | } | |
f8b2c1b4 | 925 | } |
17bb716b | 926 | |
d94b8ecf C |
927 | @media screen and (max-width: $primeng-breakpoint) { |
928 | p-table { | |
929 | td { | |
930 | padding: 3px 0; | |
931 | ||
932 | &.expand-cell { | |
933 | padding: 5px; | |
934 | } | |
935 | } | |
936 | ||
937 | .p-datatable-tbody { | |
938 | ||
939 | td:last-child { | |
940 | padding-bottom: 15px; | |
941 | margin-bottom: 15px; | |
942 | border-bottom: 1px solid $separator-border-color !important; | |
943 | } | |
944 | } | |
945 | } | |
946 | } | |
947 | ||
948 | @media screen and (max-width: $mobile-view) { | |
949 | p-table { | |
950 | .p-datatable-header { | |
951 | .caption { | |
952 | flex-wrap: wrap; | |
953 | ||
954 | > div { | |
955 | width: 100%; | |
956 | padding: 0 !important; | |
957 | margin-bottom: 5px; | |
958 | } | |
959 | } | |
960 | } | |
961 | } | |
962 | } |