]>
Commit | Line | Data |
---|---|---|
bbe0f064 C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
4 | @import '~primeng/resources/primeng.css'; | |
276d9652 | 5 | @import '~primeng/resources/themes/nova-light/theme.css'; |
bbe0f064 C |
6 | |
7 | @mixin glyphicon-light { | |
8 | font-family: 'Glyphicons Halflings'; | |
9 | text-decoration: none !important; | |
e66883b3 | 10 | color: pvar(--mainForegroundColor) !important; |
7738273b | 11 | font-display: swap; |
bbe0f064 C |
12 | } |
13 | ||
bf64ed41 RK |
14 | my-edit-button, |
15 | my-delete-button, | |
16 | my-button { | |
17 | height: max-content; | |
18 | } | |
19 | ||
2bc9bd08 RK |
20 | // focus box-shadow for primeng |
21 | .ui-inputtext:enabled:focus:not(.ui-state-error) { | |
e66883b3 | 22 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest) !important; |
2bc9bd08 RK |
23 | } |
24 | ||
bbe0f064 C |
25 | // data table customizations |
26 | p-table { | |
791645e6 | 27 | .ui-table-caption { |
276d9652 | 28 | border: none !important; |
e66883b3 | 29 | background-color: pvar(--mainBackgroundColor) !important; |
b014b6b9 C |
30 | |
31 | .caption { | |
32 | height: 40px; | |
25a42e29 RK |
33 | width: 100%; |
34 | display: inline-flex; | |
b014b6b9 | 35 | align-items: center; |
0d3a2982 RK |
36 | |
37 | .input-group-text { | |
38 | background-color: transparent; | |
39 | } | |
b014b6b9 | 40 | } |
791645e6 C |
41 | } |
42 | ||
276d9652 | 43 | th { |
e66883b3 | 44 | background-color: pvar(--mainBackgroundColor) !important; |
276d9652 C |
45 | outline: 0; |
46 | } | |
47 | ||
48 | td, th { | |
49 | font-family: $main-fonts; | |
50 | font-size: 15px !important; | |
e66883b3 | 51 | color: pvar(--mainForegroundColor) !important; |
276d9652 C |
52 | } |
53 | ||
bbe0f064 | 54 | td { |
bbe0f064 | 55 | padding-left: 15px !important; |
141b177d | 56 | |
566c125d | 57 | &:not(.action-cell):not(.expand-cell) { |
141b177d C |
58 | overflow: hidden !important; |
59 | text-overflow: ellipsis !important; | |
60 | white-space: nowrap !important; | |
61 | } | |
bbe0f064 C |
62 | } |
63 | ||
64 | tr { | |
276d9652 | 65 | outline: 0; |
e66883b3 | 66 | background-color: pvar(--mainBackgroundColor) !important; |
bbe0f064 | 67 | height: 46px; |
791645e6 C |
68 | |
69 | &.ui-state-highlight { | |
e66883b3 | 70 | background-color: pvar(--submenuColor) !important; |
276d9652 C |
71 | |
72 | td, td > a { | |
e66883b3 | 73 | color: pvar(--mainForegroundColor) !important; |
276d9652 | 74 | } |
791645e6 | 75 | } |
bbe0f064 C |
76 | } |
77 | ||
78 | .ui-table-tbody { | |
79 | tr { | |
80 | &:hover { | |
e66883b3 | 81 | background-color: pvar(--submenuColor) !important; |
bbe0f064 C |
82 | } |
83 | ||
276d9652 C |
84 | td { |
85 | border: none !important; | |
86 | } | |
87 | ||
bbe0f064 C |
88 | &:first-child td { |
89 | border-top: none !important; | |
90 | } | |
91 | ||
92 | &:last-child td { | |
93 | border-bottom: none !important; | |
94 | } | |
95 | } | |
96 | ||
97 | .expander { | |
98 | cursor: pointer; | |
99 | position: relative; | |
100 | top: 1px; | |
101 | } | |
102 | } | |
103 | ||
104 | th { | |
105 | border: none !important; | |
b9fcfb1d | 106 | border-bottom: 1px solid !important; |
e66883b3 | 107 | border-color: pvar(--submenuColor) !important; |
bbe0f064 C |
108 | text-align: left !important; |
109 | padding: 5px 0 5px 15px !important; | |
110 | font-weight: $font-semibold !important; | |
e66883b3 | 111 | color: pvar(--mainForegroundColor) !important; |
bbe0f064 C |
112 | |
113 | &.ui-sortable-column:hover { | |
e66883b3 | 114 | background-color: pvar(--submenuColor) !important; |
b9fcfb1d | 115 | border: 1px solid !important; |
e66883b3 | 116 | border-color: pvar(--submenuColor) !important; |
bbe0f064 C |
117 | border-width: 0 1px !important; |
118 | ||
119 | &:first-child { | |
120 | border-width: 0 1px 0 0 !important; | |
121 | } | |
122 | } | |
123 | ||
124 | &.ui-state-highlight { | |
e66883b3 | 125 | background-color: pvar(--submenuColor) !important; |
bbe0f064 C |
126 | |
127 | .pi { | |
128 | @extend .glyphicon; | |
129 | ||
276d9652 C |
130 | color: #000 !important; |
131 | font-size: 11px !important; | |
132 | top: 0 !important; | |
bbe0f064 | 133 | |
619443a3 | 134 | &.pi-sort-amount-up-alt { |
bbe0f064 | 135 | @extend .glyphicon-triangle-top; |
f2fab901 | 136 | |
e66883b3 | 137 | color: pvar(--mainForegroundColor) !important; |
bbe0f064 C |
138 | } |
139 | ||
619443a3 | 140 | &.pi-sort-amount-down { |
bbe0f064 | 141 | @extend .glyphicon-triangle-bottom; |
f2fab901 | 142 | |
e66883b3 | 143 | color: pvar(--mainForegroundColor) !important; |
bbe0f064 C |
144 | } |
145 | } | |
146 | } | |
147 | } | |
148 | ||
149 | .action-cell { | |
150 | width: 250px !important; | |
151 | padding: 0 !important; | |
152 | text-align: center; | |
153 | ||
28e0e40d C |
154 | .dropdown-root, |
155 | my-edit-button, | |
156 | my-delete-button, | |
157 | my-button { | |
2170f1db | 158 | display: inline-block !important; |
165ee292 | 159 | margin-left: 5px; |
c5a1ae50 | 160 | |
165ee292 K |
161 | :first-child { |
162 | margin-left: 0 | |
163 | } | |
bbe0f064 C |
164 | } |
165 | } | |
166 | ||
167 | p-paginator { | |
168 | .ui-paginator-bottom { | |
e66883b3 | 169 | background-color: pvar(--mainBackgroundColor) !important; |
bbe0f064 | 170 | position: relative; |
8b183196 RK |
171 | border: none; |
172 | border-top: 1px solid !important; | |
e66883b3 | 173 | border-color: pvar(--submenuColor) !important; |
bbe0f064 C |
174 | height: 40px; |
175 | display: flex; | |
176 | justify-content: center; | |
177 | align-items: center; | |
178 | ||
2bc9bd08 RK |
179 | .ui-dropdown { |
180 | position: absolute; | |
9b4241e3 | 181 | top: 3px; |
2bc9bd08 | 182 | left: 0; |
9b4241e3 RK |
183 | |
184 | &.ui-state-focus { | |
e66883b3 | 185 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
9b4241e3 RK |
186 | } |
187 | ||
188 | .ui-dropdown-label { | |
e66883b3 | 189 | color: pvar(--inputPlaceholderColor); |
9b4241e3 | 190 | } |
2bc9bd08 RK |
191 | } |
192 | ||
193 | .ui-paginator-current { | |
194 | position: absolute; | |
195 | right: 0; | |
e66883b3 | 196 | color: pvar(--inputPlaceholderColor); |
2bc9bd08 RK |
197 | } |
198 | ||
30eac84e C |
199 | .ui-paginator-first, |
200 | .ui-paginator-prev, | |
201 | .ui-paginator-next, | |
202 | .ui-paginator-last { | |
203 | @include glyphicon-light; | |
204 | padding: 5px 2px; | |
205 | height: auto; | |
206 | outline: none; | |
207 | font-size: 13px; | |
208 | top: -1px; | |
209 | ||
2bc9bd08 RK |
210 | &.focus-within, |
211 | &:focus { | |
e66883b3 | 212 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
2bc9bd08 RK |
213 | } |
214 | ||
30eac84e C |
215 | &.ui-state-disabled:hover { |
216 | background-color: #fff !important; | |
217 | } | |
218 | ||
219 | &.ui-paginator-first { | |
220 | @extend .glyphicon-step-backward; | |
221 | } | |
222 | ||
223 | &.ui-paginator-prev { | |
224 | @extend .glyphicon-chevron-left; | |
225 | ||
226 | margin-right: 10px; | |
227 | } | |
228 | ||
229 | &.ui-paginator-next { | |
230 | @extend .glyphicon-chevron-right; | |
231 | ||
232 | margin-left: 10px; | |
233 | } | |
234 | ||
235 | &.ui-paginator-last { | |
236 | @extend .glyphicon-step-forward; | |
237 | } | |
238 | } | |
239 | ||
bbe0f064 C |
240 | .ui-paginator-pages { |
241 | height: auto !important; | |
242 | ||
2bc9bd08 RK |
243 | .ui-paginator-page { |
244 | &.focus-within, | |
245 | &:focus { | |
e66883b3 | 246 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest) !important; |
165ee292 | 247 | } |
2bc9bd08 RK |
248 | } |
249 | ||
bbe0f064 | 250 | a { |
e66883b3 | 251 | color: pvar(--mainForegroundColor) !important; |
bbe0f064 | 252 | font-weight: $font-semibold !important; |
276d9652 | 253 | margin: 0 5px !important; |
bbe0f064 C |
254 | outline: 0 !important; |
255 | border-radius: 3px !important; | |
256 | padding: 5px 2px !important; | |
257 | height: auto !important; | |
276d9652 | 258 | line-height: initial !important; |
bbe0f064 C |
259 | |
260 | &.ui-state-active { | |
261 | &, &:hover, &:active, &:focus { | |
262 | color: #fff !important; | |
e66883b3 | 263 | background-color: pvar(--mainColor) !important; |
bbe0f064 C |
264 | } |
265 | } | |
266 | } | |
267 | } | |
268 | } | |
269 | } | |
270 | } | |
271 | ||
165ee292 | 272 | // overflow data table |
c2a89b70 | 273 | @mixin overflow-datatable ($table-min-width, $horizontal-margins, $mobile-paginator: true) { |
165ee292 K |
274 | p-table { |
275 | .ui-table-wrapper { | |
276 | overflow-x: auto; | |
277 | max-width: calc(100vw - #{$horizontal-margins * 2}); | |
278 | ||
279 | table { | |
280 | min-width: $table-min-width; | |
281 | } | |
282 | } | |
283 | ||
c2a89b70 RK |
284 | @if $mobile-paginator { |
285 | p-paginator .ui-paginator-bottom { | |
165ee292 | 286 | display: block; |
619443a3 | 287 | |
c2a89b70 RK |
288 | .ui-paginator-current { |
289 | position: relative; | |
290 | display: block; | |
291 | } | |
619443a3 | 292 | |
c2a89b70 RK |
293 | a, .ui-paginator-pages { |
294 | vertical-align: middle; | |
295 | } | |
165ee292 K |
296 | } |
297 | } | |
298 | } | |
299 | } | |
300 | ||
3caf77d3 C |
301 | // multiselect customizations |
302 | p-multiselect { | |
6a4c30de RK |
303 | .ui-multiselect { |
304 | border-color: #C6C6C6; | |
305 | ||
306 | &:not(.ui-state-disabled) { | |
307 | &:hover { | |
308 | border-color: #C6C6C6; | |
309 | } | |
310 | ||
311 | &:focus, | |
312 | &.ui-state-focus { | |
e66883b3 | 313 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
6a4c30de RK |
314 | } |
315 | } | |
316 | } | |
317 | ||
3caf77d3 C |
318 | .ui-multiselect-label { |
319 | font-size: 15px !important; | |
320 | padding: 4px 30px 4px 12px !important; | |
321 | ||
322 | $width: 338px; | |
323 | width: $width !important; | |
324 | ||
325 | @media screen and (max-width: $width) { | |
326 | width: 100% !important; | |
327 | } | |
328 | } | |
329 | ||
619443a3 | 330 | .pi.pi-chevron-down { |
3caf77d3 C |
331 | margin-left: 0 !important; |
332 | ||
333 | &::after { | |
334 | @include select-arrow-down; | |
335 | ||
336 | right: 0; | |
337 | margin-top: 6px; | |
338 | } | |
339 | } | |
340 | ||
341 | .ui-chkbox-icon { | |
342 | //position: absolute !important; | |
343 | width: 18px; | |
344 | height: 18px; | |
345 | //left: 0; | |
346 | ||
347 | //&::after { | |
348 | // left: -2px !important; | |
349 | //} | |
350 | } | |
d3217560 RK |
351 | |
352 | .ui-multiselect-panel .ui-multiselect-items .ui-multiselect-item.ui-state-highlight { | |
e66883b3 | 353 | background-color: pvar(--mainColorLighter); |
d3217560 RK |
354 | } |
355 | ||
356 | .ui-inputtext:enabled:focus:not(.ui-state-error) { | |
e66883b3 | 357 | border-color: pvar(--mainColorLighter) !important; |
d3217560 RK |
358 | box-shadow: none; |
359 | } | |
3caf77d3 C |
360 | } |
361 | ||
bbe0f064 C |
362 | // PrimeNG calendar tweaks |
363 | p-calendar .ui-datepicker { | |
364 | a { | |
365 | @include disable-default-a-behaviour; | |
366 | } | |
367 | ||
368 | .ui-datepicker-header { | |
369 | ||
370 | .ui-datepicker-year { | |
371 | margin-left: 5px; | |
372 | } | |
373 | ||
374 | .ui-datepicker-next { | |
375 | @extend .glyphicon-chevron-right; | |
376 | @include glyphicon-light; | |
276d9652 | 377 | |
aa879092 | 378 | color: #000 !important; |
276d9652 C |
379 | text-align: right; |
380 | ||
381 | .pi.pi-chevron-right { | |
382 | display: none !important; | |
383 | } | |
bbe0f064 C |
384 | } |
385 | ||
386 | .ui-datepicker-prev { | |
387 | @extend .glyphicon-chevron-left; | |
388 | @include glyphicon-light; | |
276d9652 | 389 | |
aa879092 | 390 | color: #000 !important; |
276d9652 C |
391 | text-align: left; |
392 | ||
393 | .pi.pi-chevron-left { | |
394 | display: none !important; | |
395 | } | |
bbe0f064 C |
396 | } |
397 | } | |
398 | ||
399 | .ui-timepicker { | |
400 | ||
401 | .pi.pi-chevron-up { | |
402 | @extend .glyphicon-chevron-up; | |
403 | @include glyphicon-light; | |
aa879092 C |
404 | |
405 | color: #000 !important; | |
bbe0f064 C |
406 | } |
407 | ||
408 | .pi.pi-chevron-down { | |
409 | @extend .glyphicon-chevron-down; | |
410 | @include glyphicon-light; | |
aa879092 C |
411 | |
412 | color: #000 !important; | |
bbe0f064 C |
413 | } |
414 | } | |
791645e6 C |
415 | } |
416 | ||
46db9430 RK |
417 | p-tablecheckbox:hover div .ui-chkbox-box { |
418 | box-shadow: 0 0 0 .1rem rgba(87, 85, 217, .2); | |
419 | } | |
420 | ||
17bb716b | 421 | .ui-chkbox { |
276d9652 | 422 | |
17bb716b C |
423 | &, .ui-chkbox-box { |
424 | width: 18px !important; | |
425 | height: 18px !important; | |
791645e6 C |
426 | } |
427 | ||
17bb716b C |
428 | .ui-chkbox-box { |
429 | &.ui-state-active { | |
e66883b3 RK |
430 | border-color: pvar(--mainColor) !important; |
431 | background-color: pvar(--mainColor) !important; | |
791645e6 C |
432 | } |
433 | ||
17bb716b C |
434 | .ui-chkbox-icon { |
435 | position: relative; | |
436 | overflow: visible !important; | |
437 | ||
438 | &:after { | |
439 | content: ''; | |
440 | position: absolute; | |
441 | top: 1px; | |
442 | left: 6px; | |
443 | width: 5px; | |
444 | height: 12px; | |
445 | opacity: 0; | |
446 | transform: rotate(45deg) scale(0); | |
e66883b3 RK |
447 | border-right: 2px solid pvar(--mainBackgroundColor); |
448 | border-bottom: 2px solid pvar(--mainBackgroundColor); | |
17bb716b C |
449 | } |
450 | ||
451 | &.pi-check:after { | |
452 | opacity: 1; | |
453 | transform: rotate(45deg) scale(1); | |
454 | } | |
791645e6 C |
455 | } |
456 | } | |
276d9652 C |
457 | } |
458 | ||
459 | p-inputswitch { | |
9b82d49d RK |
460 | height: 26px; |
461 | ||
276d9652 | 462 | .ui-inputswitch-checked .ui-inputswitch-slider { |
e66883b3 | 463 | background-color: pvar(--mainColor) !important; |
276d9652 | 464 | } |
d3217560 RK |
465 | |
466 | &.small { | |
467 | height: 20px; | |
468 | ||
469 | .ui-inputswitch { | |
470 | width: 2.5em !important; | |
471 | height: 1.45em !important; | |
472 | ||
473 | .ui-inputswitch-slider::before { | |
474 | height: 1em !important; | |
475 | width: 1em !important; | |
476 | } | |
477 | } | |
478 | ||
479 | .ui-inputswitch-checked .ui-inputswitch-slider::before { | |
480 | transform: translateX(1em) !important; | |
481 | } | |
482 | } | |
276d9652 | 483 | } |
f8b2c1b4 C |
484 | |
485 | p-toast { | |
3195cd1c | 486 | .ui-toast { |
36f2981f | 487 | z-index: z(notification) !important; |
3195cd1c | 488 | |
21973012 RK |
489 | .ui-toast-close-icon { |
490 | font-family: "Glyphicons Halflings"; | |
491 | opacity: 0; | |
75264e37 | 492 | |
21973012 RK |
493 | &:after { |
494 | content: "\e014"; | |
495 | } | |
75264e37 RK |
496 | } |
497 | ||
21973012 RK |
498 | &:hover .ui-toast-close-icon { |
499 | opacity: .3; | |
75264e37 RK |
500 | } |
501 | } | |
502 | ||
f8b2c1b4 C |
503 | .ui-toast-message { |
504 | font-family: $main-fonts; | |
e66883b3 RK |
505 | background-color: pvar(--mainBackgroundColor) !important; |
506 | color: pvar(--mainForegroundColor) !important; | |
28c801b6 RK |
507 | border-radius: 5px; |
508 | box-sizing: border-box; | |
509 | border: 1px solid #EBEEF5 !important; | |
510 | box-shadow: 0 2px 12px 0 rgba(0, 0 , 0, .1); | |
511 | overflow: hidden; | |
512 | ||
513 | &.ui-toast-message-success .glyphicon { | |
514 | color: #8BC34A !important; | |
f8b2c1b4 C |
515 | } |
516 | ||
28c801b6 RK |
517 | &.ui-toast-message-error .glyphicon { |
518 | color: #F44336 !important; | |
f8b2c1b4 C |
519 | } |
520 | ||
28c801b6 RK |
521 | &.ui-toast-message-warn .glyphicon { |
522 | color: #F1680D !important; | |
f8b2c1b4 C |
523 | } |
524 | ||
28c801b6 RK |
525 | &.ui-toast-message-info .glyphicon { |
526 | color: #03A9F4 !important; | |
f8b2c1b4 C |
527 | } |
528 | ||
4707f410 C |
529 | .notification-block { |
530 | display: flex; | |
2f1548fd C |
531 | align-items: center; |
532 | padding: 5px; | |
f8b2c1b4 | 533 | |
4707f410 | 534 | .message { |
6e7e63b8 C |
535 | flex-grow: 1; |
536 | ||
4707f410 C |
537 | h3 { |
538 | font-size: 21px; | |
539 | } | |
f8b2c1b4 | 540 | |
4707f410 C |
541 | p { |
542 | font-size: 15px; | |
2f1548fd | 543 | margin-bottom: 0; |
4707f410 | 544 | } |
f8b2c1b4 | 545 | } |
f8b2c1b4 | 546 | |
4707f410 C |
547 | .glyphicon { |
548 | font-size: 32px; | |
4707f410 C |
549 | margin-right: 5px; |
550 | } | |
f8b2c1b4 C |
551 | } |
552 | } | |
553 | } | |
17bb716b C |
554 | |
555 | .ui-widget { | |
556 | font-family: $main-fonts !important; | |
557 | } |