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