@natec/mef-dev-ui-kit 22.0.303 → 22.0.305

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": "@natec/mef-dev-ui-kit",
3
- "version": "22.0.303",
3
+ "version": "22.0.305",
4
4
  "description": "MEF.DEV UI Kit Library",
5
5
  "author": {
6
6
  "name": "NATEC"
@@ -0,0 +1,370 @@
1
+ @use '../../styles/vars.scss' as *;
2
+ @use 'sass:color' as color;
3
+
4
+ // ═══════════════════════════════════════════════════════════════════════════
5
+ // MD Grid Table Style
6
+ // ═══════════════════════════════════════════════════════════════════════════
7
+ //
8
+ // USAGE:
9
+ // <md-grid class="md-grid-table" ...>
10
+ // <md-grid class="md-grid-table zebra-white" ...>
11
+ // <md-grid class="md-grid-table zebra-grey" ...>
12
+ //
13
+ // ═══════════════════════════════════════════════════════════════════════════
14
+
15
+ .md-grid-table {
16
+ // ═════════════════════════════════════════════════════════════════════════
17
+ // HOST STYLES
18
+ // ═════════════════════════════════════════════════════════════════════════
19
+
20
+ &.md-grid,
21
+ .md-grid {
22
+ font-family: $base-font-family;
23
+ font-size: 13px;
24
+ font-weight: 400;
25
+ line-height: 21px;
26
+ background: transparent;
27
+ border: none;
28
+ border-radius: 0;
29
+ box-shadow: none;
30
+ }
31
+
32
+ // ═════════════════════════════════════════════════════════════════════════
33
+ // HEADER
34
+ // ═════════════════════════════════════════════════════════════════════════
35
+
36
+ .md-grid-header {
37
+ background: $Light-Gray-2;
38
+ border: none;
39
+ box-shadow: none;
40
+ }
41
+
42
+ .md-grid-header-inner {
43
+ padding: 0;
44
+ width: 100%;
45
+ }
46
+
47
+ .md-grid-header-cell {
48
+ padding: 13px 8px 10px 8px;
49
+ background: transparent;
50
+ font-family: $font-header;
51
+ font-size: 14px;
52
+ font-weight: 300;
53
+ text-transform: uppercase;
54
+ letter-spacing: 0.5px;
55
+ color: $Dark-Gray-2;
56
+ vertical-align: middle;
57
+
58
+ &:not(:first-child) {
59
+ border-left: 2px solid $White;
60
+ }
61
+
62
+ &.sortable {
63
+ cursor: pointer;
64
+ user-select: none;
65
+
66
+ &:hover {
67
+ background: transparent;
68
+ }
69
+ }
70
+
71
+ &.sort-active {
72
+ color: $Dark-Gray-2;
73
+ }
74
+ }
75
+
76
+ .md-grid-header-cell-label {
77
+ line-height: 1.2;
78
+ }
79
+
80
+ // ═════════════════════════════════════════════════════════════════════════
81
+ // SORT ICONS
82
+ // ═════════════════════════════════════════════════════════════════════════
83
+
84
+ .md-grid-sort-icon {
85
+ color: $Light-Gray-1;
86
+
87
+ &.md-grid-sort-asc,
88
+ &.md-grid-sort-desc {
89
+ color: $Dark-Gray-2;
90
+ }
91
+ }
92
+
93
+ // ═════════════════════════════════════════════════════════════════════════
94
+ // BODY
95
+ // ═════════════════════════════════════════════════════════════════════════
96
+
97
+ .md-grid-body {
98
+ padding: 0;
99
+ background: transparent;
100
+ gap: 0 !important;
101
+
102
+ &::-webkit-scrollbar-corner {
103
+ background: transparent;
104
+ }
105
+ }
106
+
107
+ .md-grid-group-rows {
108
+ gap: 0 !important;
109
+ }
110
+
111
+ // ═════════════════════════════════════════════════════════════════════════
112
+ // CARD (ROW) - Table row style
113
+ // ═════════════════════════════════════════════════════════════════════════
114
+
115
+ .md-grid-card {
116
+ background: $White;
117
+ border: none;
118
+ border-radius: 0;
119
+ box-shadow: none;
120
+
121
+ // Hover effect for dense table rows
122
+ &:hover {
123
+ background: color.mix($Light-Gray-2, $White, 30%);
124
+ box-shadow: none;
125
+ transform: none;
126
+ }
127
+
128
+ // Active/selected row
129
+ &.md-grid-card-editing {
130
+ background: color.mix($Link, $White, 10%) !important;
131
+ border: none;
132
+ box-shadow: none;
133
+ }
134
+ }
135
+
136
+ // ═════════════════════════════════════════════════════════════════════════
137
+ // CELL
138
+ // ═════════════════════════════════════════════════════════════════════════
139
+
140
+ .md-grid-cell {
141
+ padding: 8px;
142
+ font-family: $base-font-family;
143
+ font-size: 13px;
144
+ font-weight: 400;
145
+ line-height: 21px;
146
+ color: $Black-Color;
147
+ background: transparent;
148
+ max-height: 30px;
149
+ border: none;
150
+ }
151
+
152
+ .md-grid-cell-value {
153
+ display: block;
154
+ width: 100%;
155
+ }
156
+
157
+ // ═════════════════════════════════════════════════════════════════════════
158
+ // ACTIONS CELL
159
+ // ═════════════════════════════════════════════════════════════════════════
160
+
161
+ .md-grid-actions-cell {
162
+ border-left: none;
163
+ background: transparent;
164
+ }
165
+
166
+ // ═════════════════════════════════════════════════════════════════════════
167
+ // FOOTER / PAGINATION
168
+ // ═════════════════════════════════════════════════════════════════════════
169
+
170
+ .md-grid-footer {
171
+ background: $Light-Gray-2;
172
+ border-top: 1px solid rgba(0, 0, 0, 0.08);
173
+ padding: 8px;
174
+ font-size: 12px;
175
+ color: $Dark-Gray-2;
176
+ }
177
+
178
+ .md-grid-pager {
179
+ gap: 2px;
180
+ }
181
+
182
+ .md-grid-pager-btn {
183
+ min-width: 24px;
184
+ height: 24px;
185
+ padding: 0 10px;
186
+ border-radius: 4px;
187
+ border: none;
188
+ background: transparent;
189
+ color: $Dark-Gray-2;
190
+ font-size: 12px;
191
+
192
+ &:hover:not(:disabled) {
193
+ background: transparent;
194
+ color: $Red;
195
+ }
196
+
197
+ &:disabled {
198
+ opacity: 0.3;
199
+ cursor: not-allowed;
200
+ }
201
+ }
202
+
203
+ .md-grid-pager-info {
204
+ padding: 0 8px;
205
+ font-weight: 400;
206
+ }
207
+
208
+ // ═════════════════════════════════════════════════════════════════════════
209
+ // GROUP HEADER
210
+ // ═════════════════════════════════════════════════════════════════════════
211
+
212
+ .md-grid-group-header {
213
+ background: color.mix($Light-Gray-2, $White, 50%);
214
+ border-bottom: 1px solid rgba(0, 0, 0, 0.08);
215
+ padding: 12px 20px;
216
+ margin-bottom: 0;
217
+ border-radius: 0;
218
+ font-weight: 600;
219
+ font-size: 13px;
220
+ color: $Dark-Gray-1;
221
+ }
222
+
223
+ // ═════════════════════════════════════════════════════════════════════════
224
+ // RESPONSIVE
225
+ // ═════════════════════════════════════════════════════════════════════════
226
+
227
+ @media (max-width: 768px) {
228
+ font-size: 12px;
229
+
230
+ .md-grid-footer {
231
+ flex-direction: column;
232
+ gap: 8px;
233
+ align-items: flex-start;
234
+ padding: 8px 12px;
235
+ }
236
+ }
237
+
238
+ @media (max-width: 540px) {
239
+ .md-grid-body {
240
+ padding: 6px;
241
+ }
242
+
243
+ .horizontal-scroll-container,
244
+ .md-grid-group-rows {
245
+ display: flex;
246
+ flex-direction: column;
247
+ gap: 10px !important;
248
+ }
249
+
250
+ .md-grid-card {
251
+ border-radius: 8px;
252
+ }
253
+
254
+ .md-grid-cell {
255
+ padding: 7px 12px;
256
+ max-height: none;
257
+ }
258
+
259
+ .md-grid-actions-cell,
260
+ .md-grid-column-actions-cell {
261
+ padding: 7px 4px;
262
+ }
263
+
264
+ .md-grid-first-action-cell,
265
+ .md-grid-row-actions-cell {
266
+ margin-left: auto;
267
+ }
268
+
269
+ .md-grid-last-action-cell,
270
+ .md-grid-row-actions-cell {
271
+ padding-right: 16px;
272
+ }
273
+ }
274
+ }
275
+
276
+ // ═════════════════════════════════════════════════════════════════════════
277
+ // Modifier: zebra-white (white header, zebra rows)
278
+ // ═════════════════════════════════════════════════════════════════════════
279
+
280
+ .md-grid-table.zebra-white {
281
+ .md-grid-header {
282
+ background: $White;
283
+ }
284
+
285
+ .md-grid-header-cell {
286
+ &:not(:first-child) {
287
+ border-left: 2px solid $Light-Gray-3;
288
+ }
289
+ }
290
+
291
+ .md-grid-card {
292
+ &:nth-child(odd) {
293
+ background: transparent;
294
+ }
295
+
296
+ &:nth-child(even) {
297
+ background: $White;
298
+ }
299
+
300
+ &:hover {
301
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
302
+ }
303
+ }
304
+
305
+ .md-grid-group-rows {
306
+ .md-grid-card {
307
+ &:nth-child(odd) {
308
+ background: transparent;
309
+ }
310
+
311
+ &:nth-child(even) {
312
+ background: $White;
313
+ }
314
+
315
+ &:hover {
316
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
317
+ }
318
+ }
319
+ }
320
+
321
+ .md-grid-footer {
322
+ background: $White;
323
+ }
324
+ }
325
+
326
+ // ═════════════════════════════════════════════════════════════════════════
327
+ // Modifier: zebra-grey (grey header, zebra with grey)
328
+ // ═════════════════════════════════════════════════════════════════════════
329
+
330
+ .md-grid-table.zebra-grey {
331
+ .md-grid-card {
332
+ // White rows (odd)
333
+ &:nth-child(odd) {
334
+ background: $White;
335
+
336
+ &:hover {
337
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
338
+ }
339
+ }
340
+
341
+ // Grey rows (even)
342
+ &:nth-child(even) {
343
+ background: $Light-Gray-2;
344
+
345
+ &:hover {
346
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
347
+ }
348
+ }
349
+ }
350
+
351
+ .md-grid-group-rows {
352
+ .md-grid-card {
353
+ &:nth-child(odd) {
354
+ background: $White;
355
+
356
+ &:hover {
357
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
358
+ }
359
+ }
360
+
361
+ &:nth-child(even) {
362
+ background: $Light-Gray-2;
363
+
364
+ &:hover {
365
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
366
+ }
367
+ }
368
+ }
369
+ }
370
+ }
@@ -0,0 +1,712 @@
1
+ @use '../../styles/vars.scss' as *;
2
+ @use 'sass:color' as color;
3
+
4
+ // ═══════════════════════════════════════════════════════════════════════════
5
+ // MD Cards Grid Custom Theme
6
+ // Bordered card style with shadows and rounded corners
7
+ // ═══════════════════════════════════════════════════════════════════════════
8
+ //
9
+ // USAGE:
10
+ // Add the theme class to the md-grid element:
11
+ // <md-grid class="md-grid-bordered" ...>
12
+ //
13
+ // Or wrap it in a container:
14
+ // <div class="md-grid-bordered">
15
+ // <md-grid ...>
16
+ // </div>
17
+ //
18
+ // ═══════════════════════════════════════════════════════════════════════════
19
+ // AVAILABLE CSS CLASSES (for reference):
20
+ // ═══════════════════════════════════════════════════════════════════════════
21
+ //
22
+ // HOST / CONTAINER:
23
+ // .md-grid - Main component host
24
+ // .md-grid-shrink-mode - Applied when overflowMode="shrink"
25
+ //
26
+ // SCROLL:
27
+ // .md-grid-scroll-container - Horizontal scroll wrapper
28
+ //
29
+ // HEADER:
30
+ // .md-grid-header - Header container
31
+ // .md-grid-header-inner - Header flex container
32
+ // .md-grid-header-cell - Individual header cell
33
+ // .md-grid-header-cell-label - Header cell text label
34
+ // .md-grid-header-cell.sortable - Sortable header cell
35
+ // .md-grid-header-cell.sort-active - Currently sorted column
36
+ // .md-grid-header-cell.sort-asc - Ascending sort
37
+ // .md-grid-header-cell.sort-desc - Descending sort
38
+ // .md-grid-header-cell.resizeable - Resizeable column header
39
+ //
40
+ // SORT ICONS:
41
+ // .md-grid-sort-icon - Sort icon container
42
+ // .md-grid-sort-asc - Ascending sort icon
43
+ // .md-grid-sort-desc - Descending sort icon
44
+ //
45
+ // RESIZE:
46
+ // .md-grid-resize-handle - Column resize drag handle
47
+ // body.md-grid-resizing - Applied to body during resize
48
+ //
49
+ // BODY:
50
+ // .md-grid-body - Body container (cards wrapper)
51
+ //
52
+ // GROUPS:
53
+ // .md-grid-group - Group container
54
+ // .md-grid-group-header - Group header
55
+ // .md-grid-group-title - Group title text
56
+ // .md-grid-group-rows - Group rows container
57
+ //
58
+ // CARD (ROW):
59
+ // .md-grid-card - Individual card/row
60
+ // .md-grid-card-editing - Card in edit mode
61
+ // .md-grid-card-fixed-height - Card with fixed height (clips content)
62
+ //
63
+ // CELL:
64
+ // .md-grid-cell - Individual cell
65
+ // .md-grid-cell-value - Cell value wrapper
66
+ //
67
+ // ACTIONS:
68
+ // .md-grid-actions-cell - Actions cell container
69
+ // .md-grid-action-btn - Action button base
70
+ // .md-grid-action-edit - Edit button
71
+ // .md-grid-action-save - Save button
72
+ // .md-grid-action-cancel - Cancel button
73
+ //
74
+ // ACTION ICONS:
75
+ // .md-grid-icon-edit - Edit icon (pencil)
76
+ // .md-grid-icon-save - Save icon (checkmark)
77
+ // .md-grid-icon-cancel - Cancel icon (X)
78
+ //
79
+ // FOOTER / PAGINATION:
80
+ // .md-grid-footer - Footer container
81
+ // .md-grid-pager - Pager container
82
+ // .md-grid-pager-btn - Pager button
83
+ // .md-grid-pager-info - Page info text (e.g., "1 / 5")
84
+ //
85
+ // PAGER ICONS:
86
+ // .md-grid-icon-first - First page icon
87
+ // .md-grid-icon-prev - Previous page icon
88
+ // .md-grid-icon-next - Next page icon
89
+ // .md-grid-icon-last - Last page icon
90
+ //
91
+ // ═══════════════════════════════════════════════════════════════════════════
92
+
93
+ .md-grid-bordered {
94
+ // ═════════════════════════════════════════════════════════════════════════
95
+ // HOST STYLES
96
+ // ═════════════════════════════════════════════════════════════════════════
97
+
98
+ &.md-grid,
99
+ .md-grid {
100
+ font-family: $base-font-family;
101
+ font-size: 13px;
102
+ background: $White;
103
+ border: 1px solid $Light-Gray-2;
104
+ border-radius: $default-border-size;
105
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
106
+ overflow: hidden;
107
+ }
108
+
109
+ // ═════════════════════════════════════════════════════════════════════════
110
+ // SCROLL CONTAINER
111
+ // ═════════════════════════════════════════════════════════════════════════
112
+
113
+ .md-grid-scroll-container {
114
+ &::-webkit-scrollbar {
115
+ height: 8px;
116
+ }
117
+
118
+ &::-webkit-scrollbar-track {
119
+ background: $Light-Gray-3;
120
+ }
121
+
122
+ &::-webkit-scrollbar-thumb {
123
+ background: $Light-Gray-1;
124
+ border-radius: 4px;
125
+
126
+ &:hover {
127
+ background: $Dark-Gray-2;
128
+ }
129
+ }
130
+ }
131
+
132
+ // ═════════════════════════════════════════════════════════════════════════
133
+ // HEADER
134
+ // ═════════════════════════════════════════════════════════════════════════
135
+
136
+ .md-grid-header {
137
+ border-bottom: 1px solid $Light-Gray-2;
138
+ }
139
+
140
+ .md-grid-header-cell {
141
+ padding: 12px 16px;
142
+ background: $White;
143
+ font-size: 12px;
144
+ font-weight: 600;
145
+ color: $Dark-Gray-2;
146
+ text-transform: uppercase;
147
+ letter-spacing: 0.5px;
148
+
149
+ // No separator between cells in bordered mode
150
+ &:not(:first-child) {
151
+ border-left: none;
152
+ }
153
+
154
+ &.sortable {
155
+ &:hover {
156
+ background: $Light-Gray-3;
157
+ }
158
+
159
+ &:focus {
160
+ outline: 2px solid $Link;
161
+ outline-offset: -2px;
162
+ }
163
+ }
164
+
165
+ &.sort-active {
166
+ color: $Link;
167
+ }
168
+ }
169
+
170
+ // ═════════════════════════════════════════════════════════════════════════
171
+ // SORT ICONS
172
+ // ═════════════════════════════════════════════════════════════════════════
173
+
174
+ .md-grid-sort-icon {
175
+ margin-left: 4px;
176
+ color: $Light-Gray-1;
177
+
178
+ &.md-grid-sort-asc,
179
+ &.md-grid-sort-desc {
180
+ color: $Link;
181
+ }
182
+ }
183
+
184
+ // ═════════════════════════════════════════════════════════════════════════
185
+ // RESIZE HANDLE
186
+ // ═════════════════════════════════════════════════════════════════════════
187
+
188
+ .md-grid-resize-handle {
189
+ right: 0;
190
+ width: 8px;
191
+
192
+ &::after {
193
+ width: 2px;
194
+ }
195
+
196
+ &:hover::after {
197
+ background: $Link;
198
+ }
199
+ }
200
+
201
+ // ═════════════════════════════════════════════════════════════════════════
202
+ // BODY
203
+ // ═════════════════════════════════════════════════════════════════════════
204
+
205
+ .md-grid-body {
206
+ padding: 8px;
207
+ background: $Light-Gray-3;
208
+ }
209
+
210
+ .md-grid-empty {
211
+ background: $White;
212
+ border: 1px solid $Light-Gray-2;
213
+ border-radius: $default-border-size;
214
+ }
215
+
216
+ .md-grid-empty-text {
217
+ color: $Dark-Gray-2;
218
+ }
219
+
220
+ // ═════════════════════════════════════════════════════════════════════════
221
+ // GROUPS
222
+ // ═════════════════════════════════════════════════════════════════════════
223
+
224
+ .md-grid-group {
225
+ margin-bottom: 16px;
226
+
227
+ &:last-child {
228
+ margin-bottom: 0;
229
+ }
230
+ }
231
+
232
+ .md-grid-group-header {
233
+ padding: 8px 12px;
234
+ margin-bottom: 8px;
235
+ background: $Light-Gray-2;
236
+ border-radius: $default-border-size;
237
+ font-size: 13px;
238
+ font-weight: 600;
239
+ color: $Dark-Gray-1;
240
+ }
241
+
242
+ .md-grid-group-rows {
243
+ gap: 8px;
244
+ }
245
+
246
+ // ═════════════════════════════════════════════════════════════════════════
247
+ // CARD (ROW)
248
+ // ═════════════════════════════════════════════════════════════════════════
249
+
250
+ .md-grid-card {
251
+ background: $White;
252
+ border: 1px solid $Light-Gray-2;
253
+ border-radius: $default-border-size;
254
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
255
+ transition: background-color 0.15s ease, box-shadow 0.15s ease;
256
+
257
+ &:hover {
258
+ background: $Light-Gray-3;
259
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
260
+ transform: none;
261
+ }
262
+
263
+ &.md-grid-card-editing {
264
+ background: #fffef5;
265
+ border-color: $Yellow;
266
+ box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
267
+ }
268
+ }
269
+
270
+ // ═════════════════════════════════════════════════════════════════════════
271
+ // CELL
272
+ // ═════════════════════════════════════════════════════════════════════════
273
+
274
+ .md-grid-cell {
275
+ padding: 12px 16px;
276
+ font-size: 14px;
277
+ color: $Black-Color;
278
+ border-right: 1px solid $Light-Gray-2;
279
+
280
+ &:last-child {
281
+ border-right: none;
282
+ }
283
+ }
284
+
285
+ .md-grid-cell-value {
286
+ line-height: 1.4;
287
+ }
288
+
289
+ // ═════════════════════════════════════════════════════════════════════════
290
+ // ACTIONS CELL
291
+ // ═════════════════════════════════════════════════════════════════════════
292
+
293
+ .md-grid-actions-cell {
294
+ padding: 8px 12px;
295
+ gap: 4px;
296
+ min-width: 80px;
297
+ border-left: 1px solid $Light-Gray-2;
298
+ }
299
+
300
+ // ═════════════════════════════════════════════════════════════════════════
301
+ // ACTION BUTTONS
302
+ // ═════════════════════════════════════════════════════════════════════════
303
+
304
+ .md-grid-action-btn {
305
+ width: 28px;
306
+ height: 28px;
307
+ border-radius: 4px;
308
+ transition: background-color 0.15s ease, color 0.15s ease;
309
+
310
+ &:hover {
311
+ transform: none;
312
+ }
313
+ }
314
+
315
+ .md-grid-action-edit {
316
+ color: $Link;
317
+
318
+ &:hover {
319
+ background: rgba($Link, 0.1);
320
+ }
321
+ }
322
+
323
+ .md-grid-action-save {
324
+ color: $Green;
325
+
326
+ &:hover {
327
+ background: rgba($Green, 0.1);
328
+ }
329
+ }
330
+
331
+ .md-grid-action-cancel {
332
+ color: $Red;
333
+
334
+ &:hover {
335
+ background: rgba($Red, 0.1);
336
+ }
337
+ }
338
+
339
+ // ═════════════════════════════════════════════════════════════════════════
340
+ // ACTION ICONS
341
+ // ═════════════════════════════════════════════════════════════════════════
342
+
343
+ .md-grid-icon-edit,
344
+ .md-grid-icon-save,
345
+ .md-grid-icon-cancel {
346
+ width: 16px;
347
+ height: 16px;
348
+ }
349
+
350
+ // ═════════════════════════════════════════════════════════════════════════
351
+ // FOOTER / PAGINATION
352
+ // ═════════════════════════════════════════════════════════════════════════
353
+
354
+ .md-grid-footer {
355
+ padding: 8px 16px;
356
+ background: $White;
357
+ border-top: 1px solid $Light-Gray-2;
358
+ font-size: 12px;
359
+ color: $Dark-Gray-2;
360
+ }
361
+
362
+ .md-grid-pager {
363
+ gap: 4px;
364
+ }
365
+
366
+ .md-grid-pager-btn {
367
+ width: 28px;
368
+ height: 28px;
369
+ border: 1px solid $Light-Gray-2;
370
+ border-radius: 4px;
371
+ background: $White;
372
+ color: $Dark-Gray-2;
373
+
374
+ &:hover:not(:disabled) {
375
+ background: $Light-Gray-3;
376
+ border-color: $Light-Gray-1;
377
+ }
378
+
379
+ &:disabled {
380
+ opacity: 0.4;
381
+ }
382
+ }
383
+
384
+ .md-grid-pager-info {
385
+ padding: 0 12px;
386
+ font-weight: 500;
387
+ }
388
+
389
+ // ═════════════════════════════════════════════════════════════════════════
390
+ // PAGINATOR PAGE SIZE
391
+ // ═════════════════════════════════════════════════════════════════════════
392
+
393
+ .md-paginator-page-size-select {
394
+ border-color: $Light-Gray-2;
395
+ background: $White;
396
+
397
+ &:hover {
398
+ border-color: $Light-Gray-1;
399
+ }
400
+
401
+ &:focus {
402
+ border-color: $Link;
403
+ }
404
+ }
405
+
406
+ // ═════════════════════════════════════════════════════════════════════════
407
+ // RESPONSIVE
408
+ // ═════════════════════════════════════════════════════════════════════════
409
+
410
+ @media (max-width: 768px) {
411
+ &.md-grid,
412
+ .md-grid {
413
+ font-size: 12px;
414
+ }
415
+
416
+ .md-grid-header {
417
+ display: none;
418
+ }
419
+
420
+ .md-grid-body {
421
+ padding: 8px;
422
+ }
423
+
424
+ .md-grid-card {
425
+ flex-direction: column;
426
+ }
427
+
428
+ .md-grid-cell {
429
+ padding: 10px 12px;
430
+ border-right: none;
431
+ border-bottom: 1px solid $Light-Gray-2;
432
+
433
+ &:last-child {
434
+ border-bottom: none;
435
+ }
436
+ }
437
+
438
+ .md-grid-actions-cell {
439
+ border-left: none;
440
+ border-top: 1px solid $Light-Gray-2;
441
+ justify-content: center;
442
+ }
443
+
444
+ .md-grid-footer {
445
+ flex-direction: column;
446
+ gap: 8px;
447
+ padding: 8px 12px;
448
+ }
449
+ }
450
+ }
451
+
452
+ // ═══════════════════════════════════════════════════════════════════════════
453
+ // MODIFIER: Zebra striping (alternating row colors)
454
+ // ═══════════════════════════════════════════════════════════════════════════
455
+
456
+ .md-grid-bordered.zebra {
457
+ .md-grid-body {
458
+ background: $White;
459
+ }
460
+
461
+ .md-grid-card {
462
+ border: none;
463
+ border-radius: 0;
464
+ box-shadow: none;
465
+
466
+ &:nth-child(odd) {
467
+ background: $White;
468
+ }
469
+
470
+ &:nth-child(even) {
471
+ background: $Light-Gray-3;
472
+ }
473
+
474
+ &:hover {
475
+ background: color.mix($Light-Gray-1, $White, 25%) !important;
476
+ }
477
+ }
478
+ }
479
+
480
+ // ═══════════════════════════════════════════════════════════════════════════
481
+ // MODIFIER: Compact (smaller padding)
482
+ // ═══════════════════════════════════════════════════════════════════════════
483
+
484
+ .md-grid-bordered.compact {
485
+ .md-grid-header-cell {
486
+ padding: 8px 10px;
487
+ font-size: 11px;
488
+ }
489
+
490
+ .md-grid-body {
491
+ padding: 6px;
492
+ }
493
+
494
+ .md-grid-group-rows {
495
+ gap: 4px;
496
+ }
497
+
498
+ .md-grid-card {
499
+ border-radius: 4px;
500
+ }
501
+
502
+ .md-grid-cell {
503
+ padding: 8px 10px;
504
+ font-size: 12px;
505
+ }
506
+
507
+ .md-grid-actions-cell {
508
+ padding: 6px 8px;
509
+ min-width: 60px;
510
+ }
511
+
512
+ .md-grid-action-btn {
513
+ width: 24px;
514
+ height: 24px;
515
+ }
516
+
517
+ .md-grid-footer {
518
+ padding: 6px 12px;
519
+ }
520
+
521
+ .md-grid-pager-btn {
522
+ width: 24px;
523
+ height: 24px;
524
+ }
525
+ }
526
+
527
+ // ═══════════════════════════════════════════════════════════════════════════
528
+ // DARK THEME
529
+ // ═══════════════════════════════════════════════════════════════════════════
530
+
531
+ .bg-dark .md-grid-bordered,
532
+ .dark-mode .md-grid-bordered,
533
+ .md-grid-bordered.dark-theme {
534
+ &.md-grid,
535
+ .md-grid {
536
+ background: color.mix($Dark-Gray-1, $Black-Color, 90%);
537
+ border-color: color.mix($Dark-Gray-2, $Black-Color, 70%);
538
+ box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
539
+ }
540
+
541
+ .md-grid-scroll-container {
542
+ &::-webkit-scrollbar-track {
543
+ background: color.mix($Dark-Gray-1, $Black-Color, 80%);
544
+ }
545
+
546
+ &::-webkit-scrollbar-thumb {
547
+ background: $Dark-Gray-2;
548
+
549
+ &:hover {
550
+ background: $Light-Gray-1;
551
+ }
552
+ }
553
+ }
554
+
555
+ .md-grid-header {
556
+ background: color.mix($Dark-Gray-2, $Black-Color, 85%);
557
+ border-bottom-color: color.mix($Dark-Gray-1, $Black-Color, 60%);
558
+ }
559
+
560
+ .md-grid-header-cell {
561
+ background: color.mix($Dark-Gray-2, $Black-Color, 85%);
562
+ color: $Light-Gray-2;
563
+
564
+ &.sortable:hover {
565
+ background: color.mix($Dark-Gray-1, $Black-Color, 70%);
566
+ }
567
+
568
+ &.sort-active {
569
+ color: $Link-on-dark;
570
+ }
571
+ }
572
+
573
+ .md-grid-sort-icon {
574
+ color: $Dark-Gray-2;
575
+
576
+ &.md-grid-sort-asc,
577
+ &.md-grid-sort-desc {
578
+ color: $Link-on-dark;
579
+ }
580
+ }
581
+
582
+ .md-grid-resize-handle {
583
+ &:hover::after {
584
+ background: $Link-on-dark;
585
+ }
586
+ }
587
+
588
+ .md-grid-body {
589
+ background: color.mix($Dark-Gray-1, $Black-Color, 85%);
590
+ }
591
+
592
+ .md-grid-group-header {
593
+ background: color.mix($Dark-Gray-2, $Black-Color, 75%);
594
+ color: $Light-Gray-2;
595
+ }
596
+
597
+ .md-grid-card {
598
+ background: color.mix($Dark-Gray-1, $Black-Color, 95%);
599
+ border-color: color.mix($Dark-Gray-2, $Black-Color, 60%);
600
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
601
+
602
+ &:hover {
603
+ background: color.mix($Dark-Gray-2, $Black-Color, 80%);
604
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
605
+ }
606
+
607
+ &.md-grid-card-editing {
608
+ background: color.mix($Yellow, $Black-Color, 15%);
609
+ border-color: $Yellow;
610
+ box-shadow: 0 0 0 3px rgba($Yellow, 0.3);
611
+ }
612
+ }
613
+
614
+ .md-grid-cell {
615
+ color: $Light-Gray-2;
616
+ border-right-color: color.mix($Dark-Gray-2, $Black-Color, 60%);
617
+ }
618
+
619
+ .md-grid-actions-cell {
620
+ border-left-color: color.mix($Dark-Gray-2, $Black-Color, 60%);
621
+ }
622
+
623
+ .md-grid-action-edit {
624
+ color: $Link-on-dark;
625
+
626
+ &:hover {
627
+ background: color.mix($Link-on-dark, $Black-Color, 25%);
628
+ }
629
+ }
630
+
631
+ .md-grid-action-save {
632
+ color: $Green;
633
+
634
+ &:hover {
635
+ background: color.mix($Green, $Black-Color, 25%);
636
+ }
637
+ }
638
+
639
+ .md-grid-action-cancel {
640
+ color: $Red;
641
+
642
+ &:hover {
643
+ background: color.mix($Red, $Black-Color, 25%);
644
+ }
645
+ }
646
+
647
+ .md-grid-footer {
648
+ background: color.mix($Dark-Gray-2, $Black-Color, 85%);
649
+ border-top-color: color.mix($Dark-Gray-1, $Black-Color, 60%);
650
+ color: $Light-Gray-2;
651
+ }
652
+
653
+ .md-grid-pager-btn {
654
+ background: color.mix($Dark-Gray-1, $Black-Color, 95%);
655
+ border-color: color.mix($Dark-Gray-2, $Black-Color, 60%);
656
+ color: $Light-Gray-2;
657
+
658
+ &:hover:not(:disabled) {
659
+ background: color.mix($Dark-Gray-2, $Black-Color, 80%);
660
+ border-color: $Light-Gray-1;
661
+ color: $White;
662
+ }
663
+ }
664
+
665
+ .md-grid-pager-info {
666
+ color: $Light-Gray-2;
667
+ }
668
+
669
+ .md-grid-empty {
670
+ background: color.mix($Dark-Gray-1, $Black-Color, 95%);
671
+ border-color: color.mix($Dark-Gray-2, $Black-Color, 60%);
672
+ }
673
+
674
+ .md-grid-empty-text {
675
+ color: $Light-Gray-2;
676
+ }
677
+
678
+ .md-paginator-page-size-label {
679
+ color: $Light-Gray-2;
680
+ }
681
+
682
+ .md-paginator-page-size-select {
683
+ background: color.mix($Dark-Gray-1, $Black-Color, 95%);
684
+ border-color: color.mix($Dark-Gray-2, $Black-Color, 60%);
685
+ color: $Light-Gray-2;
686
+
687
+ &:hover {
688
+ border-color: $Light-Gray-1;
689
+ }
690
+ }
691
+
692
+ // Zebra in dark mode
693
+ &.zebra {
694
+ .md-grid-body {
695
+ background: color.mix($Dark-Gray-1, $Black-Color, 90%);
696
+ }
697
+
698
+ .md-grid-card {
699
+ &:nth-child(odd) {
700
+ background: color.mix($Dark-Gray-1, $Black-Color, 95%);
701
+ }
702
+
703
+ &:nth-child(even) {
704
+ background: color.mix($Dark-Gray-1, $Black-Color, 85%);
705
+ }
706
+
707
+ &:hover {
708
+ background: color.mix($Dark-Gray-2, $Black-Color, 75%) !important;
709
+ }
710
+ }
711
+ }
712
+ }