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