@djb25/digit-ui-css 1.0.24 → 1.0.26
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/dist/index.css +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +1 -1
- package/src/components/body.scss +157 -25
- package/src/components/card.scss +4 -37
- package/src/components/hoc/InboxComposer.scss +1 -1
- package/src/components/staticSideBar.scss +207 -1
- package/src/index.scss +7 -0
- package/src/pages/citizen/HomePageWrapper.scss +263 -83
- package/src/pages/employee/inbox.scss +2 -0
- package/src/pages/employee/index.scss +30 -12
package/package.json
CHANGED
package/src/components/body.scss
CHANGED
|
@@ -337,20 +337,30 @@ body {
|
|
|
337
337
|
|
|
338
338
|
.carousel-track {
|
|
339
339
|
display: grid;
|
|
340
|
-
grid-template-rows: repeat(2, minmax(0, 1fr));
|
|
341
340
|
grid-auto-flow: column;
|
|
342
|
-
grid-auto-
|
|
343
|
-
|
|
341
|
+
grid-auto-rows: 1fr;
|
|
342
|
+
grid-auto-columns: calc(25% - 9px);
|
|
343
|
+
gap: 12px;
|
|
344
344
|
overflow-x: auto;
|
|
345
345
|
scroll-behavior: smooth;
|
|
346
346
|
scroll-snap-type: x mandatory;
|
|
347
347
|
width: 100%;
|
|
348
|
-
padding: 10px 0px;
|
|
349
|
-
column-gap: 20px;
|
|
350
348
|
-ms-overflow-style: none;
|
|
351
349
|
scrollbar-width: none;
|
|
350
|
+
padding-top: 10px;
|
|
352
351
|
}
|
|
353
352
|
|
|
353
|
+
@media (max-width: 1024px) {
|
|
354
|
+
.carousel-track {
|
|
355
|
+
grid-auto-columns: calc(50% - 9px);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
@media (max-width: 512px) {
|
|
360
|
+
.carousel-track {
|
|
361
|
+
grid-auto-columns: 100%;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
354
364
|
|
|
355
365
|
.carousel-track::-webkit-scrollbar {
|
|
356
366
|
display: none;
|
|
@@ -366,20 +376,6 @@ body {
|
|
|
366
376
|
|
|
367
377
|
|
|
368
378
|
|
|
369
|
-
|
|
370
|
-
@media (min-width: 640px) {
|
|
371
|
-
|
|
372
|
-
.carousel-track {
|
|
373
|
-
grid-auto-columns: calc((100% - 20px) / 2);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
@media (min-width: 1024px) {
|
|
378
|
-
.carousel-track {
|
|
379
|
-
grid-auto-columns: calc((100% - 3 * 20px) / 4);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
379
|
.carousel-track .new-employee-card {
|
|
384
380
|
width: 100%;
|
|
385
381
|
height: 100%;
|
|
@@ -420,14 +416,150 @@ body {
|
|
|
420
416
|
box-shadow: none;
|
|
421
417
|
}
|
|
422
418
|
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
419
|
+
.header-right-area {
|
|
420
|
+
display: flex;
|
|
421
|
+
flex-direction: column;
|
|
422
|
+
align-items: center;
|
|
423
|
+
justify-content: center;
|
|
424
|
+
gap: 10px;
|
|
425
|
+
position: relative;
|
|
426
|
+
margin-left: auto;
|
|
427
|
+
padding-right: 20px;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.header-icon-area {
|
|
431
|
+
position: relative;
|
|
432
|
+
opacity: 0.9;
|
|
433
|
+
pointer-events: none;
|
|
434
|
+
width: 160px;
|
|
435
|
+
height: 110px;
|
|
436
|
+
display: flex;
|
|
437
|
+
align-items: center;
|
|
438
|
+
justify-content: center;
|
|
439
|
+
z-index: 1;
|
|
440
|
+
|
|
441
|
+
@media (max-width: 768px) {
|
|
442
|
+
width: 130px;
|
|
443
|
+
height: 90px;
|
|
444
|
+
transform: scale(0.85);
|
|
426
445
|
}
|
|
427
446
|
}
|
|
428
447
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
448
|
+
.header-actions-area {
|
|
449
|
+
z-index: 10;
|
|
450
|
+
position: relative;
|
|
451
|
+
|
|
452
|
+
@media (max-width: 1024px) {
|
|
453
|
+
margin-right: 140px;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
@media (max-width: 768px) {
|
|
457
|
+
margin-right: 0;
|
|
458
|
+
margin-left: 0;
|
|
459
|
+
width: 100%;
|
|
460
|
+
display: flex;
|
|
461
|
+
justify-content: flex-start;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.view-dashboard-btn {
|
|
466
|
+
display: flex;
|
|
467
|
+
align-items: center;
|
|
468
|
+
gap: 12px;
|
|
469
|
+
background: linear-gradient(135deg, #31a1f9 0%, #3585c4 100%);
|
|
470
|
+
padding: 6px 12px;
|
|
471
|
+
border-radius: 50px;
|
|
472
|
+
text-decoration: none;
|
|
473
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
474
|
+
box-shadow: 0 4px 15px rgba(26, 103, 163, 0.2);
|
|
475
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
476
|
+
width: fit-content;
|
|
477
|
+
|
|
478
|
+
.btn-text {
|
|
479
|
+
color: #ffffff;
|
|
480
|
+
font-size: 13px;
|
|
481
|
+
font-weight: 600;
|
|
482
|
+
letter-spacing: 0.3px;
|
|
483
|
+
white-space: nowrap;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.btn-icon-bg {
|
|
487
|
+
width: 24px;
|
|
488
|
+
height: 24px;
|
|
489
|
+
background: rgba(255, 255, 255, 0.15);
|
|
490
|
+
border-radius: 50%;
|
|
491
|
+
display: flex;
|
|
492
|
+
align-items: center;
|
|
493
|
+
justify-content: center;
|
|
494
|
+
transition: transform 0.3s ease;
|
|
495
|
+
|
|
496
|
+
svg.finance-chart-icon {
|
|
497
|
+
width: 14px;
|
|
498
|
+
height: 14px;
|
|
499
|
+
fill: white;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
&:hover {
|
|
504
|
+
background: linear-gradient(135deg, #217bbd 0%, #4a98d3 100%);
|
|
505
|
+
transform: translateY(-2px);
|
|
506
|
+
box-shadow: 0 6px 20px rgba(26, 103, 163, 0.3);
|
|
507
|
+
border-color: rgba(255, 255, 255, 0.3);
|
|
508
|
+
|
|
509
|
+
.btn-icon-bg {
|
|
510
|
+
transform: rotate(15deg) scale(1.1);
|
|
511
|
+
background: rgba(255, 255, 255, 0.25);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
&:active {
|
|
516
|
+
transform: translateY(0);
|
|
517
|
+
box-shadow: 0 2px 10px rgba(26, 103, 163, 0.2);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
@media (max-width: 640px) {
|
|
522
|
+
.view-dashboard-btn {
|
|
523
|
+
padding: 5px 10px;
|
|
524
|
+
gap: 8px;
|
|
525
|
+
|
|
526
|
+
.btn-text {
|
|
527
|
+
font-size: 12px;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.btn-icon-bg {
|
|
531
|
+
width: 22px;
|
|
532
|
+
height: 22px;
|
|
533
|
+
|
|
534
|
+
svg {
|
|
535
|
+
width: 12px;
|
|
536
|
+
height: 12px;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
@keyframes toastSlideUp {
|
|
543
|
+
from {
|
|
544
|
+
transform: translateY(100%) scale(0.9);
|
|
545
|
+
opacity: 0;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
to {
|
|
549
|
+
transform: translateY(0) scale(1);
|
|
550
|
+
opacity: 1;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.coming-soon-toast {
|
|
555
|
+
h2 {
|
|
556
|
+
color: #ffffff !important;
|
|
557
|
+
margin: 0 !important;
|
|
558
|
+
font-size: 16px !important;
|
|
559
|
+
font-weight: 600 !important;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
svg {
|
|
563
|
+
fill: #ffffff !important;
|
|
432
564
|
}
|
|
433
565
|
}
|
package/src/components/card.scss
CHANGED
|
@@ -471,10 +471,7 @@
|
|
|
471
471
|
.new-employee-card {
|
|
472
472
|
position: relative;
|
|
473
473
|
background-color: #ffffff;
|
|
474
|
-
background-image:
|
|
475
|
-
radial-gradient(circle at 0% 0%, rgba(186, 230, 253, 0.6) 0%, transparent 60%),
|
|
476
|
-
radial-gradient(circle at 100% 0%, rgba(243, 232, 255, 0.5) 0%, transparent 60%),
|
|
477
|
-
radial-gradient(circle at 100% 100%, rgba(255, 237, 213, 0.4) 0%, transparent 60%);
|
|
474
|
+
background-image: linear-gradient(135deg, rgba(186, 230, 253, 0.2) 0%, rgba(243, 232, 255, 0.15) 100%);
|
|
478
475
|
border: 1px solid #eef1f5;
|
|
479
476
|
border-radius: 20px;
|
|
480
477
|
padding: 10px;
|
|
@@ -484,45 +481,15 @@
|
|
|
484
481
|
width: 100%;
|
|
485
482
|
max-width: 426px;
|
|
486
483
|
max-height: 180px;
|
|
487
|
-
box-shadow:
|
|
488
|
-
0 10px 25px -5px rgba(0, 0, 0, 0.04),
|
|
489
|
-
0 8px 10px -6px rgba(0, 0, 0, 0.02);
|
|
484
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
|
|
490
485
|
font-family: inherit;
|
|
491
486
|
overflow: hidden;
|
|
492
|
-
transition:
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.new-employee-card::after {
|
|
496
|
-
content: "";
|
|
497
|
-
position: absolute;
|
|
498
|
-
top: -10%;
|
|
499
|
-
right: -5%;
|
|
500
|
-
width: 200px;
|
|
501
|
-
height: 200px;
|
|
502
|
-
background: radial-gradient(circle, rgba(235, 244, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
|
|
503
|
-
filter: blur(40px);
|
|
504
|
-
border-radius: 50%;
|
|
505
|
-
z-index: 0;
|
|
506
|
-
pointer-events: none;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
.new-employee-card::before {
|
|
510
|
-
content: "";
|
|
511
|
-
position: absolute;
|
|
512
|
-
bottom: -15%;
|
|
513
|
-
left: -10%;
|
|
514
|
-
width: 250px;
|
|
515
|
-
height: 250px;
|
|
516
|
-
background: radial-gradient(circle, rgba(245, 243, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
|
|
517
|
-
filter: blur(50px);
|
|
518
|
-
border-radius: 50%;
|
|
519
|
-
z-index: 0;
|
|
520
|
-
pointer-events: none;
|
|
487
|
+
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
|
|
521
488
|
}
|
|
522
489
|
|
|
523
490
|
.new-employee-card:hover {
|
|
524
491
|
transform: translateY(-4px);
|
|
525
|
-
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08)
|
|
492
|
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
|
|
526
493
|
}
|
|
527
494
|
|
|
528
495
|
.new-employee-card>* {
|
|
@@ -24,4 +24,210 @@
|
|
|
24
24
|
margin-left: 1em;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
.citizen-static-sidebar {
|
|
31
|
+
--sidebar-expanded: 260px;
|
|
32
|
+
--sidebar-collapsed: 76px;
|
|
33
|
+
--sidebar-bg: #ffffff;
|
|
34
|
+
--sidebar-border: #e5edf6;
|
|
35
|
+
--sidebar-accent: #1a67a3;
|
|
36
|
+
--sidebar-text: #0f172a;
|
|
37
|
+
--sidebar-muted: #64748b;
|
|
38
|
+
|
|
39
|
+
width: var(--sidebar-expanded);
|
|
40
|
+
background: var(--sidebar-bg);
|
|
41
|
+
border: 1px solid var(--sidebar-border);
|
|
42
|
+
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: 8px;
|
|
46
|
+
padding: 10px 8px 14px;
|
|
47
|
+
transition: width 0.3s ease, box-shadow 0.3s ease;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
|
|
50
|
+
padding-top: 56px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.citizen-static-sidebar.expanded {
|
|
54
|
+
width: var(--sidebar-expanded);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.citizen-static-sidebar.collapsed {
|
|
58
|
+
width: var(--sidebar-collapsed);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.citizen-sidebar-header {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
padding: 8px 10px 6px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.citizen-sidebar-brand {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: 10px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.citizen-sidebar-brand-dot {
|
|
75
|
+
width: 10px;
|
|
76
|
+
height: 10px;
|
|
77
|
+
border-radius: 999px;
|
|
78
|
+
background: linear-gradient(135deg, #1a67a3, #3b82f6);
|
|
79
|
+
box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.citizen-sidebar-brand-text {
|
|
83
|
+
font-size: 0.95rem;
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
color: var(--sidebar-text);
|
|
86
|
+
letter-spacing: 0.4px;
|
|
87
|
+
transition: opacity 0.2s ease, width 0.2s ease;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.citizen-sidebar-toggle {
|
|
93
|
+
background: #f1f5f9;
|
|
94
|
+
border: 1px solid #e2e8f0;
|
|
95
|
+
width: 32px;
|
|
96
|
+
height: 32px;
|
|
97
|
+
border-radius: 10px;
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
color: var(--sidebar-muted);
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
transition: all 0.2s ease;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.citizen-sidebar-toggle:hover {
|
|
107
|
+
background: #e2e8f0;
|
|
108
|
+
color: var(--sidebar-text);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.citizen-static-sidebar .profile-section {
|
|
112
|
+
background: #f8fafc;
|
|
113
|
+
border-radius: 14px;
|
|
114
|
+
padding: 16px 10px 12px;
|
|
115
|
+
margin: 0 6px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.citizen-static-sidebar .profile-section img {
|
|
119
|
+
width: 64px;
|
|
120
|
+
height: 64px;
|
|
121
|
+
margin: 0 auto 10px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.citizen-static-sidebar .drawer-desktop {
|
|
125
|
+
background: #ffffff;
|
|
126
|
+
border-radius: 14px;
|
|
127
|
+
padding: 6px;
|
|
128
|
+
margin: 0 4px;
|
|
129
|
+
border: 1px solid #eef2f7;
|
|
130
|
+
flex: 1;
|
|
131
|
+
overflow-y: auto;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.citizen-static-sidebar .drawer-desktop .sidebar-list {
|
|
135
|
+
padding: 4px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.citizen-static-sidebar .drawer-desktop .sidebar-list.active {
|
|
139
|
+
border-left: none;
|
|
140
|
+
background: #eef6ff;
|
|
141
|
+
border-radius: 12px;
|
|
142
|
+
padding-left: 4px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.citizen-static-sidebar .drawer-desktop .menu-item {
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
gap: 12px;
|
|
149
|
+
padding: 8px 10px;
|
|
150
|
+
line-height: 1.3;
|
|
151
|
+
border-radius: 12px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.citizen-static-sidebar .drawer-desktop .menu-item .icon {
|
|
155
|
+
margin-top: 0;
|
|
156
|
+
float: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.citizen-static-sidebar .drawer-desktop .menu-item .icon + .menu-label {
|
|
160
|
+
margin-left: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.citizen-static-sidebar .drawer-desktop .menu-label {
|
|
164
|
+
font-size: 14px;
|
|
165
|
+
font-weight: 500;
|
|
166
|
+
color: var(--sidebar-text);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.citizen-static-sidebar .drawer-desktop .sidebar-list.active .menu-label {
|
|
170
|
+
color: var(--sidebar-accent);
|
|
171
|
+
font-weight: 600;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.citizen-static-sidebar.collapsed .citizen-sidebar-brand-text,
|
|
175
|
+
.citizen-static-sidebar.collapsed .drawer-desktop .menu-label {
|
|
176
|
+
opacity: 0;
|
|
177
|
+
width: 0;
|
|
178
|
+
margin-left: 0;
|
|
179
|
+
pointer-events: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.citizen-static-sidebar.collapsed .citizen-sidebar-header {
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
gap: 10px;
|
|
185
|
+
padding: 8px 6px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.citizen-static-sidebar.collapsed .citizen-sidebar-brand {
|
|
189
|
+
justify-content: center;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.citizen-static-sidebar.collapsed .drawer-desktop .menu-item {
|
|
193
|
+
justify-content: center;
|
|
194
|
+
align-items: center;
|
|
195
|
+
width: 100%;
|
|
196
|
+
padding: 10px 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.citizen-static-sidebar.collapsed .drawer-desktop .sidebar-list.active {
|
|
200
|
+
background: #e0efff;
|
|
201
|
+
padding: 6px 4px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.citizen-static-sidebar.collapsed .drawer-desktop .sidebar-list {
|
|
205
|
+
display: flex;
|
|
206
|
+
justify-content: center;
|
|
207
|
+
padding: 6px 4px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.citizen-static-sidebar.collapsed .drawer-desktop .menu-item .icon {
|
|
211
|
+
margin: 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.citizen-static-sidebar.collapsed .profile-section {
|
|
215
|
+
padding: 14px 6px 10px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.citizen-static-sidebar.collapsed .profile-section img {
|
|
219
|
+
width: 44px;
|
|
220
|
+
height: 44px;
|
|
221
|
+
margin: 0 auto;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.citizen-static-sidebar.collapsed .profile-section .label-container,
|
|
225
|
+
.citizen-static-sidebar.collapsed .profile-section .profile-divider {
|
|
226
|
+
display: none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
@media (max-width: 780px) {
|
|
230
|
+
.citizen-sidebar-toggle {
|
|
231
|
+
display: none;
|
|
232
|
+
}
|
|
233
|
+
}
|
package/src/index.scss
CHANGED
|
@@ -562,7 +562,14 @@ input[type="number"] {
|
|
|
562
562
|
overflow-x: scroll;
|
|
563
563
|
border-radius: 6px;
|
|
564
564
|
flex: 1 1 0%;
|
|
565
|
+
scrollbar-width: none;
|
|
565
566
|
}
|
|
567
|
+
|
|
568
|
+
/* Chrome, Edge, Safari */
|
|
569
|
+
.result::-webkit-scrollbar:horizontal {
|
|
570
|
+
display: none;
|
|
571
|
+
}
|
|
572
|
+
|
|
566
573
|
.inbox-search-container {
|
|
567
574
|
.result {
|
|
568
575
|
@apply mt-lg;
|