1 @use '_variables' as *;
5 /* stylelint-disable */
6 @import '~primeng/resources/primeng.css';
8 // Override primeng style we don't want
10 border-radius: inherit;
13 p-table .p-datatable-header .caption {
17 // Taken from old nova light theme
25 display: inline-block;
26 vertical-align: middle;
31 body .p-checkbox .p-checkbox-box {
32 border: 1px solid #a6a6a6;
33 background-color: #ffffff;
38 transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
40 body .p-checkbox .p-checkbox-box:not(.p-disabled):hover {
41 border-color: #212121;
43 body .p-checkbox .p-checkbox-box .p-checkbox-icon {
51 background-color: #f4f4f4;
52 border: 1px solid #c8c8c8;
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 {
67 transition: box-shadow 0.2s;
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;
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 {
83 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
85 body .p-paginator .p-paginator-current {
91 body .p-paginator .p-dropdown {
94 body .p-paginator .p-dropdown .p-dropdown-trigger, body .p-paginator .p-dropdown .p-dropdown-label {
97 body .p-paginator .p-dropdown:hover .p-dropdown-trigger, body .p-paginator .p-dropdown:hover .p-dropdown-label {
100 body .p-paginator .p-paginator-first:before {
104 body .p-paginator .p-paginator-prev:before {
108 body .p-paginator .p-paginator-next:before {
112 body .p-paginator .p-paginator-last:before {
116 body .p-paginator .p-paginator-pages {
118 display: inline-block;
121 body .p-paginator .p-paginator-pages .p-paginator-page {
126 line-height: 2.286em;
130 transition: box-shadow 0.2s;
133 body .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover {
134 background-color: #e0e0e0;
137 body .p-paginator .p-paginator-pages .p-paginator-page:focus {
140 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
142 body .p-paginator .p-dropdown {
143 @include margin-left(0.5em);
153 border: 1px solid #a6a6a6;
154 transition: border-color 0.2s, box-shadow 0.2s;
156 body .p-dropdown:not(.p-disabled):hover {
157 border-color: #212121;
159 body .p-dropdown:not(.p-disabled).p-focus {
162 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
163 border-color: pvar(--mainColor);
165 body .p-dropdown .p-dropdown-label {
166 @include padding-right(2em);
168 body .p-dropdown .p-dropdown-trigger {
169 background-color: #ffffff;
176 body .p-dropdown .p-dropdown-clear-icon {
179 body .p-dropdown.p-dropdown-clearable .p-dropdown-label {
180 @include padding-right(4em);
182 body .p-dropdown-panel {
184 border: 1px solid #c8c8c8;
185 background-color: #ffffff;
186 box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
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;
192 background-color: #ffffff;
195 body .p-dropdown-panel .p-dropdown-filter-container .p-dropdown-filter {
196 @include padding-right(2em);
200 body .p-dropdown-panel .p-dropdown-filter-container .p-dropdown-filter-icon {
204 color: pvar(--mainColor);
206 body .p-dropdown-panel .p-dropdown-items {
209 body .p-dropdown-panel .p-dropdown-items .p-dropdown-item, body .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group {
211 padding: 0.429em 0.857em;
214 background-color: transparent;
215 -moz-border-radius: 0;
216 -webkit-border-radius: 0;
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 {
222 background-color: pvar(--mainColor);
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 {
227 background-color: #eaeaea;
229 body p-dropdown.ng-dirty.ng-invalid > .p-dropdown {
230 border: 1px solid #a80000;
234 body .p-toast .p-toast-message {
235 box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
243 background-color: #ffffff;
245 border: 1px solid #a6a6a6;
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);
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 {
256 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
258 body .p-datepicker:not(.p-disabled) table td a:not(.p-highlight):not(.p-highlight):hover {
259 background-color: #eaeaea;
261 body .p-datepicker:not(.p-disabled) .p-monthpicker a.p-monthpicker-month:not(.p-highlight):hover {
262 background-color: #eaeaea;
264 body .p-datepicker .p-datepicker-header {
265 padding: 0.429em 0.857em 0.429em 0.857em;
266 background-color: #ffffff;
268 -moz-border-radius: 0;
269 -webkit-border-radius: 0;
272 body .p-datepicker .p-datepicker-header .p-datepicker-prev,
273 body .p-datepicker .p-datepicker-header .p-datepicker-next {
277 transition: color 0.2s, box-shadow 0.2s;
279 body .p-datepicker .p-datepicker-header .p-datepicker-title {
284 body .p-datepicker .p-datepicker-header .p-datepicker-title select {
287 transition: color 0.2s, box-shadow 0.2s;
289 body .p-datepicker .p-datepicker-header .p-datepicker-title select:focus {
292 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
294 body .p-datepicker table {
296 margin: 0.857em 0 0 0;
298 body .p-datepicker table th {
301 body .p-datepicker table th.p-datepicker-weekheader {
302 border-right: 1px solid #a6a6a6;
304 body .p-datepicker table td {
307 body .p-datepicker table td > a,
308 body .p-datepicker table td > span {
313 transition: box-shadow 0.2s;
316 body .p-datepicker table td > a.p-highlight,
317 body .p-datepicker table td > span.p-highlight {
319 background-color: pvar(--mainColor);
321 body .p-datepicker table td > a {
324 body .p-datepicker table td > a:focus {
327 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
329 body .p-datepicker table td.p-datepicker-today > a,
330 body .p-datepicker table td.p-datepicker-today > span {
331 background-color: #d0d0d0;
334 body .p-datepicker table td.p-datepicker-today > a.p-highlight,
335 body .p-datepicker table td.p-datepicker-today > span.p-highlight {
337 background-color: pvar(--mainColor);
339 body .p-datepicker table td.p-datepicker-weeknumber {
340 border-right: 1px solid #a6a6a6;
342 body .p-datepicker .p-datepicker-buttonbar {
343 border-top: 1px solid #d8dae2;
345 body .p-datepicker .p-timepicker {
347 border-top: 1px solid #d8dae2;
350 body .p-datepicker .p-timepicker a {
354 body .p-datepicker .p-timepicker a:hover {
355 color: pvar(--mainColor);
357 body .p-datepicker .p-timepicker span {
360 body .p-datepicker .p-monthpicker .p-monthpicker-month {
363 body .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight {
365 background-color: pvar(--mainColor);
367 body .p-datepicker.p-datepicker-timeonly {
370 body .p-datepicker.p-datepicker-timeonly .p-timepicker {
373 body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group {
374 @include padding-right(0.857em);
375 @include padding-left(0.857em);
377 border-right: 1px solid #d8dae2;
381 body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child {
382 @include padding-left(0);
384 body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child {
385 @include padding-right(0);
386 border-right: 0 none;
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;
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;
397 body .p-calendar.p-calendar-w-btn .p-datepicker-trigger.p-button {
399 border-top-left-radius: 0;
400 border-bottom-left-radius: 0;
402 body .ui-fluid .p-calendar.p-calendar-w-btn input.p-inputtext {
403 width: calc(100% - 2.357em);
405 body p-calendar.ng-dirty.ng-invalid > .p-calendar > .p-inputtext {
406 border: 1px solid #a80000;
408 body .p-timepicker .p-separator {
409 @include margin-left(0);
414 body .p-autocomplete .p-autocomplete-input {
417 body .p-autocomplete-panel {
419 border: 1px solid #c8c8c8;
420 background-color: #ffffff;
421 box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
423 body .p-autocomplete-panel .p-autocomplete-items {
426 body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item {
428 padding: 0.429em 0.857em;
431 background-color: transparent;
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 {
437 background-color: pvar(--mainColor);
439 body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-group {
440 padding: 0.429em 0.857em;
441 background-color: #d8dae2;
444 body p-autocomplete.ng-dirty.ng-invalid > .p-autocomplete > .p-inputtext {
445 border: 1px solid #a80000;
448 // ---------------------------------------------------------------------------
449 // PeerTube customizations
450 // ---------------------------------------------------------------------------
457 .p-datatable-header {
458 border: none !important;
459 background-color: pvar(--mainBackgroundColor) !important;
464 display: inline-flex;
468 @include padding-left(15px);
474 background-color: pvar(--mainBackgroundColor) !important;
477 text-overflow: ellipsis;
482 font-family: $main-fonts;
484 color: pvar(--mainForegroundColor) !important;
488 @include padding-left(15px !important);
494 &:not(.action-cell):not(.expand-cell):not(.checkbox-cell) {
495 overflow: hidden !important;
496 text-overflow: ellipsis !important;
497 white-space: nowrap !important;
503 background-color: pvar(--mainBackgroundColor) !important;
507 background-color: pvar(--submenuBackgroundColor) !important;
510 color: pvar(--mainForegroundColor) !important;
518 background-color: pvar(--submenuBackgroundColor) !important;
522 border: none !important;
523 white-space: normal !important;
527 border-top: none !important;
531 border-bottom: none !important;
536 box-shadow: none !important;
548 border: none !important;
549 border-bottom: 1px solid !important;
550 border-color: pvar(--submenuBackgroundColor) !important;
551 text-align: left !important;
552 padding: 5px 0 5px 15px !important;
553 font-weight: $font-semibold !important;
554 color: pvar(--mainForegroundColor) !important;
556 &.p-sortable-column:hover {
557 background-color: pvar(--submenuBackgroundColor) !important;
561 background-color: pvar(--submenuBackgroundColor) !important;
563 .pi-sort-amount-up-alt,
564 .pi-sort-amount-down {
565 display: inline-block;
568 color: pvar(--mainForegroundColor) !important;
571 .pi-sort-amount-up-alt {
572 @include arrow-up(5px);
575 .pi-sort-amount-down {
576 @include arrow-down(5px);
582 width: 250px !important;
588 display: inline-block !important;
589 @include margin-left(5px);
592 @include margin-left(0)
598 .p-paginator-bottom {
599 background-color: pvar(--mainBackgroundColor) !important;
602 border-top: 1px solid !important;
603 border-color: pvar(--submenuBackgroundColor) !important;
606 justify-content: center;
615 box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
619 color: pvar(--inputPlaceholderColor);
624 .p-dropdown-trigger {
625 color: pvar(--mainForegroundColor);
626 background-color: pvar(--mainBackgroundColor);
629 .p-paginator-current {
632 color: pvar(--inputPlaceholderColor);
635 @media screen and (max-width: $small-view) {
648 color: pvar(--mainForegroundColor);
652 box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
656 background-color: #fff !important;
659 &.p-paginator-first {
663 background: url('../assets/images/feather/skip-back.svg') no-repeat;
664 background-size: contain;
669 @include margin-right(10px);
672 @include chevron-left-default;
677 @include margin-left(10px);
680 @include chevron-right-default;
688 background: url('../assets/images/feather/skip-forward.svg') no-repeat;
689 background-size: contain;
695 height: auto !important;
700 box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest) !important;
703 color: pvar(--mainForegroundColor) !important;
704 font-weight: $font-semibold !important;
705 margin: 0 5px !important;
706 outline: 0 !important;
707 border-radius: 3px !important;
708 padding: 5px 2px !important;
709 height: auto !important;
710 line-height: initial !important;
713 &, &:hover, &:active, &:focus {
714 color: #fff !important;
715 background-color: pvar(--mainColor) !important;
725 text-transform: uppercase;
729 // overflow data table
731 .p-datatable-wrapper {
740 @media screen and (max-width: #{breakpoint(lg)}) {
743 .p-paginator-current,
751 @media screen and (max-width: $mobile-view) {
754 .p-paginator-pages > .p-paginator-page:not(.p-highlight) {
761 // PrimeNG calendar tweaks
762 p-calendar .p-datepicker {
764 @include disable-default-a-behaviour;
767 .p-datepicker-header {
770 @include margin-left(5px);
774 @include chevron-right-default;
776 color: #000 !important;
779 .pi.pi-chevron-right {
780 display: none !important;
785 @include chevron-left-default;
787 color: #000 !important;
790 .pi.pi-chevron-left {
791 display: none !important;
799 @include chevron-up-default;
801 color: #000 !important;
804 .pi.pi-chevron-down {
805 @include chevron-down-default;
807 color: #000 !important;
812 p-tablecheckbox:hover div .p-checkbox-box {
813 box-shadow: 0 0 0 .1rem rgba(87, 85, 217, .2);
819 width: 18px !important;
820 height: 18px !important;
825 border-color: pvar(--mainColor) !important;
826 background-color: pvar(--mainColor) !important;
831 overflow: visible !important;
841 transform: rotate(45deg) scale(0);
842 border-right: 2px solid pvar(--mainBackgroundColor);
843 border-bottom: 2px solid pvar(--mainBackgroundColor);
848 transform: rotate(45deg) scale(1);
860 .p-toast-icon-close {
867 background: url('../assets/images/feather/x.svg') no-repeat;
868 background-size: contain;
871 &:hover .p-toast-icon-close {
877 font-family: $main-fonts;
878 background-color: pvar(--mainBackgroundColor) !important;
879 color: pvar(--mainForegroundColor) !important;
881 box-sizing: border-box;
882 border: 1px solid #EBEEF5 !important;
883 box-shadow: 0 2px 12px 0 rgba(0, 0 , 0, .1);
886 .notification-block {
893 @include margin-right(20px);
902 @include peertube-word-wrap;
910 .p-toast-message-success my-global-icon {
911 color: #8BC34A !important;
914 .p-toast-message-error my-global-icon {
915 color: #F44336 !important;
918 .p-toast-message-warn my-global-icon {
919 color: #F1680D !important;
922 .p-toast-message-info my-global-icon {
923 color: #03A9F4 !important;
927 @media screen and (max-width: $primeng-breakpoint) {
940 padding-bottom: 15px;
942 border-bottom: 1px solid $separator-border-color !important;
948 @media screen and (max-width: $mobile-view) {
950 .p-datatable-header {
956 padding: 0 !important;