azion-theme 1.4.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/.github/workflows/release.yml +1 -1
  2. package/CHANGELOG.md +12 -0
  3. package/CODEOWNERS +1 -1
  4. package/README.md +29 -33
  5. package/default.js +1 -0
  6. package/package.json +3 -2
  7. package/src/azion/_custom.scss +1 -0
  8. package/src/azion/_extensions.scss +30 -0
  9. package/src/azion/_fonts.scss +156 -0
  10. package/src/azion/_variables.scss +369 -0
  11. package/src/azion/custom/_focus.scss +5 -0
  12. package/src/azion/custom/_scrollbehavior.scss +6 -0
  13. package/src/azion/custom/_selection.scss +4 -0
  14. package/src/azion/extended-components/_badge.scss +53 -0
  15. package/src/azion/extended-components/_breadcumb.scss +18 -0
  16. package/src/azion/extended-components/_button.scss +131 -0
  17. package/src/azion/extended-components/_calendar.scss +42 -0
  18. package/src/azion/extended-components/_checkbox.scss +67 -0
  19. package/src/azion/extended-components/_datatable.scss +92 -0
  20. package/src/azion/extended-components/_dialog.scss +45 -0
  21. package/src/azion/extended-components/_divider.scss +31 -0
  22. package/src/azion/extended-components/_dropdownitem.scss +12 -0
  23. package/src/azion/extended-components/_inlinemessage.scss +10 -0
  24. package/src/azion/extended-components/_inputnumber.scss +40 -0
  25. package/src/azion/extended-components/_inputpassword.scss +4 -0
  26. package/src/azion/extended-components/_inputswitch.scss +53 -0
  27. package/src/azion/extended-components/_listbox.scss +25 -0
  28. package/src/azion/extended-components/_markdown.scss +123 -0
  29. package/src/azion/extended-components/_menuitem.scss +22 -0
  30. package/src/azion/extended-components/_multiselect.scss +170 -0
  31. package/src/azion/extended-components/_overlaypanel.scss +18 -0
  32. package/src/azion/extended-components/_picklist.scss +25 -0
  33. package/src/azion/extended-components/_progressbar.scss +6 -0
  34. package/src/azion/extended-components/_radiobutton.scss +63 -0
  35. package/src/azion/extended-components/_selectbutton.scss +36 -0
  36. package/src/azion/extended-components/_sidebar.scss +27 -0
  37. package/src/azion/extended-components/_tabmenu.scss +21 -0
  38. package/src/azion/extended-components/_tabview.scss +41 -0
  39. package/src/azion/extended-components/_tag.scss +42 -0
  40. package/src/azion/extended-components/_toast.scss +67 -0
  41. package/src/azion/extended-components/_tooltip.scss +7 -0
  42. package/src/azion/theme.scss +9 -0
  43. package/src/azion/variables/_button.scss +438 -0
  44. package/src/azion/variables/_data.scss +346 -0
  45. package/src/azion/variables/_form.scss +570 -0
  46. package/src/azion/variables/_general.scss +149 -0
  47. package/src/azion/variables/_media.scss +231 -0
  48. package/src/azion/variables/_menu.scss +287 -0
  49. package/src/azion/variables/_message.scss +145 -0
  50. package/src/azion/variables/_misc.scss +143 -0
  51. package/src/azion/variables/_overlay.scss +67 -0
  52. package/src/azion/variables/_panel.scss +327 -0
@@ -0,0 +1,369 @@
1
+ // Theme Specific Variables
2
+
3
+ $pc: #f4f4f4;
4
+ $pdc: hsla(0, 0%, 96%, 0.5);
5
+ $pderc: #f4f4f4;
6
+ $ptc: #f4f4f4;
7
+ $highlightBg: rgba($pc, 0.06);
8
+ $overlayContentBg: #171717;
9
+
10
+ :root.azion-light {
11
+ $pc: #2b2b2b;
12
+ $pdc: #000;
13
+ $pderc: #000;
14
+ $ptc: #f4f4f4;
15
+ $highlightBg: rgba($pc, 0.06);
16
+ $overlayContentBg: #ffffff;
17
+ }
18
+
19
+ $primaryColor: $pc;
20
+ $primaryDarkColor: $pdc;
21
+ $primaryDarkerColor: $pderc;
22
+ $primaryTextColor: $ptc;
23
+
24
+ $colors: (
25
+ "blue": #2196f3,
26
+ "green": #4caf50,
27
+ "yellow": #fbc02d,
28
+ "cyan": #00bcd4,
29
+ "pink": #e91e63,
30
+ "indigo": #3f51b5,
31
+ "teal": #009688,
32
+ "orange": #f57c00,
33
+ "bluegray": #607d8b,
34
+ "purple": #9c27b0,
35
+ "red": #ff4032,
36
+ "primary": $primaryColor,
37
+ );
38
+
39
+ // Mandatory Designer Variables
40
+ @import "./variables/general";
41
+ @import "./variables/form";
42
+ @import "./variables/button";
43
+ @import "./variables/panel";
44
+ @import "./variables/_data";
45
+ @import "./variables/_overlay";
46
+ @import "./variables/_message";
47
+ @import "./variables/_menu";
48
+ @import "./variables/_media";
49
+ @import "./variables/_misc";
50
+
51
+ :root {
52
+ --surface-a: #ffffff;
53
+ --surface-b: #f8f9fa;
54
+ --surface-c: #e9ecef;
55
+ --surface-d: #dee2e6;
56
+ --surface-e: #ffffff;
57
+ --surface-f: #ffffff;
58
+
59
+ --green-50: #f4fcf7;
60
+ --green-100: #caf1d8;
61
+ --green-200: #a0e6ba;
62
+ --green-300: #76db9b;
63
+ --green-400: #4cd07d;
64
+ --green-500: #22c55e;
65
+ --green-600: #1da750;
66
+ --green-700: #188a42;
67
+ --green-800: #136c34;
68
+ --green-900: #0e4f26;
69
+
70
+ --red-50: #fff5f5;
71
+ --red-100: #ffd0ce;
72
+ --red-200: #ffaca7;
73
+ --red-300: #ff8780;
74
+ --red-400: #ff6259;
75
+ --red-500: #ff3d32;
76
+ --red-600: #d9342b;
77
+ --red-700: #b32b23;
78
+ --red-800: #8c221c;
79
+ --red-900: #661814;
80
+
81
+ --font-family: "Roboto", sans-serif;
82
+ }
83
+
84
+ :root.azion.azion-dark {
85
+ color-scheme: dark;
86
+ --text-color: #ededed;
87
+ --text-color-secondary: #b5b5b5;
88
+ --text-color-link: #93c5fd;
89
+ --text-color-link-hover: #93c5fd;
90
+
91
+ --primary-color: #f4f4f4;
92
+ --primary-color-text: #1e1e1e;
93
+ --primary-dark-color: hsla(0, 0%, 96%, 0.5);
94
+ --primary-darker-color: #f4f4f4;
95
+ --primary-text-color: #f4f4f4;
96
+
97
+ --surface-0: #0a0a0a;
98
+ --surface-50: #111111;
99
+ --surface-100: #171717;
100
+ --surface-200: #222222;
101
+ --surface-300: #282828;
102
+ --surface-400: #2e2e2e;
103
+ --surface-500: #353535;
104
+ --surface-600: #3e3e3e;
105
+ --surface-700: #4a4a4a;
106
+ --surface-800: #5e5e5e;
107
+ --surface-900: #7d7d7d;
108
+
109
+ --gray-50: #282828;
110
+ --gray-100: #363636;
111
+ --gray-200: #747474;
112
+ --gray-300: #939393;
113
+ --gray-400: #b2b2b2;
114
+ --gray-500: #9e9e9e;
115
+ --gray-600: #ebebeb;
116
+ --gray-700: #f5f5f5;
117
+ --gray-800: #fafafa;
118
+ --gray-900: #ffffff;
119
+
120
+ --surface-ground: #171717;
121
+ --surface-section: #171717;
122
+ --surface-card: #171717;
123
+ --surface-overlay: #ffffff;
124
+ --surface-border: #282828;
125
+ --surface-hover: #f5f5f516;
126
+
127
+ --content-padding: #{$panelContentPadding};
128
+ --inline-spacing: #{$inlineSpacing};
129
+ --border-radius: #{$borderRadius};
130
+ --focus-ring: #{$focusShadow};
131
+
132
+ --maskbg: #{$maskBg};
133
+ --highlight-bg: rgba(var(--primary-color), 0.06);
134
+ --highlight-text-color: #{$highlightTextColor};
135
+ --highlight-focus-bg: rgba(var(--primary-color), 0.08);
136
+ --disabled-opacity: 0.5;
137
+ --error-color: #f26464;
138
+ --mask-bg: #1c1c1c80;
139
+ --bg-selection: #fab99e;
140
+ --table-bg-color: #1c1c1c;
141
+ --tab-menu-link: #f4f4f4;
142
+ --paginator-bg: #1c1c1c;
143
+ --paginator-border: #282828;
144
+ --paginator-element-hover-bg: hsla(0, 0%, 100%, 0.03);
145
+ --table-header-font-weight: 500;
146
+ --table-cell-font-weight: 600;
147
+ --table-header-cell-hover-bg: #ffffff0d;
148
+ --table-header-cell-bg: #1c1c1c;
149
+ --table-header-cell-highlight-bg: #1c1c1c;
150
+ --table-cell-highlight-hover-bg: rgba(var(--primary-color), 0.16);
151
+ --table-body-row-even-bg: #212121;
152
+ --table-body-row-hover-bg: #353535;
153
+ --table-footer-cell-bg: #1c1c1c;
154
+ --table-footer-border: var(--surface-border);
155
+ --table-footer-border-width: none;
156
+ --table-footer-bg: #1c1c1c;
157
+ --plain-button-active-bg-color: #222222;
158
+ --secondary-button-bg: #ffffff;
159
+ --secondary-button-text-color: #222222;
160
+ --secondary-button-border: #f4f4f4;
161
+ --secondary-button-hover-bg: #e1e1e1;
162
+ --secondary-button-text-hover-color: #e1e1e1;
163
+ --secondary-button-hover-border-color: #e1e1e1;
164
+ --secondary-button-active-bg: #d9d9d9;
165
+ --secondary-button-active-border-color: #d9d9d9;
166
+ --secondary-button-text-hover-color: #1e1e1e;
167
+ --secondary-button-hover-border-color: #e1e1e1;
168
+ --secondary-button-text-active-color: #1e1e1e;
169
+ --secondary-button-active-border-color: #d9d9d9;
170
+ --warning-button-text-color: #1e1e1e;
171
+ --help-button-hover-border-color: #8e24aa;
172
+ --help-button-active: #7b1fa2;
173
+ --toggle-button-bg: #1e1e1e;
174
+ --toggle-button-border: #3e3e3e;
175
+ --toggle-button-hover-bg: #282828;
176
+ --input-bg: #292929;
177
+ --input-placeholder-text-color: #666;
178
+ --input-filled-bg: #181818;
179
+ --input-filled-hover-bg: #2b2b2b;
180
+ --input-filled-focus-bg: #181818;
181
+ --input-group-bg: #1c1c1c;
182
+ --input-list-bg: #171717;
183
+ --input-list-header-bg: #1c1c1c;
184
+ --input-overlay-shadow: 0px 0px 0px 1px #3b3b3b,
185
+ 0px 5px 10px 0px rgba(0, 0, 0, 0.05);
186
+ --checkbox-border: #666666;
187
+ --calendar-bg: #292929;
188
+ --calendar-cell-date-today-bg: #f4f4f4;
189
+ --calendar-cell-date-today-text-color: #1e1e1e;
190
+ --input-switch-slider-off-bg: #a1a1a1;
191
+ --input-switch-slider-off-hover-bg: #5e5e5e;
192
+ --input-switch-handle-on-bg: #ffffff;
193
+ --file-upload-file-border: 1px solid #e7e7e7;
194
+ --editor-toolbar-border: 1px solid #e7e7e7;
195
+ --action-icon-border: #3e3e3e;
196
+ --action-icon-color: $textSecondaryColor;
197
+ --action-icon-hover-bg: #282828;
198
+ --action-icon-hover-border-color: 1px solid #3e3e3e;
199
+ --panel-content-bg: #171717;
200
+ --panel-header-hover-border-color: #171717;
201
+ --panel-header-text-hover-color: rgba(var(--primary-color), 0.04);
202
+ --card-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.02),
203
+ 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12),
204
+ 0px 0px 0px 1px #3c3c3c;
205
+ --splitter-gutter-handle-bg: #3e3e3e;
206
+ --overlay-container-shadow: 0px 0px 0px 1px #3e3e3e,
207
+ 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px -7px rgba(0, 0, 0, 0.2),
208
+ 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
209
+ --dialog-header-bg: #1c1c1c;
210
+ --tooltip-text-color: #1c1c1c;
211
+ --badge-font-weight: 400;
212
+ --tag-padding: 0.25rem 0.5rem;
213
+ --progress-bar-value-bg: #($primaryColor);
214
+ --progress-spinner-stroke-color: var(--surface-600);
215
+ --avatar-bg: #363636;
216
+ --chip-bg: #404040;
217
+ --chip-focus-bg: #363636;
218
+ --skeleton-bg: #3131316d;
219
+ --skeleton-animation-bg: #31313199;
220
+ --toast-shadow: #3e3e3e;
221
+ --success-message-bg: #39e4781f;
222
+ --success-message-icon-color: #39e478;
223
+ --error-message--bg: #f2646433;
224
+ --error-message-icon-color: #f26464;
225
+ --steps-item-bg: #00000000;
226
+ --steps-item-border: 1px solid #3e3e3e;
227
+ --menu-bg: #1c1c1c;
228
+ --menu-border: 1px solid #3e3e3e;
229
+ --submenu-header-font-weight: 500;
230
+ --overlay-menu-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.12),
231
+ 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
232
+ 0px 0px 0px 1px #3c3c3c;
233
+ --horizontal-menu-bg: #1c1c1c;
234
+ }
235
+
236
+ :root.azion.azion-light {
237
+ color-scheme: light;
238
+ --text-color: #1c1c1c;
239
+ --text-color-secondary: #666666;
240
+ --text-color-link: #3265cb;
241
+ --text-color-link-hover: #2851a4;
242
+
243
+ --primary-color: #1e1e1e;
244
+ --primary-color-text: #f4f4f4;
245
+
246
+ --surface-0: #ffffff;
247
+ --surface-50: #f9fafb;
248
+ --surface-100: #f4f4f4;
249
+ --surface-200: #eeeeee;
250
+ --surface-300: #e8e8e8;
251
+ --surface-400: #e3e3e3;
252
+ --surface-500: #dddddd;
253
+ --surface-600: #d3d3d3;
254
+ --surface-700: #c9c9c9;
255
+ --surface-800: #b5b5b5;
256
+ --surface-900: #a7a7a7;
257
+
258
+ --gray-50: #fafafa;
259
+ --gray-100: #f5f5f5;
260
+ --gray-200: #eeeeee;
261
+ --gray-300: #e0e0e0;
262
+ --gray-400: #bdbdbd;
263
+ --gray-500: #9e9e9e;
264
+ --gray-600: #757575;
265
+ --gray-700: #616161;
266
+ --gray-800: #424242;
267
+ --gray-900: #212121;
268
+
269
+ --surface-ground: #ffffff;
270
+ --surface-section: #ffffff;
271
+ --surface-card: #ffffff;
272
+ --surface-overlay: #ffffff;
273
+ --surface-border: #e8e8e8;
274
+ --surface-hover: #3b3b3b16;
275
+
276
+ --maskbg: #{$maskBg};
277
+ --highlight-bg: rgba(var(--primary-color), 0.06);
278
+ --highlight-text-color: #{$highlightTextColor};
279
+ --highlight-focus-bg: rgba(var(--primary-color), 0.08);
280
+ --disabled-opacity: 0.4;
281
+ --mask-bg: #1e1e1e32;
282
+ --error-color: #ef4040;
283
+ --bg-selection: #f7966e;
284
+ --table-bg-color: #e7e7e7;
285
+ --tab-menu-link: #1c1c1c;
286
+ --paginator-bg: #ffffff;
287
+ --paginator-border: none;
288
+ --paginator-element-hover-bg: #e9ecef;
289
+ --table-header-cell-hover-bg: #e9ecef;
290
+ --table-cell-highlight-hover-bg: #e9ecef;
291
+ --table-header-font-weight: 600;
292
+ --table-cell-font-weight: 500;
293
+ --table-header-cell-bg: #fcfdfd;
294
+ --table-header-cell-highlight-bg: #f8f9fa;
295
+ --table-body-row-even-bg: #ffffff;
296
+ --table-body-row-hover-bg: #f7f7f7;
297
+ --table-footer-border: #e9ecef;
298
+ --table-footer-border-width: 0 0 1px 0;
299
+ --table-footer-bg: #f8f9fa;
300
+ --plain-button-active-bg-color: #1e1e1e33;
301
+ --secondary-button-bg: #1e1e1e;
302
+ --secondary-button-text-color: #f4f4f4;
303
+ --secondary-button-text-hover-bg: #404040;
304
+ --secondary-button-text-hover-color: #f4f4f4;
305
+ --secondary-button-hover-border-color: #323232;
306
+ --secondary-button-active-bg: #303030;
307
+ --secondary-button-text-active-color: #ffffff;
308
+ --secondary-button-active-border-color: #303030;
309
+ --warning-button-text-color: #1c1c1c;
310
+ --help-button-hover-border-color: #0953a6;
311
+ --help-button-active: #0953a6;
312
+ --toggle-button-bg: #ffffff;
313
+ --toggle-button-border: #ced4da;
314
+ --toggle-button-hover-bg: #e9ecef;
315
+ --input-bg: #f4f4f4;
316
+ --input-placeholder-text-color: #979797;
317
+ --input-filled-bg: #f4f4f4;
318
+ --input-filled-hover-bg: #eaeaea;
319
+ --input-filled-focus-bg: #f8f9fa;
320
+ --input-group-bg: #eaeaea;
321
+ --input-list-bg: #ffffff;
322
+ --input-list-header-bg: #f8f9fa;
323
+ --input-overlay-shadow: 0px 0px 0px 1px #e7e7e7,
324
+ 0px 1px 4px 0px rgba(0, 0, 0, 0.04);
325
+ --checkbox-border: var(--surface-border);
326
+ --calendar-bg: #ffffff;
327
+ --calendar-cell-date-today-bg: #1e1e1e;
328
+ --calendar-cell-date-today-text-color: #f4f4f4;
329
+ --input-switch-slider-off-bg: #ced4da;
330
+ --input-switch-slider-off-hover-bg: #c3cad2;
331
+ --input-switch-handle-on-bg: #1e1e1e;
332
+ --file-upload-file-border: 1px solid #c3cad2;
333
+ --editor-toolbar-border: 1px solid #dee2e6;
334
+ --action-icon-border: #e7e7e7;
335
+ --action-icon-color: $textColor;
336
+ --action-icon-hover-bg: #1e1e1e04;
337
+ --action-icon-hover-border-color: 1px solid #e7e7e7;
338
+ --panel-content-bg: #ffffff;
339
+ --panel-header-hover-border-color: #dee2e6;
340
+ --panel-header-text-hover-color: var(--text-color);
341
+ --card-shadow: 0px 0px 0px 1px #e7e7e7;
342
+ --splitter-gutter-handle-bg: #e7e7e7;
343
+ --overlay-container-shadow: 0px 0px 0px 1px #e7e7e7,
344
+ 0px 5px 10px 0px rgba(0, 0, 0, 0.05);
345
+ --dialog-header-bg: #ffffff;
346
+ --tooltip-text-color: #ffffff;
347
+ --badge-font-weight: 500;
348
+ --tag-padding: 0.25rem 0.4rem;
349
+ --progress-bar-value-bg: #f3652b;
350
+ --progress-spinner-stroke-color: $errorMessageTextColor;
351
+ --avatar-bg: #e7e7e7;
352
+ --chip-bg: #dedede;
353
+ --chip-focus-bg: #dee2e6;
354
+ --skeleton-bg: #eaeaea;
355
+ --skeleton-animation-bg: #d6d6d6;
356
+ --toast-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.08), 0px 0px 0px 1px #e7e7e7;
357
+ --success-message-bg: #1982361f;
358
+ --success-message-icon-color: #198236;
359
+ --error-message--bg: #ef40401f;
360
+ --error-message-icon-color: #ef4040;
361
+ --steps-item-bg: #ffffff00;
362
+ --steps-item-border: 1px solid #e7e7e7;
363
+ --menu-bg: #ffffff;
364
+ --menu-border: 1px solid #e7e7e7;
365
+ --submenu-header-font-weight: 400;
366
+ --overlay-menu-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.04),
367
+ 0px 0px 0px 1px #e7e7e7;
368
+ --horizontal-menu-bg: #f8f9fa;
369
+ }
@@ -0,0 +1,5 @@
1
+ a {
2
+ &:focus-visible {
3
+ @include focused();
4
+ }
5
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Enable smooth scrolling on the whole document
3
+ */
4
+ html {
5
+ scroll-behavior: smooth;
6
+ }
@@ -0,0 +1,4 @@
1
+ ::selection {
2
+ color: var(--primary-color-text);
3
+ background-color: var(--bg-selection);
4
+ }
@@ -0,0 +1,53 @@
1
+ // Custom badge
2
+ .p-badge {
3
+ border: 1px solid var(--surface-border) !important;
4
+ border-radius: $borderRadius;
5
+ color: $badgeTextColor;
6
+ font-size: 0.75rem !important;
7
+ font-weight: 600 !important;
8
+ min-width: $badgeMinWidth;
9
+ height: $badgeHeight;
10
+ display: flex !important;
11
+ align-items: center !important;
12
+ justify-content: center !important;
13
+
14
+ &.p-badge-secondary {
15
+ background-color: $secondaryButtonBg;
16
+ color: $secondaryButtonTextColor;
17
+ }
18
+
19
+ &.p-badge-success {
20
+ background-color: $successButtonBg;
21
+ color: $successButtonTextColor;
22
+ }
23
+
24
+ &.p-badge-info {
25
+ background-color: $infoButtonBg;
26
+ color: $infoButtonTextColor;
27
+ }
28
+
29
+ &.p-badge-warning {
30
+ background-color: $warningButtonBg;
31
+ color: $warningButtonTextColor;
32
+ }
33
+
34
+ &.p-badge-danger {
35
+ background-color: $dangerButtonBg;
36
+ color: $dangerButtonTextColor;
37
+ border: none !important;
38
+ }
39
+
40
+ &.p-badge-lg {
41
+ font-size: 1.5 * $badgeFontSize;
42
+ min-width: 1.5 * $badgeMinWidth;
43
+ height: 1.5 * $badgeHeight;
44
+ line-height: 1.5 * $badgeHeight;
45
+ }
46
+
47
+ &.p-badge-xl {
48
+ font-size: 2 * $badgeFontSize;
49
+ min-width: 2 * $badgeMinWidth;
50
+ height: 2 * $badgeHeight;
51
+ line-height: 2 * $badgeHeight;
52
+ }
53
+ }
@@ -0,0 +1,18 @@
1
+ // Custom Breadcrumb
2
+ .p-breadcrumb {
3
+ .p-breadcrumb-list {
4
+ font-weight: 500 !important;
5
+ text-wrap: nowrap !important;
6
+ .p-menuitem-link {
7
+ padding: 0.25rem 0.125rem !important;
8
+ transition: $formElementTransition !important;
9
+ font-size: 0.875rem !important;
10
+ }
11
+ .p-menuitem:last-of-type {
12
+ font-weight: 500 !important;
13
+ }
14
+ .p-menuitem:hover {
15
+ text-decoration: underline;
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,131 @@
1
+ //Custom Button
2
+
3
+ .p-button {
4
+ font-weight: 500 !important;
5
+
6
+ &.p-button-outlined {
7
+ color: $textColor !important;
8
+
9
+ &:enabled:hover {
10
+ background-color: var(--surface-hover) !important;
11
+ }
12
+
13
+ &:enabled:active {
14
+ background-color: var(--surface-hover) !important;
15
+ }
16
+
17
+ &.p-button-plain {
18
+ color: $textColor !important;
19
+
20
+ &:enabled:hover {
21
+ color: $textColor !important;
22
+ }
23
+
24
+ &:enabled:active {
25
+ color: $textColor !important;
26
+ }
27
+ }
28
+ }
29
+
30
+ &.p-button-text {
31
+ color: $textColor !important;
32
+
33
+ &:enabled:hover {
34
+ color: $textColor !important;
35
+ background-color: var(--surface-hover);
36
+ }
37
+
38
+ &:enabled:active {
39
+ color: $textColor !important;
40
+ background-color: var(--surface-hover);
41
+ }
42
+
43
+ &.p-button-plain {
44
+ color: $textColor !important;
45
+ background-color: var(--surface-hover);
46
+
47
+ &:enabled:hover {
48
+ color: $textColor !important;
49
+ }
50
+
51
+ &:enabled:active {
52
+ color: $textColor !important;
53
+ background-color: var(--surface-hover);
54
+ }
55
+ }
56
+ }
57
+
58
+ &.p-button-icon-only:not(.p-datepicker-trigger, .p-inputnumber-button) {
59
+ color: $textColor !important;
60
+ width: 2rem !important;
61
+ height: 2rem !important;
62
+ .p-button-icon-left,
63
+ .p-button-icon-right {
64
+ margin: 0;
65
+ }
66
+ }
67
+
68
+ &.p-button-sm {
69
+ @include scaledFontSize($fontSize, $scaleSM);
70
+ @include scaledPadding($buttonPadding, $scaleSM);
71
+
72
+ .p-button-icon {
73
+ @include scaledFontSize($primeIconFontSize, $scaleSM);
74
+ }
75
+ }
76
+
77
+ &.p-button-lg {
78
+ @include scaledFontSize($fontSize, $scaleLG);
79
+ @include scaledPadding($buttonPadding, $scaleLG);
80
+
81
+ .p-button-icon {
82
+ @include scaledFontSize($primeIconFontSize, $scaleLG);
83
+ }
84
+ }
85
+
86
+ &.p-button-loading-label-only {
87
+ .p-button-loading-icon {
88
+ margin-right: 0;
89
+ }
90
+ }
91
+ }
92
+
93
+ .p-fluid {
94
+ .p-button {
95
+ width: 100%;
96
+ }
97
+
98
+ .p-button-icon-only {
99
+ width: $buttonIconOnlyWidth;
100
+ }
101
+
102
+ .p-buttonset {
103
+ display: flex;
104
+
105
+ .p-button {
106
+ flex: 1;
107
+ }
108
+ }
109
+ }
110
+
111
+ .p-button.p-button-link {
112
+ color: $linkButtonColor !important;
113
+ &:not(:disabled):focus {
114
+ box-shadow: none !important;
115
+ }
116
+ &:not(:disabled):focus-visible {
117
+ box-shadow: $linkButtonFocusShadow !important;
118
+ }
119
+ }
120
+
121
+ .p-inputgroup > .p-button {
122
+ &.p-button-icon-only {
123
+ color: initial;
124
+ width: initial;
125
+ height: initial !important;
126
+ .p-button-icon-left,
127
+ .p-button-icon-right {
128
+ margin: initial;
129
+ }
130
+ }
131
+ }
@@ -0,0 +1,42 @@
1
+ .p-calendar {
2
+ .p-button-icon-only {
3
+ color: $inputIconColor;
4
+ background: $inputBg;
5
+ border: $inputBorder;
6
+ border-left: none;
7
+
8
+ &:enabled:hover {
9
+ background: $secondaryButtonHoverBg;
10
+ color: $secondaryButtonTextHoverColor;
11
+ border-color: $secondaryButtonHoverBorderColor;
12
+ }
13
+
14
+ &:enabled:focus {
15
+ box-shadow: $secondaryButtonFocusShadow;
16
+ }
17
+
18
+ &:enabled:active {
19
+ background: $secondaryButtonActiveBg;
20
+ color: $secondaryButtonTextActiveColor;
21
+ border-color: $secondaryButtonActiveBorderColor;
22
+ }
23
+
24
+ &.p-button-outlined {
25
+ background-color: transparent;
26
+ color: $secondaryButtonBg;
27
+ border: $outlinedButtonBorder;
28
+
29
+ &:enabled:hover {
30
+ background: rgba($secondaryButtonBg, $textButtonHoverBgOpacity);
31
+ color: $secondaryButtonBg;
32
+ border: $outlinedButtonBorder;
33
+ }
34
+
35
+ &:enabled:active {
36
+ background: rgba($secondaryButtonBg, $textButtonActiveBgOpacity);
37
+ color: $secondaryButtonBg;
38
+ border: $outlinedButtonBorder;
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,67 @@
1
+ // Custom Checkbox
2
+ .p-checkbox {
3
+ .p-checkbox-box {
4
+ border: 2px solid var(--surface-border) !important;
5
+ .p-checkbox-icon {
6
+ color: white !important;
7
+
8
+ &.p-icon {
9
+ }
10
+ }
11
+
12
+ &.p-highlight {
13
+ border-color: #f3652b !important;
14
+ background: #f3652b !important;
15
+ }
16
+ }
17
+
18
+ &:not(.p-checkbox-disabled) {
19
+ .p-checkbox-box {
20
+ &:hover {
21
+ background: var(--gray-100) !important;
22
+ border-color: #f5793f !important;
23
+ }
24
+
25
+ &.p-focus {
26
+ @include focused-input();
27
+ }
28
+
29
+ &.p-highlight:hover {
30
+ border-color: #f5793f !important;
31
+ background: #f5793f !important;
32
+ }
33
+ }
34
+ }
35
+
36
+ &.p-invalid > .p-checkbox-box {
37
+ @include invalid-input();
38
+ }
39
+ }
40
+
41
+ .p-input-filled {
42
+ .p-checkbox {
43
+ .p-checkbox-box {
44
+ &.p-highlight {
45
+ }
46
+ }
47
+
48
+ &:not(.p-checkbox-disabled) {
49
+ .p-checkbox-box {
50
+ &:hover {
51
+ }
52
+
53
+ &.p-highlight:hover {
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+
60
+ @if ($highlightBg == $checkboxActiveBg) {
61
+ .p-highlight {
62
+ .p-checkbox {
63
+ .p-checkbox-box {
64
+ }
65
+ }
66
+ }
67
+ }