ngx-techlify-core 18.91.0 → 18.92.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "18.91.0",
3
+ "version": "18.92.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18",
6
6
  "@angular/core": ">=18",
@@ -0,0 +1,280 @@
1
+ //Remove default focus outline
2
+ button,
3
+ a,
4
+ input {
5
+ outline: none !important;
6
+ }
7
+
8
+ //Adding a more modern looking scrollbar (Mostly for windows devices)
9
+ ::-webkit-scrollbar {
10
+ width: 0.5em;
11
+ }
12
+
13
+ ::-webkit-scrollbar-track {
14
+ border-radius: 10px;
15
+ }
16
+
17
+ ::-webkit-scrollbar-thumb {
18
+ background: gray;
19
+ border-radius: 10px;
20
+ }
21
+
22
+ ::-webkit-scrollbar-thumb:hover {
23
+ background: #4d4c4c;
24
+ }
25
+
26
+ //Icon Styling
27
+ .icon-md {
28
+ height: 24px !important;
29
+ width: 24px !important;
30
+ font-size: 24px !important;
31
+ margin: 0 1px;
32
+ }
33
+
34
+ .icon-sm {
35
+ height: 20px !important;
36
+ width: 20px !important;
37
+ font-size: 20px !important;
38
+ }
39
+
40
+ .icon-xs {
41
+ height: 16px !important;
42
+ width: 16px !important;
43
+ font-size: 16px !important;
44
+ }
45
+
46
+ .mat-icon-xl {
47
+ height: 40px !important;
48
+ width: 40px !important;
49
+ font-size: 40px !important;
50
+ }
51
+
52
+ .mat-icon-20px {
53
+ font-size: 20px !important;
54
+ height: 20px !important;
55
+ width: 20px !important;
56
+ }
57
+
58
+ .mat-small-icon {
59
+ height: 16px !important;
60
+ width: 16px !important;
61
+ font-size: 16px !important;
62
+ }
63
+
64
+ //Button Styling
65
+ .mat-btn-md {
66
+ height: 25px !important;
67
+ padding: 0 8px !important;
68
+ }
69
+
70
+ //Override the letter spacing to match the earlier button version
71
+ .mdc-button__label {
72
+ letter-spacing: normal !important;
73
+ }
74
+
75
+ .mat-mdc-button {
76
+ .mat-icon {
77
+ height: 24px !important;
78
+ width: 24px !important;
79
+ font-size: 24px !important;
80
+ }
81
+ }
82
+
83
+ //Button toggle
84
+ .mat-button-toggle-group {
85
+ height: 48px !important;
86
+ align-items: center;
87
+ }
88
+
89
+ .mat-button-toggle-button {
90
+ height: 48px !important;
91
+ }
92
+
93
+ .mat-button-toggle-label-content {
94
+ padding: 0 8px !important;
95
+ font-size: 14px !important;
96
+ }
97
+
98
+ //Slide toggle
99
+ .mat-mdc-slide-toggle {
100
+ label {
101
+ margin: 0 !important;
102
+ }
103
+ }
104
+
105
+ .small-slide-toggle {
106
+ transform: scale(0.8);
107
+ transform-origin: left center;
108
+ }
109
+
110
+ //Font styles
111
+ .fs-8 {
112
+ font-size: 8px !important;
113
+ }
114
+
115
+ .fs-12 {
116
+ font-size: 12px !important;
117
+ }
118
+
119
+ .fs-13 {
120
+ font-size: 13px !important;
121
+ }
122
+
123
+ .fs-16 {
124
+ font-size: 16px !important;
125
+ }
126
+
127
+ .fs-18 {
128
+ font-size: 18px !important;
129
+ }
130
+
131
+ //Clickable
132
+ .clickable {
133
+ &:hover {
134
+ cursor: pointer;
135
+ }
136
+ }
137
+
138
+ //Form fields
139
+ //override mat hint for custom date select less padding
140
+ .mat-mdc-form-field-hint-wrapper {
141
+ padding: 0 4px !important;
142
+ }
143
+
144
+ .mat-mdc-floating-label {
145
+ pointer-events: none !important;
146
+ }
147
+
148
+ .nil-subscript-wrapper {
149
+ .mat-mdc-form-field-subscript-wrapper {
150
+ height: 0 !important;
151
+ }
152
+ }
153
+
154
+ .create-another {
155
+ .mat-mdc-checkbox {
156
+ label {
157
+ margin: 0 !important;
158
+ }
159
+ }
160
+
161
+ .mdc-checkbox {
162
+ padding: 0 !important;
163
+ }
164
+
165
+ .mdc-checkbox__background {
166
+ position: relative;
167
+ top: 0px;
168
+ left: 0px;
169
+ }
170
+ }
171
+
172
+ //Set the disabled color
173
+ .mat-mdc-form-field.mat-form-field-disabled {
174
+ .mat-mdc-input-element {
175
+ color: #555555 !important;
176
+ -webkit-text-fill-color: #555555 !important;
177
+ }
178
+
179
+ .mat-mdc-select-value {
180
+ color: #555555 !important;
181
+ }
182
+ }
183
+
184
+ //Cards
185
+ .mat-mdc-card {
186
+ transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
187
+ padding: 16px;
188
+ }
189
+
190
+ .mat-mdc-card-content {
191
+ padding: 0 !important;
192
+ }
193
+
194
+ //Dialogs
195
+ .mat-mdc-dialog-surface {
196
+ padding: 24px;
197
+ }
198
+
199
+ .mat-mdc-dialog-title {
200
+ padding: 0 !important;
201
+
202
+ .mat-mdc-dialog-title::before {
203
+ height: 0 !important;
204
+ }
205
+
206
+ * {
207
+ position: relative;
208
+ top: -30px !important;
209
+ }
210
+ }
211
+
212
+ //Override dialog container top padding
213
+ .mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content {
214
+ padding-top: 6px !important;
215
+ }
216
+
217
+ //Tables
218
+ .mdc-data-table__cell,
219
+ .mdc-data-table__header-cell {
220
+ padding: 0 8px !important;
221
+ }
222
+
223
+ //Override footer border
224
+ .mdc-data-table__row:last-child .mat-mdc-cell {
225
+ border-bottom: inset !important;
226
+ }
227
+
228
+ //Custom styling for action columns
229
+ .mat-column-actions {
230
+ .mat-mdc-icon-button {
231
+ width: 30px !important;
232
+ height: 30px !important;
233
+ top: 6px !important;
234
+
235
+ .mat-icon {
236
+ bottom: 9px !important;
237
+ right: 9px !important;
238
+ }
239
+ }
240
+ }
241
+
242
+ //Progress bar
243
+ .mat-mdc-progress-bar {
244
+ border-radius: 2px;
245
+ }
246
+
247
+ //Chips / Pills
248
+ .chip-mini-grey {
249
+ background-color: #d9d9d9 !important;
250
+ border-radius: 3px;
251
+ display: inline-block;
252
+ padding: 0px 6px;
253
+ font-size: 13px;
254
+ }
255
+
256
+ .chip-mini-outline {
257
+ background-color: #fff !important;
258
+ border-radius: 3px;
259
+ display: inline-block;
260
+ padding: 0px 6px;
261
+ outline: 1px solid #bbb;
262
+ font-size: 13px;
263
+ }
264
+
265
+ //Badges
266
+ .techlify-badge-grey-outlined {
267
+ background-color: #F2F3F5 !important;
268
+ font-weight: 400 !important;
269
+ font-size: 12px !important;
270
+ color: black !important;
271
+ }
272
+
273
+ .techlify-badge-white-outlined {
274
+ font-weight: 400 !important;
275
+ font-size: 12px !important;
276
+ border-style: solid !important;
277
+ border-width: thin !important;
278
+ color: black !important;
279
+ border-color: black !important;
280
+ }
@@ -0,0 +1,131 @@
1
+ //Filters Styling
2
+ .fl-md {
3
+ width: 200px !important;
4
+
5
+ .mat-mdc-form-field {
6
+ width: 100% !important;
7
+ }
8
+ }
9
+
10
+ .fl-sm {
11
+ width: 150px !important;
12
+
13
+ .mat-mdc-form-field {
14
+ width: 100% !important;
15
+ }
16
+ }
17
+
18
+ //Fixed width helpers
19
+ .wpx-50 {
20
+ width: 50px !important;
21
+ }
22
+
23
+ .wpx-100 {
24
+ width: 100px !important;
25
+ }
26
+
27
+ .wpx-120 {
28
+ width: 120px !important;
29
+ }
30
+
31
+ .wpx-125 {
32
+ width: 125px !important;
33
+ }
34
+
35
+ .wpx-150 {
36
+ width: 150px !important;
37
+ }
38
+
39
+ .wpx-200 {
40
+ width: 200px !important;
41
+ }
42
+
43
+ .wpx-250 {
44
+ width: 250px !important;
45
+ }
46
+
47
+ .min-wpx-200 {
48
+ min-width: 200px !important;
49
+ }
50
+
51
+ .max-width-px-115 {
52
+ max-width: 115px;
53
+ }
54
+
55
+ .w-description {
56
+ width: 300px !important;
57
+ }
58
+
59
+ .side-panel {
60
+ width: 300px !important;
61
+ min-width: 300px !important;
62
+ flex-shrink: 0 !important;
63
+ }
64
+
65
+ //Height helpers
66
+ .h-250px {
67
+ height: 250px !important;
68
+ }
69
+
70
+ .scroll-y {
71
+ overflow-y: auto;
72
+ }
73
+
74
+ //Flex-basis helpers (Bootstrap 5 has no percentage/zero flex-basis utilities)
75
+ .flex-basis-0 {
76
+ flex-basis: 0;
77
+ }
78
+
79
+ @each $basis in 5, 8, 10, 15, 20, 25, 30, 35, 40, 45, 48, 49, 50, 60, 65, 70, 80, 90, 95, 100 {
80
+ .flex-basis-#{$basis} {
81
+ flex-basis: $basis * 1%;
82
+ }
83
+ }
84
+
85
+ //Calc-based flex-basis helpers (percentage minus a gap), replacing fxFlex="0 1 calc(N% - X)"
86
+ .flex-basis-50-minus-1rem {
87
+ flex-basis: calc(50% - 1rem);
88
+ }
89
+
90
+ .flex-basis-50-minus-0-2rem {
91
+ flex-basis: calc(50% - 0.2rem);
92
+ }
93
+
94
+ .flex-basis-20-minus-1rem {
95
+ flex-basis: calc(20% - 1rem);
96
+ }
97
+
98
+ .flex-basis-15-minus-1rem {
99
+ flex-basis: calc(15% - 1rem);
100
+ }
101
+
102
+ .flex-basis-50-minus-4px {
103
+ flex-basis: calc(50% - 4px);
104
+ }
105
+
106
+ //Responsive flex-basis helpers (lg >= 992px, xl >= 1200px)
107
+ @media (min-width: 992px) {
108
+ .flex-lg-basis-50 {
109
+ flex-basis: 50%;
110
+ }
111
+ }
112
+
113
+ @media (min-width: 1200px) {
114
+ .flex-xl-basis-30 {
115
+ flex-basis: 30%;
116
+ }
117
+
118
+ .flex-xl-basis-30-minus-1rem {
119
+ flex: 0 1 calc(30% - 1rem);
120
+ }
121
+ }
122
+
123
+ //Column-gap helpers matching Bootstrap 5.3's column-gap-* (not available in 5.2).
124
+ //Use on wrapping rows to space items horizontally without adding vertical gap.
125
+ $techlify-column-gaps: (1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 3rem);
126
+
127
+ @each $key, $gap in $techlify-column-gaps {
128
+ .column-gap-#{$key} {
129
+ column-gap: $gap !important;
130
+ }
131
+ }
package/styles/style.scss CHANGED
@@ -1,108 +1,3 @@
1
- //Icon Styling
2
- .icon-md {
3
- height: 24px !important;
4
- width: 24px !important;
5
- font-size: 24px !important;
6
- margin: 0 1px;
7
- }
8
-
9
- .icon-sm {
10
- height: 20px !important;
11
- width: 20px !important;
12
- font-size: 20px !important;
13
- }
14
-
15
- .icon-xs {
16
- height: 16px !important;
17
- width: 16px !important;
18
- font-size: 16px !important;
19
- }
20
-
21
- //Filters Styling
22
- .fl-md {
23
- width: 200px !important;
24
-
25
- .mat-mdc-form-field {
26
- width: 100% !important;
27
- }
28
- }
29
-
30
- .fl-sm {
31
- width: 150px !important;
32
-
33
- .mat-mdc-form-field {
34
- width: 100% !important;
35
- }
36
- }
37
-
38
- //Button Styling
39
- .mat-btn-md {
40
- height: 25px !important;
41
- padding: 0 8px !important;
42
- }
43
-
44
- //Font styles
45
- .fs-12 {
46
- font-size: 12px !important;
47
- }
48
-
49
- .fs-16 {
50
- font-size: 16px !important;
51
- }
52
-
53
- .fs-13 {
54
- font-size: 13px !important;
55
- }
56
-
57
- .fs-18 {
58
- font-size: 18px !important;
59
- }
60
-
61
-
62
- //Clickable
63
- .clickable {
64
- &:hover {
65
- cursor: pointer;
66
- }
67
- }
68
-
69
- //override mat hint for custom date select less padding
70
- .mat-mdc-form-field-hint-wrapper {
71
- padding: 0 4px !important;
72
- }
73
-
74
- .nil-subscript-wrapper {
75
- .mat-mdc-form-field-subscript-wrapper {
76
- height: 0 !important;
77
- }
78
- }
79
-
80
- .create-another {
81
- .mat-mdc-checkbox {
82
- label {
83
- margin: 0 !important;
84
- }
85
- }
86
-
87
- .mdc-checkbox {
88
- padding: 0 !important;
89
- }
90
-
91
- .mdc-checkbox__background {
92
- position: relative;
93
- top: 0px;
94
- left: 0px;
95
- }
96
- }
97
-
98
- //Set the disabled color
99
- .mat-mdc-form-field.mat-form-field-disabled {
100
- .mat-mdc-input-element {
101
- color: #555555 !important;
102
- -webkit-text-fill-color: #555555 !important;
103
- }
104
-
105
- .mat-mdc-select-value {
106
- color: #555555 !important;
107
- }
108
- }
1
+ // Entry point for all ngx-techlify-core styles
2
+ @import './layout.scss';
3
+ @import './html-elements.scss';