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