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