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