1 @use '_variables' as *;
4 /* stylelint-disable */
5 @import '~primeng/resources/primeng.css';
7 // Override primeng style we don't want
9 border-radius: inherit;
12 p-table .p-datatable-header .caption {
16 // Taken from old nova light theme
24 display: inline-block;
25 vertical-align: middle;
30 body .p-checkbox .p-checkbox-box {
31 border: 1px solid #a6a6a6;
32 background-color: #ffffff;
37 transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
39 body .p-checkbox .p-checkbox-box:not(.p-disabled):hover {
40 border-color: #212121;
42 body .p-checkbox .p-checkbox-box .p-checkbox-icon {
50 background-color: #f4f4f4;
51 border: 1px solid #c8c8c8;
54 body .p-paginator .p-paginator-first,
55 body .p-paginator .p-paginator-prev,
56 body .p-paginator .p-paginator-next,
57 body .p-paginator .p-paginator-last {
66 transition: box-shadow 0.2s;
69 body .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover,
70 body .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover,
71 body .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover,
72 body .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover {
73 background-color: #e0e0e0;
76 body .p-paginator .p-paginator-first:focus,
77 body .p-paginator .p-paginator-prev:focus,
78 body .p-paginator .p-paginator-next:focus,
79 body .p-paginator .p-paginator-last:focus {
82 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
84 body .p-paginator .p-paginator-current {
90 body .p-paginator .p-dropdown {
93 body .p-paginator .p-dropdown .p-dropdown-trigger, body .p-paginator .p-dropdown .p-dropdown-label {
96 body .p-paginator .p-dropdown:hover .p-dropdown-trigger, body .p-paginator .p-dropdown:hover .p-dropdown-label {
99 body .p-paginator .p-paginator-first:before {
103 body .p-paginator .p-paginator-prev:before {
107 body .p-paginator .p-paginator-next:before {
111 body .p-paginator .p-paginator-last:before {
115 body .p-paginator .p-paginator-pages {
117 display: inline-block;
120 body .p-paginator .p-paginator-pages .p-paginator-page {
125 line-height: 2.286em;
129 transition: box-shadow 0.2s;
132 body .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover {
133 background-color: #e0e0e0;
136 body .p-paginator .p-paginator-pages .p-paginator-page:focus {
139 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
141 body .p-paginator .p-dropdown {
142 @include margin-left(0.5em);
152 border: 1px solid #a6a6a6;
153 transition: border-color 0.2s, box-shadow 0.2s;
155 body .p-dropdown:not(.p-disabled):hover {
156 border-color: #212121;
158 body .p-dropdown:not(.p-disabled).p-focus {
161 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
162 border-color: pvar(--mainColor);
164 body .p-dropdown .p-dropdown-label {
165 @include padding-right(2em);
167 body .p-dropdown .p-dropdown-trigger {
168 background-color: #ffffff;
175 body .p-dropdown .p-dropdown-clear-icon {
178 body .p-dropdown.p-dropdown-clearable .p-dropdown-label {
179 @include padding-right(4em);
181 body .p-dropdown-panel {
183 border: 1px solid #c8c8c8;
184 background-color: #ffffff;
185 box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
187 body .p-dropdown-panel .p-dropdown-filter-container {
188 padding: 0.429em 0.857em 0.429em 0.857em;
189 border-bottom: 1px solid #eaeaea;
191 background-color: #ffffff;
194 body .p-dropdown-panel .p-dropdown-filter-container .p-dropdown-filter {
195 @include padding-right(2em);
199 body .p-dropdown-panel .p-dropdown-filter-container .p-dropdown-filter-icon {
203 color: pvar(--mainColor);
205 body .p-dropdown-panel .p-dropdown-items {
208 body .p-dropdown-panel .p-dropdown-items .p-dropdown-item, body .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group {
210 padding: 0.429em 0.857em;
213 background-color: transparent;
214 -moz-border-radius: 0;
215 -webkit-border-radius: 0;
218 body .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight,
219 body .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group.p-highlight {
221 background-color: pvar(--mainColor);
223 body .p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover,
224 body .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group:not(.p-highlight):not(.p-disabled):hover {
226 background-color: #eaeaea;
228 body p-dropdown.ng-dirty.ng-invalid > .p-dropdown {
229 border: 1px solid #a80000;
233 body .p-toast .p-toast-message {
234 box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
242 background-color: #ffffff;
244 border: 1px solid #a6a6a6;
247 body .p-datepicker:not(.p-datepicker-inline) {
248 border: 1px solid #c8c8c8;
249 box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
251 body .p-datepicker:not(.p-disabled) .p-datepicker-header .p-datepicker-prev:focus,
252 body .p-datepicker:not(.p-disabled) .p-datepicker-header .p-datepicker-next:focus {
255 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
257 body .p-datepicker:not(.p-disabled) table td a:not(.p-highlight):not(.p-highlight):hover {
258 background-color: #eaeaea;
260 body .p-datepicker:not(.p-disabled) .p-monthpicker a.p-monthpicker-month:not(.p-highlight):hover {
261 background-color: #eaeaea;
263 body .p-datepicker .p-datepicker-header {
264 padding: 0.429em 0.857em 0.429em 0.857em;
265 background-color: #ffffff;
267 -moz-border-radius: 0;
268 -webkit-border-radius: 0;
271 body .p-datepicker .p-datepicker-header .p-datepicker-prev,
272 body .p-datepicker .p-datepicker-header .p-datepicker-next {
276 transition: color 0.2s, box-shadow 0.2s;
278 body .p-datepicker .p-datepicker-header .p-datepicker-title {
283 body .p-datepicker .p-datepicker-header .p-datepicker-title select {
286 transition: color 0.2s, box-shadow 0.2s;
288 body .p-datepicker .p-datepicker-header .p-datepicker-title select:focus {
291 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
293 body .p-datepicker table {
295 margin: 0.857em 0 0 0;
297 body .p-datepicker table th {
300 body .p-datepicker table th.p-datepicker-weekheader {
301 border-right: 1px solid #a6a6a6;
303 body .p-datepicker table td {
306 body .p-datepicker table td > a,
307 body .p-datepicker table td > span {
312 transition: box-shadow 0.2s;
315 body .p-datepicker table td > a.p-highlight,
316 body .p-datepicker table td > span.p-highlight {
318 background-color: pvar(--mainColor);
320 body .p-datepicker table td > a {
323 body .p-datepicker table td > a:focus {
326 box-shadow: 0 0 0 0.2em pvar(--mainColorLightest);
328 body .p-datepicker table td.p-datepicker-today > a,
329 body .p-datepicker table td.p-datepicker-today > span {
330 background-color: #d0d0d0;
333 body .p-datepicker table td.p-datepicker-today > a.p-highlight,
334 body .p-datepicker table td.p-datepicker-today > span.p-highlight {
336 background-color: pvar(--mainColor);
338 body .p-datepicker table td.p-datepicker-weeknumber {
339 border-right: 1px solid #a6a6a6;
341 body .p-datepicker .p-datepicker-buttonbar {
342 border-top: 1px solid #d8dae2;
344 body .p-datepicker .p-timepicker {
346 border-top: 1px solid #d8dae2;
349 body .p-datepicker .p-timepicker a {
353 body .p-datepicker .p-timepicker a:hover {
354 color: pvar(--mainColor);
356 body .p-datepicker .p-timepicker span {
359 body .p-datepicker .p-monthpicker .p-monthpicker-month {
362 body .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight {
364 background-color: pvar(--mainColor);
366 body .p-datepicker.p-datepicker-timeonly {
369 body .p-datepicker.p-datepicker-timeonly .p-timepicker {
372 body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group {
373 @include padding-right(0.857em);
374 @include padding-left(0.857em);
376 border-right: 1px solid #d8dae2;
380 body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child {
381 @include padding-left(0);
383 body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child {
384 @include padding-right(0);
385 border-right: 0 none;
387 body .p-calendar.p-calendar-w-btn .p-inputtext {
388 border-top-right-radius: 0;
389 border-bottom-right-radius: 0;
390 border-right: 0 none;
392 body .p-calendar.p-calendar-w-btn .p-inputtext:enabled:hover:not(.p-error),
393 body .p-calendar.p-calendar-w-btn .p-inputtext:enabled:focus:not(.p-error) {
394 border-right: 0 none;
396 body .p-calendar.p-calendar-w-btn .p-datepicker-trigger.p-button {
398 border-top-left-radius: 0;
399 border-bottom-left-radius: 0;
401 body .ui-fluid .p-calendar.p-calendar-w-btn input.p-inputtext {
402 width: calc(100% - 2.357em);
404 body p-calendar.ng-dirty.ng-invalid > .p-calendar > .p-inputtext {
405 border: 1px solid #a80000;
407 body .p-timepicker .p-separator {
408 @include margin-left(0);
413 body .p-autocomplete .p-autocomplete-input {
416 body .p-autocomplete-panel {
418 border: 1px solid #c8c8c8;
419 background-color: #ffffff;
420 box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
422 body .p-autocomplete-panel .p-autocomplete-items {
425 body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item {
427 padding: 0.429em 0.857em;
430 background-color: transparent;
433 body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight,
434 body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover {
436 background-color: pvar(--mainColor);
438 body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-group {
439 padding: 0.429em 0.857em;
440 background-color: #d8dae2;
443 body p-autocomplete.ng-dirty.ng-invalid > .p-autocomplete > .p-inputtext {
444 border: 1px solid #a80000;
448 body .p-selectbutton .p-button {
449 background-color: #dadada;
450 border: 1px solid #dadada;
453 transition: background-color 0.2s, box-shadow 0.2s;
455 body .p-selectbutton .p-button .p-button-icon-left {
458 body .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover {
459 background-color: #c8c8c8;
460 border-color: #c8c8c8;
463 body .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left {
466 body .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight).ui-state-focus {
467 box-shadow: 0 0 0 0.2em #8dcdff;
470 body .p-selectbutton .p-button.p-highlight {
471 background-color: pvar(--mainColor);
472 border-color: pvar(--mainColor);
475 body .p-selectbutton .p-button.p-highlight .p-button-icon-left {
478 body .p-selectbutton .p-button.p-highlight:not(.p-disabled):hover {
479 background-color: pvar(--mainColorLighter);
480 border-color: pvar(--mainColorLighter);
483 body .p-selectbutton .p-button.p-highlight:not(.p-disabled):hover .p-button-icon-left {
486 body .p-selectbutton .p-button:first-child {
487 border-top-left-radius: 3px;
488 border-bottom-left-radius: 3px;
490 body .p-selectbutton .p-button:last-child {
491 border-top-right-radius: 3px;
492 border-bottom-right-radius: 3px;
494 body p-selectbutton.ng-dirty.ng-invalid .p-button {
495 border: 1px solid #a80000;
498 // data table customizations
500 @mixin glyphicon-light {
501 font-family: 'Glyphicons Halflings';
502 text-decoration: none !important;
503 color: pvar(--mainForegroundColor) !important;
508 .p-datatable-header {
509 border: none !important;
510 background-color: pvar(--mainBackgroundColor) !important;
515 display: inline-flex;
519 @include padding-left(15px);
525 background-color: pvar(--mainBackgroundColor) !important;
528 text-overflow: ellipsis;
533 font-family: $main-fonts;
534 font-size: 15px !important;
535 color: pvar(--mainForegroundColor) !important;
539 @include padding-left(15px !important);
545 &:not(.action-cell):not(.expand-cell):not(.checkbox-cell) {
546 overflow: hidden !important;
547 text-overflow: ellipsis !important;
548 white-space: nowrap !important;
554 background-color: pvar(--mainBackgroundColor) !important;
558 background-color: pvar(--submenuBackgroundColor) !important;
561 color: pvar(--mainForegroundColor) !important;
569 background-color: pvar(--submenuBackgroundColor) !important;
573 border: none !important;
574 white-space: normal !important;
578 border-top: none !important;
582 border-bottom: none !important;
587 box-shadow: none !important;
599 border: none !important;
600 border-bottom: 1px solid !important;
601 border-color: pvar(--submenuBackgroundColor) !important;
602 text-align: left !important;
603 padding: 5px 0 5px 15px !important;
604 font-weight: $font-semibold !important;
605 color: pvar(--mainForegroundColor) !important;
607 &.p-sortable-column:hover {
608 background-color: pvar(--submenuBackgroundColor) !important;
609 border: 1px solid !important;
610 border-color: pvar(--submenuBackgroundColor) !important;
611 border-width: 0 1px !important;
614 border-width: 0 1px 0 0 !important;
619 background-color: pvar(--submenuBackgroundColor) !important;
622 @extend .glyphicon !optional;
624 color: #000 !important;
625 font-size: 11px !important;
628 &.pi-sort-amount-up-alt {
629 @extend .glyphicon-triangle-top !optional;
631 color: pvar(--mainForegroundColor) !important;
634 &.pi-sort-amount-down {
635 @extend .glyphicon-triangle-bottom !optional;
637 color: pvar(--mainForegroundColor) !important;
644 width: 250px !important;
650 display: inline-block !important;
651 @include margin-left(5px);
654 @include margin-left(0)
660 .p-paginator-bottom {
661 background-color: pvar(--mainBackgroundColor) !important;
664 border-top: 1px solid !important;
665 border-color: pvar(--submenuBackgroundColor) !important;
668 justify-content: center;
677 box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
681 color: pvar(--inputPlaceholderColor);
685 .p-paginator-current {
688 color: pvar(--inputPlaceholderColor);
696 @include glyphicon-light;
705 box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
709 background-color: #fff !important;
712 &.p-paginator-first {
713 @extend .glyphicon-step-backward !optional;
717 @extend .glyphicon-chevron-left !optional;
719 @include margin-right(10px);
723 @extend .glyphicon-chevron-right !optional;
725 @include margin-left(10px);
729 @extend .glyphicon-step-forward !optional;
734 height: auto !important;
739 box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest) !important;
742 color: pvar(--mainForegroundColor) !important;
743 font-weight: $font-semibold !important;
744 margin: 0 5px !important;
745 outline: 0 !important;
746 border-radius: 3px !important;
747 padding: 5px 2px !important;
748 height: auto !important;
749 line-height: initial !important;
752 &, &:hover, &:active, &:focus {
753 color: #fff !important;
754 background-color: pvar(--mainColor) !important;
763 @include peertube-badge;
767 // overflow data table
769 .p-datatable-wrapper {
778 @media screen and (max-width: #{breakpoint(lg)}) {
781 .p-paginator-current,
789 @media screen and (max-width: $mobile-view) {
792 .p-paginator-pages > .p-paginator-page:not(.p-highlight) {
799 // PrimeNG calendar tweaks
800 p-calendar .p-datepicker {
802 @include disable-default-a-behaviour;
805 .p-datepicker-header {
808 @include margin-left(5px);
812 @extend .glyphicon-chevron-right !optional;
813 @include glyphicon-light;
815 color: #000 !important;
818 .pi.pi-chevron-right {
819 display: none !important;
824 @extend .glyphicon-chevron-left !optional;
825 @include glyphicon-light;
827 color: #000 !important;
830 .pi.pi-chevron-left {
831 display: none !important;
839 @extend .glyphicon-chevron-up !optional;
840 @include glyphicon-light;
842 color: #000 !important;
845 .pi.pi-chevron-down {
846 @extend .glyphicon-chevron-down !optional;
847 @include glyphicon-light;
849 color: #000 !important;
854 p-tablecheckbox:hover div .p-checkbox-box {
855 box-shadow: 0 0 0 .1rem rgba(87, 85, 217, .2);
861 width: 18px !important;
862 height: 18px !important;
867 border-color: pvar(--mainColor) !important;
868 background-color: pvar(--mainColor) !important;
873 overflow: visible !important;
883 transform: rotate(45deg) scale(0);
884 border-right: 2px solid pvar(--mainBackgroundColor);
885 border-bottom: 2px solid pvar(--mainBackgroundColor);
890 transform: rotate(45deg) scale(1);
902 .p-toast-icon-close {
903 font-family: "Glyphicons Halflings";
914 &:hover .p-toast-icon-close {
920 font-family: $main-fonts;
921 background-color: pvar(--mainBackgroundColor) !important;
922 color: pvar(--mainForegroundColor) !important;
924 box-sizing: border-box;
925 border: 1px solid #EBEEF5 !important;
926 box-shadow: 0 2px 12px 0 rgba(0, 0 , 0, .1);
929 &.p-toast-message-success .glyphicon {
930 color: #8BC34A !important;
933 &.p-toast-message-error .glyphicon {
934 color: #F44336 !important;
937 &.p-toast-message-warn .glyphicon {
938 color: #F1680D !important;
941 &.p-toast-message-info .glyphicon {
942 color: #03A9F4 !important;
945 .notification-block {
953 @include margin-right(20px);
967 @include margin-right(5px);
985 @media screen and (max-width: $primeng-breakpoint) {
998 padding-bottom: 15px;
1000 border-bottom: 1px solid $separator-border-color !important;
1006 @media screen and (max-width: $mobile-view) {
1008 .p-datatable-header {
1014 padding: 0 !important;