]>
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 { | |
42379e4e C |
548 | @include padding-left(15px); |
549 | @include padding-right(0px); | |
550 | ||
551 | padding-top: 5px !important; | |
552 | padding-bottom: 5px !important; | |
553 | ||
bbe0f064 | 554 | border: none !important; |
b9fcfb1d | 555 | border-bottom: 1px solid !important; |
218f730c | 556 | border-color: pvar(--submenuBackgroundColor) !important; |
42379e4e | 557 | text-align: start !important; |
bbe0f064 | 558 | font-weight: $font-semibold !important; |
e66883b3 | 559 | color: pvar(--mainForegroundColor) !important; |
bbe0f064 | 560 | |
4f926722 | 561 | &.p-sortable-column:hover { |
218f730c | 562 | background-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 C |
563 | } |
564 | ||
4f926722 | 565 | &.p-highlight { |
218f730c | 566 | background-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 | 567 | |
93c728a2 C |
568 | .pi-sort-amount-up-alt, |
569 | .pi-sort-amount-down { | |
570 | display: inline-block; | |
571 | position: relative; | |
572 | top: -1px; | |
573 | color: pvar(--mainForegroundColor) !important; | |
574 | } | |
bbe0f064 | 575 | |
93c728a2 C |
576 | .pi-sort-amount-up-alt { |
577 | @include arrow-up(5px); | |
578 | } | |
f2fab901 | 579 | |
93c728a2 C |
580 | .pi-sort-amount-down { |
581 | @include arrow-down(5px); | |
bbe0f064 C |
582 | } |
583 | } | |
584 | } | |
585 | ||
586 | .action-cell { | |
587 | width: 250px !important; | |
bbe0f064 | 588 | |
28e0e40d C |
589 | .dropdown-root, |
590 | my-edit-button, | |
591 | my-delete-button, | |
592 | my-button { | |
2170f1db | 593 | display: inline-block !important; |
27bc9586 | 594 | @include margin-left(5px); |
c5a1ae50 | 595 | |
9c1a88e3 | 596 | &:first-child { |
27bc9586 | 597 | @include margin-left(0) |
165ee292 | 598 | } |
bbe0f064 C |
599 | } |
600 | } | |
601 | ||
602 | p-paginator { | |
4f926722 | 603 | .p-paginator-bottom { |
e66883b3 | 604 | background-color: pvar(--mainBackgroundColor) !important; |
bbe0f064 | 605 | position: relative; |
8b183196 RK |
606 | border: none; |
607 | border-top: 1px solid !important; | |
218f730c | 608 | border-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 C |
609 | height: 40px; |
610 | display: flex; | |
611 | justify-content: center; | |
612 | align-items: center; | |
613 | ||
4f926722 | 614 | .p-dropdown { |
2bc9bd08 | 615 | position: absolute; |
4f926722 | 616 | top: 10px; |
2bc9bd08 | 617 | left: 0; |
9b4241e3 | 618 | |
4f926722 | 619 | &.p-focus { |
e66883b3 | 620 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
9b4241e3 RK |
621 | } |
622 | ||
4f926722 | 623 | .p-label { |
e66883b3 | 624 | color: pvar(--inputPlaceholderColor); |
9b4241e3 | 625 | } |
2bc9bd08 RK |
626 | } |
627 | ||
a3345972 C |
628 | .p-dropdown, |
629 | .p-dropdown-trigger { | |
630 | color: pvar(--mainForegroundColor); | |
631 | background-color: pvar(--mainBackgroundColor); | |
632 | } | |
633 | ||
4f926722 | 634 | .p-paginator-current { |
2bc9bd08 RK |
635 | position: absolute; |
636 | right: 0; | |
e66883b3 | 637 | color: pvar(--inputPlaceholderColor); |
4f926722 | 638 | overflow: visible; |
fbe088b8 C |
639 | |
640 | @media screen and (max-width: $small-view) { | |
641 | left: 0; | |
642 | top: 40px; | |
643 | } | |
2bc9bd08 RK |
644 | } |
645 | ||
4f926722 C |
646 | .p-paginator-first, |
647 | .p-paginator-prev, | |
648 | .p-paginator-next, | |
649 | .p-paginator-last { | |
30eac84e | 650 | padding: 5px 2px; |
93c728a2 | 651 | height: 100%; |
30eac84e | 652 | outline: none; |
93c728a2 | 653 | color: pvar(--mainForegroundColor); |
30eac84e | 654 | |
2bc9bd08 RK |
655 | &.focus-within, |
656 | &:focus { | |
e66883b3 | 657 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
2bc9bd08 RK |
658 | } |
659 | ||
4f926722 | 660 | &.p-disabled:hover { |
30eac84e C |
661 | background-color: #fff !important; |
662 | } | |
663 | ||
4f926722 | 664 | &.p-paginator-first { |
93c728a2 C |
665 | .p-paginator-icon { |
666 | width: 18px; | |
667 | height: 18px; | |
668 | background: url('../assets/images/feather/skip-back.svg') no-repeat; | |
669 | background-size: contain; | |
670 | } | |
30eac84e C |
671 | } |
672 | ||
4f926722 | 673 | &.p-paginator-prev { |
3bf57a01 C |
674 | @include margin-right(10px); |
675 | ||
93c728a2 | 676 | .p-paginator-icon { |
72cd9f30 | 677 | @include chevron-left-default; |
93c728a2 | 678 | } |
30eac84e C |
679 | } |
680 | ||
4f926722 | 681 | &.p-paginator-next { |
3bf57a01 C |
682 | @include margin-left(10px); |
683 | ||
93c728a2 | 684 | .p-paginator-icon { |
72cd9f30 | 685 | @include chevron-right-default; |
93c728a2 | 686 | } |
30eac84e C |
687 | } |
688 | ||
4f926722 | 689 | &.p-paginator-last { |
93c728a2 C |
690 | .p-paginator-icon { |
691 | width: 18px; | |
692 | height: 18px; | |
693 | background: url('../assets/images/feather/skip-forward.svg') no-repeat; | |
694 | background-size: contain; | |
695 | } | |
30eac84e C |
696 | } |
697 | } | |
698 | ||
4f926722 | 699 | .p-paginator-pages { |
bbe0f064 C |
700 | height: auto !important; |
701 | ||
4f926722 | 702 | .p-paginator-page { |
2bc9bd08 RK |
703 | &.focus-within, |
704 | &:focus { | |
e66883b3 | 705 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest) !important; |
165ee292 | 706 | } |
2bc9bd08 | 707 | |
e66883b3 | 708 | color: pvar(--mainForegroundColor) !important; |
bbe0f064 | 709 | font-weight: $font-semibold !important; |
276d9652 | 710 | margin: 0 5px !important; |
bbe0f064 C |
711 | outline: 0 !important; |
712 | border-radius: 3px !important; | |
713 | padding: 5px 2px !important; | |
714 | height: auto !important; | |
276d9652 | 715 | line-height: initial !important; |
bbe0f064 | 716 | |
4f926722 | 717 | &.p-highlight { |
bbe0f064 C |
718 | &, &:hover, &:active, &:focus { |
719 | color: #fff !important; | |
e66883b3 | 720 | background-color: pvar(--mainColor) !important; |
bbe0f064 C |
721 | } |
722 | } | |
723 | } | |
724 | } | |
725 | } | |
726 | } | |
eeae8142 | 727 | |
4c8749cb C |
728 | .pt-badge { |
729 | font-size: 12px; | |
730 | text-transform: uppercase; | |
eeae8142 | 731 | } |
bbe0f064 C |
732 | } |
733 | ||
165ee292 | 734 | // overflow data table |
d7941370 C |
735 | p-table { |
736 | .p-datatable-wrapper { | |
737 | overflow-x: auto; | |
738 | max-width: 100%; | |
165ee292 | 739 | |
d7941370 | 740 | table { |
d94b8ecf | 741 | width: 100%; |
d7941370 C |
742 | } |
743 | } | |
619443a3 | 744 | |
d7941370 C |
745 | @media screen and (max-width: #{breakpoint(lg)}) { |
746 | // Prevent overflow | |
747 | p-paginator { | |
748 | .p-paginator-current, | |
749 | .p-dropdown { | |
750 | top: 0; | |
751 | margin-top: 30px; | |
752 | } | |
753 | } | |
754 | } | |
619443a3 | 755 | |
d7941370 C |
756 | @media screen and (max-width: $mobile-view) { |
757 | // Prevent overflow | |
758 | p-paginator { | |
759 | .p-paginator-pages > .p-paginator-page:not(.p-highlight) { | |
760 | display: none; | |
165ee292 K |
761 | } |
762 | } | |
763 | } | |
764 | } | |
765 | ||
bbe0f064 | 766 | // PrimeNG calendar tweaks |
4f926722 | 767 | p-calendar .p-datepicker { |
bbe0f064 C |
768 | a { |
769 | @include disable-default-a-behaviour; | |
770 | } | |
771 | ||
4f926722 | 772 | .p-datepicker-header { |
bbe0f064 | 773 | |
4f926722 | 774 | .p-datepicker-year { |
27bc9586 | 775 | @include margin-left(5px); |
bbe0f064 C |
776 | } |
777 | ||
4f926722 | 778 | .p-datepicker-next { |
72cd9f30 | 779 | @include chevron-right-default; |
276d9652 | 780 | |
aa879092 | 781 | color: #000 !important; |
27bc9586 | 782 | text-align: end; |
276d9652 C |
783 | |
784 | .pi.pi-chevron-right { | |
785 | display: none !important; | |
786 | } | |
bbe0f064 C |
787 | } |
788 | ||
4f926722 | 789 | .p-datepicker-prev { |
72cd9f30 | 790 | @include chevron-left-default; |
276d9652 | 791 | |
aa879092 | 792 | color: #000 !important; |
27bc9586 | 793 | text-align: start; |
276d9652 C |
794 | |
795 | .pi.pi-chevron-left { | |
796 | display: none !important; | |
797 | } | |
bbe0f064 C |
798 | } |
799 | } | |
800 | ||
4f926722 | 801 | .p-timepicker { |
bbe0f064 C |
802 | |
803 | .pi.pi-chevron-up { | |
72cd9f30 | 804 | @include chevron-up-default; |
aa879092 C |
805 | |
806 | color: #000 !important; | |
bbe0f064 C |
807 | } |
808 | ||
809 | .pi.pi-chevron-down { | |
72cd9f30 | 810 | @include chevron-down-default; |
aa879092 C |
811 | |
812 | color: #000 !important; | |
bbe0f064 C |
813 | } |
814 | } | |
791645e6 C |
815 | } |
816 | ||
4f926722 | 817 | p-tablecheckbox:hover div .p-checkbox-box { |
46db9430 RK |
818 | box-shadow: 0 0 0 .1rem rgba(87, 85, 217, .2); |
819 | } | |
820 | ||
4f926722 | 821 | .p-checkbox { |
276d9652 | 822 | |
4f926722 | 823 | &, .p-checkbox-box { |
17bb716b C |
824 | width: 18px !important; |
825 | height: 18px !important; | |
791645e6 C |
826 | } |
827 | ||
4f926722 C |
828 | .p-checkbox-box { |
829 | &.p-highlight { | |
e66883b3 RK |
830 | border-color: pvar(--mainColor) !important; |
831 | background-color: pvar(--mainColor) !important; | |
791645e6 C |
832 | } |
833 | ||
4f926722 | 834 | .p-checkbox-icon { |
17bb716b C |
835 | position: relative; |
836 | overflow: visible !important; | |
837 | ||
838 | &:after { | |
839 | content: ''; | |
840 | position: absolute; | |
4f926722 C |
841 | bottom: -5px; |
842 | left: -2px; | |
17bb716b C |
843 | width: 5px; |
844 | height: 12px; | |
845 | opacity: 0; | |
846 | transform: rotate(45deg) scale(0); | |
e66883b3 RK |
847 | border-right: 2px solid pvar(--mainBackgroundColor); |
848 | border-bottom: 2px solid pvar(--mainBackgroundColor); | |
17bb716b C |
849 | } |
850 | ||
851 | &.pi-check:after { | |
852 | opacity: 1; | |
853 | transform: rotate(45deg) scale(1); | |
854 | } | |
791645e6 C |
855 | } |
856 | } | |
276d9652 C |
857 | } |
858 | ||
f8b2c1b4 | 859 | p-toast { |
4f926722 C |
860 | .p-toast { |
861 | width: auto; | |
862 | max-width: 300px; | |
e6ad4316 | 863 | min-width: 200px; |
3195cd1c | 864 | |
4f926722 | 865 | .p-toast-icon-close { |
21973012 | 866 | opacity: 0; |
4f926722 C |
867 | position: absolute; |
868 | right: 5px; | |
869 | top: 5px; | |
93c728a2 C |
870 | width: 18px; |
871 | height: 18px; | |
872 | background: url('../assets/images/feather/x.svg') no-repeat; | |
873 | background-size: contain; | |
75264e37 RK |
874 | } |
875 | ||
4f926722 | 876 | &:hover .p-toast-icon-close { |
21973012 | 877 | opacity: .3; |
75264e37 RK |
878 | } |
879 | } | |
880 | ||
4f926722 | 881 | .p-toast-message { |
f8b2c1b4 | 882 | font-family: $main-fonts; |
e66883b3 RK |
883 | background-color: pvar(--mainBackgroundColor) !important; |
884 | color: pvar(--mainForegroundColor) !important; | |
28c801b6 RK |
885 | border-radius: 5px; |
886 | box-sizing: border-box; | |
887 | border: 1px solid #EBEEF5 !important; | |
888 | box-shadow: 0 2px 12px 0 rgba(0, 0 , 0, .1); | |
889 | overflow: hidden; | |
890 | ||
4707f410 C |
891 | .notification-block { |
892 | display: flex; | |
2f1548fd | 893 | align-items: center; |
e6ad4316 | 894 | width: 100%; |
93991770 | 895 | padding: 10px 20px; |
f8b2c1b4 | 896 | |
4707f410 | 897 | .message { |
27bc9586 | 898 | @include margin-right(20px); |
6e7e63b8 | 899 | |
c4a05171 C |
900 | flex-grow: 1; |
901 | ||
4707f410 C |
902 | h3 { |
903 | font-size: 21px; | |
904 | } | |
f8b2c1b4 | 905 | |
4707f410 | 906 | p { |
c4a05171 C |
907 | @include peertube-word-wrap; |
908 | ||
2f1548fd | 909 | margin-bottom: 0; |
4707f410 | 910 | } |
f8b2c1b4 | 911 | } |
f8b2c1b4 C |
912 | } |
913 | } | |
93c728a2 C |
914 | |
915 | .p-toast-message-success my-global-icon { | |
916 | color: #8BC34A !important; | |
917 | } | |
918 | ||
919 | .p-toast-message-error my-global-icon { | |
920 | color: #F44336 !important; | |
921 | } | |
922 | ||
923 | .p-toast-message-warn my-global-icon { | |
924 | color: #F1680D !important; | |
925 | } | |
926 | ||
927 | .p-toast-message-info my-global-icon { | |
928 | color: #03A9F4 !important; | |
929 | } | |
f8b2c1b4 | 930 | } |
17bb716b | 931 | |
d94b8ecf C |
932 | @media screen and (max-width: $primeng-breakpoint) { |
933 | p-table { | |
934 | td { | |
935 | padding: 3px 0; | |
936 | ||
937 | &.expand-cell { | |
938 | padding: 5px; | |
939 | } | |
940 | } | |
941 | ||
942 | .p-datatable-tbody { | |
943 | ||
944 | td:last-child { | |
945 | padding-bottom: 15px; | |
946 | margin-bottom: 15px; | |
947 | border-bottom: 1px solid $separator-border-color !important; | |
948 | } | |
949 | } | |
950 | } | |
951 | } | |
952 | ||
953 | @media screen and (max-width: $mobile-view) { | |
954 | p-table { | |
955 | .p-datatable-header { | |
956 | .caption { | |
957 | flex-wrap: wrap; | |
958 | ||
959 | > div { | |
960 | width: 100%; | |
961 | padding: 0 !important; | |
962 | margin-bottom: 5px; | |
963 | } | |
964 | } | |
965 | } | |
966 | } | |
967 | } |