@natec/mef-dev-ui-kit 20.1.15 → 20.1.17

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.
@@ -324,6 +324,346 @@
324
324
  }
325
325
  }
326
326
 
327
+ // ═══════════════════════════════════════════════════════════════════════════
328
+ // MD Cards Grid Table Style
329
+ // Makes md-grid look like ngx-datatable
330
+ // ═══════════════════════════════════════════════════════════════════════════
331
+ //
332
+ // USAGE:
333
+ // <md-grid class="md-grid-table" ...>
334
+ // <md-grid class="md-grid-table zebra-white" ...>
335
+ // <md-grid class="md-grid-table zebra-grey" ...>
336
+ //
337
+ // ═══════════════════════════════════════════════════════════════════════════
338
+
339
+ .md-grid-table {
340
+ // ═════════════════════════════════════════════════════════════════════════
341
+ // HOST STYLES
342
+ // ═════════════════════════════════════════════════════════════════════════
343
+
344
+ &.md-grid,
345
+ .md-grid {
346
+ font-family: $base-font-family;
347
+ font-size: 13px;
348
+ background: transparent;
349
+ border: none;
350
+ border-radius: 0;
351
+ box-shadow: none;
352
+ }
353
+
354
+ // ═════════════════════════════════════════════════════════════════════════
355
+ // HEADER
356
+ // ═════════════════════════════════════════════════════════════════════════
357
+
358
+ .md-grid-header {
359
+ background: $Light-Gray-2;
360
+ border: none;
361
+ box-shadow: none;
362
+ width: -webkit-fill-available;
363
+ }
364
+
365
+ .md-grid-header-inner {
366
+ padding: 0;
367
+ width: 100%;
368
+ }
369
+
370
+ .md-grid-header-cell {
371
+ padding: 13px 8px 10px 8px;
372
+ background: transparent;
373
+ font-family: $font-header;
374
+ font-size: 14px;
375
+ font-weight: 300;
376
+ text-transform: uppercase;
377
+ letter-spacing: 0.5px;
378
+ color: $Dark-Gray-2;
379
+ vertical-align: middle;
380
+
381
+ &:not(:first-child) {
382
+ border-left: 2px solid $White;
383
+ }
384
+
385
+ &.sortable {
386
+ cursor: pointer;
387
+ user-select: none;
388
+
389
+ &:hover {
390
+ background: transparent;
391
+ }
392
+ }
393
+
394
+ &.sort-active {
395
+ color: $Dark-Gray-2;
396
+ }
397
+ }
398
+
399
+ .md-grid-header-cell-label {
400
+ line-height: 1.2;
401
+ }
402
+
403
+ // ═════════════════════════════════════════════════════════════════════════
404
+ // SORT ICONS
405
+ // ═════════════════════════════════════════════════════════════════════════
406
+
407
+ .md-grid-sort-icon {
408
+ color: $Light-Gray-1;
409
+
410
+ &.md-grid-sort-asc,
411
+ &.md-grid-sort-desc {
412
+ color: $Dark-Gray-2;
413
+ }
414
+ }
415
+
416
+ // ═════════════════════════════════════════════════════════════════════════
417
+ // BODY
418
+ // ═════════════════════════════════════════════════════════════════════════
419
+
420
+ .md-grid-body {
421
+ padding: 0;
422
+ background: transparent;
423
+ gap: 0 !important;
424
+ width: 100%;
425
+ min-width: 100%;
426
+ }
427
+
428
+ .md-grid-group-rows {
429
+ gap: 0 !important;
430
+ width: 100%;
431
+ }
432
+
433
+ // ═════════════════════════════════════════════════════════════════════════
434
+ // CARD (ROW) - Table row style
435
+ // ═════════════════════════════════════════════════════════════════════════
436
+
437
+ .md-grid-card {
438
+ background: $White;
439
+ border: none;
440
+ border-radius: 0;
441
+ box-shadow: none;
442
+ width: 100%;
443
+
444
+ // Hover effect same as ngx-datatable
445
+ &:hover {
446
+ background: color.mix($Light-Gray-2, $White, 30%);
447
+ box-shadow: none;
448
+ transform: none;
449
+ }
450
+
451
+ // Active/selected row
452
+ &.md-grid-card-editing {
453
+ background: color.mix($Link, $White, 10%) !important;
454
+ border: none;
455
+ box-shadow: none;
456
+ }
457
+ }
458
+
459
+ // ═════════════════════════════════════════════════════════════════════════
460
+ // CELL
461
+ // ═════════════════════════════════════════════════════════════════════════
462
+
463
+ .md-grid-cell {
464
+ padding: 8px;
465
+ font-family: 'Open Sans', Arial, sans-serif;
466
+ font-size: 13px;
467
+ line-height: 1;
468
+ color: $Black-Color;
469
+ background: transparent;
470
+ border: none;
471
+ }
472
+
473
+ .md-grid-cell-value {
474
+ display: block;
475
+ width: 100%;
476
+ }
477
+
478
+ // ═════════════════════════════════════════════════════════════════════════
479
+ // ACTIONS CELL
480
+ // ═════════════════════════════════════════════════════════════════════════
481
+
482
+ .md-grid-actions-cell {
483
+ border-left: none;
484
+ background: transparent;
485
+ }
486
+
487
+ // ═════════════════════════════════════════════════════════════════════════
488
+ // FOOTER / PAGINATION
489
+ // ═════════════════════════════════════════════════════════════════════════
490
+
491
+ .md-grid-footer {
492
+ background: $Light-Gray-2;
493
+ border-top: 1px solid rgba(0, 0, 0, 0.08);
494
+ padding: 8px;
495
+ font-size: 12px;
496
+ color: $Dark-Gray-2;
497
+ }
498
+
499
+ .md-grid-pager {
500
+ gap: 2px;
501
+ }
502
+
503
+ .md-grid-pager-btn {
504
+ min-width: 24px;
505
+ height: 24px;
506
+ padding: 0 10px;
507
+ border-radius: 4px;
508
+ border: none;
509
+ background: transparent;
510
+ color: $Dark-Gray-2;
511
+ font-size: 12px;
512
+
513
+ &:hover:not(:disabled) {
514
+ background: transparent;
515
+ color: $Red;
516
+ }
517
+
518
+ &:disabled {
519
+ opacity: 0.3;
520
+ cursor: not-allowed;
521
+ }
522
+ }
523
+
524
+ .md-grid-pager-info {
525
+ padding: 0 8px;
526
+ font-weight: 400;
527
+ }
528
+
529
+ // ═════════════════════════════════════════════════════════════════════════
530
+ // GROUP HEADER
531
+ // ═════════════════════════════════════════════════════════════════════════
532
+
533
+ .md-grid-group-header {
534
+ background: color.mix($Light-Gray-2, $White, 50%);
535
+ border-bottom: 1px solid rgba(0, 0, 0, 0.08);
536
+ padding: 12px 20px;
537
+ margin-bottom: 0;
538
+ border-radius: 0;
539
+ font-weight: 600;
540
+ font-size: 13px;
541
+ color: $Dark-Gray-1;
542
+ }
543
+
544
+ // ═════════════════════════════════════════════════════════════════════════
545
+ // RESPONSIVE
546
+ // ═════════════════════════════════════════════════════════════════════════
547
+
548
+ @media (max-width: 768px) {
549
+ font-size: 12px;
550
+
551
+ .md-grid-header-cell {
552
+ padding: 10px 12px;
553
+ font-size: 10px;
554
+ }
555
+
556
+ .md-grid-cell {
557
+ padding: 12px;
558
+ font-size: 12px;
559
+ }
560
+
561
+ .md-grid-footer {
562
+ flex-direction: column;
563
+ gap: 8px;
564
+ align-items: flex-start;
565
+ padding: 8px 12px;
566
+ }
567
+ }
568
+ }
569
+
570
+ // ═════════════════════════════════════════════════════════════════════════
571
+ // Modifier: zebra-white (white header, zebra rows)
572
+ // ═════════════════════════════════════════════════════════════════════════
573
+
574
+ .md-grid-table.zebra-white {
575
+ .md-grid-header {
576
+ background: $White;
577
+ }
578
+
579
+ .md-grid-header-cell {
580
+ &:not(:first-child) {
581
+ border-left: 2px solid $Light-Gray-3;
582
+ }
583
+ }
584
+
585
+ .md-grid-card {
586
+ &:nth-child(odd) {
587
+ background: transparent;
588
+ }
589
+
590
+ &:nth-child(even) {
591
+ background: $White;
592
+ }
593
+
594
+ &:hover {
595
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
596
+ }
597
+ }
598
+
599
+ .md-grid-group-rows {
600
+ .md-grid-card {
601
+ &:nth-child(odd) {
602
+ background: transparent;
603
+ }
604
+
605
+ &:nth-child(even) {
606
+ background: $White;
607
+ }
608
+
609
+ &:hover {
610
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
611
+ }
612
+ }
613
+ }
614
+
615
+ .md-grid-footer {
616
+ background: $White;
617
+ }
618
+ }
619
+
620
+ // ═════════════════════════════════════════════════════════════════════════
621
+ // Modifier: zebra-grey (grey header, zebra with grey)
622
+ // Same as md-datatable-style.zebra-grey
623
+ // ═════════════════════════════════════════════════════════════════════════
624
+
625
+ .md-grid-table.zebra-grey {
626
+ .md-grid-card {
627
+ // White rows (odd)
628
+ &:nth-child(odd) {
629
+ background: $White;
630
+
631
+ &:hover {
632
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
633
+ }
634
+ }
635
+
636
+ // Grey rows (even)
637
+ &:nth-child(even) {
638
+ background: $Light-Gray-2;
639
+
640
+ &:hover {
641
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
642
+ }
643
+ }
644
+ }
645
+
646
+ .md-grid-group-rows {
647
+ .md-grid-card {
648
+ &:nth-child(odd) {
649
+ background: $White;
650
+
651
+ &:hover {
652
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
653
+ }
654
+ }
655
+
656
+ &:nth-child(even) {
657
+ background: $Light-Gray-2;
658
+
659
+ &:hover {
660
+ background: color.mix($Light-Gray-2, $White, 30%) !important;
661
+ }
662
+ }
663
+ }
664
+ }
665
+ }
666
+
327
667
  // Dark background variant
328
668
  .bg-dark .md-datatable-style,
329
669
  .dark-mode .md-datatable-style,