@djb25/digit-ui-css 1.0.55 → 1.0.57

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": "@djb25/digit-ui-css",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -1,5 +1,5 @@
1
1
  body {
2
- background-color: #e7e7e7;
2
+ background-color: #f4f7f9;
3
3
  }
4
4
 
5
5
  .body-container {
@@ -14,14 +14,6 @@ body {
14
14
  }
15
15
  }
16
16
 
17
- /* .navbar-header{
18
- @apply text-navbarheader float-left px-sm
19
- }
20
-
21
- .navbar-subheader{
22
- @apply font-light px-sm border-solid border-l border-white border-opacity-100
23
- }*/
24
-
25
17
  .h1 {
26
18
  @apply text-heading-l text-text-primary font-bold mb-md ml-md;
27
19
  }
@@ -145,7 +137,7 @@ body {
145
137
  gap: 12px;
146
138
 
147
139
  @media (min-width: 768px) {
148
- /* padding-right: 55px; // commented by avinash as it was giving padding right in user */
140
+ /* padding-right: 55px; */
149
141
  }
150
142
 
151
143
  .header {
@@ -299,6 +291,8 @@ body {
299
291
  margin-top: 90px;
300
292
  }
301
293
 
294
+ /* ─── Core services carousel (unchanged) ───────────────────────────────────── */
295
+
302
296
  .module-carousel-section {
303
297
  display: flex;
304
298
  flex-direction: column;
@@ -307,18 +301,21 @@ body {
307
301
  }
308
302
 
309
303
  .module-carousel-header h3 {
310
- font-size: 20px;
311
- font-weight: 600;
312
- color: #ffffff;
304
+ font-size: 18px;
305
+ font-weight: 700;
306
+ color: inherit;
313
307
  margin: 0;
314
308
  }
315
309
 
316
- .module-carousel-header {
317
- background: linear-gradient(135deg, #3585c4, #6fa0f0 40%, #80b3ff);
318
- padding: 12px 16px;
319
- border-radius: 10px;
310
+ .core-carousel-section .module-carousel-header {
311
+ background: linear-gradient(135deg, #2a75b3, #5c93e8 50%, #7aaeff);
312
+ padding: 14px 20px;
313
+ border-radius: 12px;
320
314
  align-items: center;
321
- margin-top: 10px;
315
+ margin-top: 12px;
316
+ color: #ffffff;
317
+ box-shadow: 0 6px 16px rgba(42, 117, 179, 0.15);
318
+ border: 1px solid rgba(255, 255, 255, 0.2);
322
319
  }
323
320
 
324
321
  .module-carousel-actions {
@@ -345,7 +342,8 @@ body {
345
342
  width: 100%;
346
343
  -ms-overflow-style: none;
347
344
  scrollbar-width: none;
348
- padding-top: 10px;
345
+ padding: 12px 8px 32px 8px;
346
+ margin: 0px -8px -16px -8px;
349
347
  }
350
348
 
351
349
  @media (max-width: 1024px) {
@@ -364,7 +362,7 @@ body {
364
362
  display: none;
365
363
  }
366
364
 
367
- .carousel-track > div {
365
+ .carousel-track>div {
368
366
  scroll-snap-align: start;
369
367
  box-sizing: border-box;
370
368
  width: 100%;
@@ -412,6 +410,288 @@ body {
412
410
  box-shadow: none;
413
411
  }
414
412
 
413
+ /* ─── Engagement Panel ──────────────────────────────────────────────────────
414
+ * Replaces the old engagement-carousel-section block entirely.
415
+ * ─────────────────────────────────────────────────────────────────────────── */
416
+
417
+ .engagement-panel {
418
+ background: linear-gradient(180deg, #ffffff 0%, #f4f7f9 100%);
419
+ border: 1px solid #e2e8f0;
420
+ border-radius: 16px;
421
+ padding: 20px 24px 24px;
422
+ margin-top: -28px;
423
+ margin-bottom: 24px;
424
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
425
+ background-image: linear-gradient(135deg, rgba(186, 230, 253, .2), rgba(243, 232, 255, .15));
426
+ }
427
+
428
+ .engagement-panel__header {
429
+ display: flex;
430
+ align-items: center;
431
+ justify-content: space-between;
432
+ margin-bottom: 0px; /* changed from 14px to accommodate padding below */
433
+ }
434
+
435
+ /* Used for smooth collapsible vertical animation */
436
+ .engagement-panel__content {
437
+ display: grid;
438
+ grid-template-rows: 1fr;
439
+ transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
440
+
441
+ &.collapsed {
442
+ grid-template-rows: 0fr;
443
+ }
444
+ }
445
+
446
+ .engagement-panel__content-inner {
447
+ overflow: hidden;
448
+ min-height: 0;
449
+ padding-top: 14px; /* Move the header bottom margin here to avoid collapse jump */
450
+ }
451
+
452
+ .engagement-panel__title-group {
453
+ display: flex;
454
+ align-items: center;
455
+ gap: 10px;
456
+ }
457
+
458
+ /* Pulsing live indicator dot */
459
+ .engagement-panel__pulse-dot {
460
+ width: 8px;
461
+ height: 8px;
462
+ border-radius: 50%;
463
+ background: #3b82f6;
464
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
465
+ animation: eng-pulse 2.4s ease-in-out infinite;
466
+ flex-shrink: 0;
467
+ }
468
+
469
+ @keyframes eng-pulse {
470
+
471
+ 0%,
472
+ 100% {
473
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
474
+ }
475
+
476
+ 50% {
477
+ box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.06);
478
+ }
479
+ }
480
+
481
+ .engagement-panel__title {
482
+ font-size: 13px;
483
+ font-weight: 600;
484
+ letter-spacing: 0.6px;
485
+ text-transform: uppercase;
486
+ color: #1e293b;
487
+ }
488
+
489
+ /* Chip / pill row */
490
+ .engagement-panel__chip-row {
491
+ display: flex;
492
+ flex-wrap: wrap;
493
+ gap: 8px;
494
+ margin-bottom: 0;
495
+ }
496
+
497
+ /* Has visible cards below — add spacing between chips and cards */
498
+ .engagement-panel__chip-row+.engagement-panel__cards {
499
+ margin-top: 16px;
500
+ }
501
+
502
+ .engagement-chip {
503
+ display: inline-flex;
504
+ align-items: center;
505
+ gap: 7px;
506
+ padding: 7px 15px;
507
+ border-radius: 100px;
508
+ border: 1px solid #e2e8f0;
509
+ background: #ffffff;
510
+ font-size: 13px;
511
+ font-weight: 500;
512
+ color: #475569;
513
+ cursor: pointer;
514
+ transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
515
+ line-height: 1;
516
+
517
+ i {
518
+ font-size: 15px;
519
+ color: #64748b;
520
+ transition: color 0.15s;
521
+ }
522
+
523
+ &:hover {
524
+ background: #f8fafc;
525
+ border-color: #cbd5e1;
526
+ transform: translateY(-1px);
527
+ }
528
+
529
+ &:active {
530
+ transform: translateY(0);
531
+ }
532
+ }
533
+
534
+ .engagement-chip--active {
535
+ background: #3b82f6;
536
+ border-color: #3b82f6;
537
+ color: #ffffff;
538
+
539
+ i {
540
+ color: rgba(255, 255, 255, 0.9);
541
+ }
542
+
543
+ &:hover {
544
+ background: #2563eb;
545
+ border-color: #2563eb;
546
+ }
547
+ }
548
+
549
+ /* Card grid — shown when registered module cards exist */
550
+ .engagement-panel__cards {
551
+ display: grid;
552
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
553
+ gap: 12px;
554
+
555
+ /* Ensure cards inside the grid fill their cells and don't have extra margins */
556
+ .new-employee-card {
557
+ &:nth-child(6n+1) {
558
+ --card-bg: #f2fbf7;
559
+ --card-border: #d1efe2;
560
+ --card-icon-color: #1d9e75;
561
+ --card-text-color: #0f6e56;
562
+ --card-hover-shadow: rgba(29, 158, 117, 0.12);
563
+ }
564
+ &:nth-child(6n+2) {
565
+ --card-bg: #f0f7ff;
566
+ --card-border: #cce3fd;
567
+ --card-icon-color: #2563eb;
568
+ --card-text-color: #1e3a8a;
569
+ --card-hover-shadow: rgba(37, 99, 235, 0.12);
570
+ }
571
+ &:nth-child(6n+3) {
572
+ --card-bg: #f5f3ff;
573
+ --card-border: #e5d5ff;
574
+ --card-icon-color: #7c3aed;
575
+ --card-text-color: #4c1d95;
576
+ --card-hover-shadow: rgba(124, 58, 237, 0.12);
577
+ }
578
+ &:nth-child(6n+4) {
579
+ --card-bg: #fffbeb;
580
+ --card-border: #fde08b;
581
+ --card-icon-color: #d97706;
582
+ --card-text-color: #78350f;
583
+ --card-hover-shadow: rgba(217, 119, 6, 0.12);
584
+ }
585
+ &:nth-child(6n+5) {
586
+ --card-bg: #fff1f2;
587
+ --card-border: #fecdd3;
588
+ --card-icon-color: #e11d48;
589
+ --card-text-color: #881337;
590
+ --card-hover-shadow: rgba(225, 29, 72, 0.12);
591
+ }
592
+ &:nth-child(6n+6) {
593
+ --card-bg: #ecfeff;
594
+ --card-border: #a5f3fc;
595
+ --card-icon-color: #0891b2;
596
+ --card-text-color: #164e63;
597
+ --card-hover-shadow: rgba(8, 145, 178, 0.12);
598
+ }
599
+
600
+ width: 100%;
601
+ height: 100%;
602
+ margin: 0 !important;
603
+ padding: 12px 14px;
604
+ border-radius: 12px;
605
+ background: linear-gradient(160deg, #ffffff, var(--card-bg));
606
+ border: 1px solid var(--card-border);
607
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
608
+ gap: 8px;
609
+
610
+ .card-header-row {
611
+ padding-bottom: 10px;
612
+ gap: 8px;
613
+
614
+ &::after {
615
+ background: linear-gradient(90deg, transparent 0%, var(--card-border) 50%, transparent 100%);
616
+ }
617
+ }
618
+
619
+ .module-icon-wrap {
620
+ width: 32px;
621
+ height: 32px;
622
+ border-radius: 8px;
623
+ background-color: var(--card-bg) !important;
624
+ color: var(--card-icon-color) !important;
625
+ svg {
626
+ width: 18px;
627
+ height: 18px;
628
+ }
629
+ }
630
+
631
+ .module-title {
632
+ font-size: 0.95rem;
633
+ color: var(--card-text-color);
634
+ }
635
+
636
+ .main-kpi-number {
637
+ font-size: 1.6rem;
638
+ color: var(--card-icon-color);
639
+ }
640
+
641
+ .main-kpi-label {
642
+ font-size: 0.75rem;
643
+ }
644
+
645
+ .trend-icon {
646
+ width: 14px;
647
+ height: 14px;
648
+ border-width: 1px;
649
+ svg {
650
+ width: 10px;
651
+ height: 10px;
652
+ }
653
+ }
654
+
655
+ .sec-kpi-label {
656
+ font-size: 0.7rem;
657
+ }
658
+
659
+ .sec-kpi-value {
660
+ font-size: 0.8rem;
661
+ }
662
+
663
+ .card-footer-row {
664
+ gap: 8px;
665
+ }
666
+
667
+ .pill-link {
668
+ padding: 4px 10px;
669
+ font-size: 11px;
670
+ background-color: var(--card-bg);
671
+ border-color: var(--card-border);
672
+ color: var(--card-text-color);
673
+
674
+ &:hover {
675
+ filter: brightness(0.95);
676
+ border-color: var(--card-icon-color);
677
+ }
678
+ }
679
+
680
+ .details-btn {
681
+ padding: 4px 10px;
682
+ font-size: 11px;
683
+ }
684
+
685
+ &:hover {
686
+ transform: translateY(-3px);
687
+ box-shadow: 0 6px 16px var(--card-hover-shadow);
688
+ border-color: var(--card-border);
689
+ }
690
+ }
691
+ }
692
+
693
+ /* ─── Header area (unchanged) ───────────────────────────────────────────────── */
694
+
415
695
  .header-right-area {
416
696
  display: flex;
417
697
  flex-wrap: wrap;
@@ -558,4 +838,4 @@ body {
558
838
  svg {
559
839
  fill: #ffffff !important;
560
840
  }
561
- }
841
+ }
@@ -111,7 +111,7 @@
111
111
  margin-top: 16px;
112
112
  }
113
113
 
114
- .icon+.menu-label {
114
+ .icon + .menu-label {
115
115
  margin-left: 36px;
116
116
  text-overflow: ellipsis;
117
117
  white-space: nowrap;
@@ -232,7 +232,7 @@
232
232
  margin-top: 16px;
233
233
  }
234
234
 
235
- .icon+.menu-label {
235
+ .icon + .menu-label {
236
236
  margin-left: 36px;
237
237
  overflow: hidden;
238
238
  text-overflow: ellipsis;
@@ -342,4 +342,4 @@
342
342
  img {
343
343
  @apply mr-sm;
344
344
  }
345
- }
345
+ }
@@ -43,12 +43,12 @@
43
43
  flex-direction: column;
44
44
  gap: 8px;
45
45
  padding: 10px 8px 14px;
46
- transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
46
+ transition: width 0.3s ease-in-out, box-shadow 0.3s ease, transform 0.3s ease-in-out;
47
47
  overflow: hidden;
48
48
  position: relative;
49
49
  z-index: 101;
50
- padding-top: 70px;
51
50
  min-height: 100%;
51
+ height: 100%;
52
52
  }
53
53
 
54
54
  .citizen-static-sidebar.expanded {
@@ -57,6 +57,7 @@
57
57
 
58
58
  .citizen-static-sidebar.collapsed {
59
59
  width: var(--sidebar-collapsed);
60
+ height: 100%;
60
61
  }
61
62
 
62
63
  .citizen-sidebar-header {
@@ -112,8 +113,7 @@
112
113
  .citizen-static-sidebar .profile-section {
113
114
  background: #f8fafc;
114
115
  border-radius: 14px;
115
- padding: 16px 10px 12px;
116
- margin: 0 6px;
116
+ padding: 8px;
117
117
  }
118
118
 
119
119
  .citizen-static-sidebar .profile-section img {
@@ -123,14 +123,12 @@
123
123
  }
124
124
 
125
125
  .citizen-static-sidebar .drawer-desktop {
126
- background: #ffffff;
126
+ background-color: #edf2fd;
127
127
  border-radius: 14px;
128
128
  padding: 6px;
129
- margin: 0 4px;
130
129
  border: 1px solid #eef2f7;
131
130
  flex: 1;
132
- overflow-y: auto;
133
- overflow-x: hidden;
131
+ overflow-y: scroll;
134
132
  }
135
133
 
136
134
  .citizen-static-sidebar .drawer-desktop .sidebar-list {
@@ -181,6 +179,14 @@
181
179
  pointer-events: none;
182
180
  }
183
181
 
182
+ .citizen-static-sidebar.collapsed {
183
+ .citizen-sidebar-header {
184
+ .citizen-sidebar-brand {
185
+ display: none;
186
+ }
187
+ }
188
+ }
189
+
184
190
  .citizen-static-sidebar.collapsed .citizen-sidebar-header {
185
191
  flex-direction: column;
186
192
  gap: 10px;
@@ -213,10 +219,6 @@
213
219
  margin: 0;
214
220
  }
215
221
 
216
- .citizen-static-sidebar.collapsed .profile-section {
217
- padding: 14px 6px 10px;
218
- }
219
-
220
222
  .citizen-static-sidebar.collapsed .profile-section img {
221
223
  width: 44px;
222
224
  height: 44px;
@@ -791,6 +791,7 @@
791
791
  .card-with-background {
792
792
  background: rgb(250, 250, 250);
793
793
  border: 1px solid rgb(214, 213, 212);
794
+ padding: 20px;
794
795
 
795
796
  .card-head {
796
797
  display: flex;
@@ -7,23 +7,6 @@
7
7
  @apply ml-sm mb-lg;
8
8
  }
9
9
 
10
- .ground-container {
11
- width: 100%;
12
- height: 100%;
13
-
14
- @media (max-width: 768px) {
15
- display: flex;
16
- flex-direction: column;
17
- gap: 12px;
18
- }
19
-
20
- /* @apply flex flex-col; */
21
- @media (min-width: 325px) and (max-width: 768px) {
22
- padding-top: 11px;
23
- padding-inline: 10px;
24
- }
25
- }
26
-
27
10
  .card-home {
28
11
  cursor: pointer;
29
12
  overflow: hidden;
@@ -71,6 +54,23 @@
71
54
  }
72
55
  }
73
56
 
57
+ .ground-container {
58
+ width: 100%;
59
+ height: 100%;
60
+
61
+ @media (max-width: 768px) {
62
+ display: flex;
63
+ flex-direction: column;
64
+ gap: 12px;
65
+ }
66
+
67
+ /* @apply flex flex-col; */
68
+ @media (min-width: 325px) and (max-width: 768px) {
69
+ padding-top: 11px;
70
+ padding-inline: 10px;
71
+ }
72
+ }
73
+
74
74
  .no-scrollbar::-webkit-scrollbar {
75
75
  display: none;
76
76
  }
@@ -724,7 +724,7 @@
724
724
  flex-direction: unset !important;
725
725
  width: unset !important;
726
726
  margin-left: unset !important;
727
- padding-top: 58px;
727
+ padding-top: 72px;
728
728
  }
729
729
  }
730
730