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