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