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