@djb25/digit-ui-css 1.0.31 → 1.0.33

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.
@@ -44,10 +44,12 @@
44
44
  flex-direction: column;
45
45
  gap: 8px;
46
46
  padding: 10px 8px 14px;
47
- transition: width 0.3s ease, box-shadow 0.3s ease;
47
+ 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);
48
48
  overflow: hidden;
49
-
49
+ position: relative;
50
+ z-index: 101;
50
51
  padding-top: 56px;
52
+ height: 100vh;
51
53
  }
52
54
 
53
55
  .citizen-static-sidebar.expanded {
@@ -129,6 +131,7 @@
129
131
  border: 1px solid #eef2f7;
130
132
  flex: 1;
131
133
  overflow-y: auto;
134
+ overflow-x: hidden;
132
135
  }
133
136
 
134
137
  .citizen-static-sidebar .drawer-desktop .sidebar-list {
@@ -137,7 +140,7 @@
137
140
 
138
141
  .citizen-static-sidebar .drawer-desktop .sidebar-list.active {
139
142
  border-left: none;
140
- background: #eef6ff;
143
+
141
144
  border-radius: 12px;
142
145
  padding-left: 4px;
143
146
  }
@@ -156,7 +159,7 @@
156
159
  float: none;
157
160
  }
158
161
 
159
- .citizen-static-sidebar .drawer-desktop .menu-item .icon + .menu-label {
162
+ .citizen-static-sidebar .drawer-desktop .menu-item .icon+.menu-label {
160
163
  margin-left: 0;
161
164
  }
162
165
 
@@ -194,10 +197,10 @@
194
197
  align-items: center;
195
198
  width: 100%;
196
199
  padding: 10px 0;
200
+ margin-left: 7px;
197
201
  }
198
202
 
199
203
  .citizen-static-sidebar.collapsed .drawer-desktop .sidebar-list.active {
200
- background: #e0efff;
201
204
  padding: 6px 4px;
202
205
  }
203
206
 
@@ -226,8 +229,109 @@
226
229
  display: none;
227
230
  }
228
231
 
232
+ .citizen-mobile-toggle {
233
+ display: none;
234
+ }
235
+
236
+ .citizen-sidebar-backdrop {
237
+ display: none;
238
+ }
239
+
229
240
  @media (max-width: 780px) {
230
241
  .citizen-sidebar-toggle {
231
242
  display: none;
232
243
  }
233
- }
244
+
245
+ .citizen-mobile-toggle {
246
+ display: flex;
247
+ position: fixed;
248
+ bottom: 30px;
249
+ left: 50%;
250
+ transform: translateX(-50%);
251
+ z-index: 50;
252
+ height: 48px;
253
+ padding: 0 24px;
254
+ background: rgba(255, 255, 255, 0.85);
255
+ backdrop-filter: blur(12px);
256
+ -webkit-backdrop-filter: blur(12px);
257
+ border: 1px solid rgba(255, 255, 255, 0.5);
258
+ border-radius: 999px;
259
+ justify-content: center;
260
+ align-items: center;
261
+ gap: 8px;
262
+ box-shadow: 0 8px 32px rgba(30, 58, 138, 0.15), 0 2px 8px rgba(30, 58, 138, 0.1);
263
+ color: #1e3a8a;
264
+ cursor: pointer;
265
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
266
+
267
+ .toggle-label {
268
+ font-size: 14px;
269
+ font-weight: 700;
270
+ letter-spacing: 0.5px;
271
+ }
272
+
273
+ &:active {
274
+ transform: translateX(-50%) scale(0.95);
275
+ }
276
+ }
277
+
278
+ .citizen-mobile-toggle.hidden {
279
+ opacity: 0;
280
+ pointer-events: none;
281
+ transform: translateX(-50%) translateY(20px) scale(0.9);
282
+ }
283
+
284
+ .citizen-sidebar-backdrop {
285
+ display: block;
286
+ position: fixed;
287
+ top: 0;
288
+ left: 0;
289
+ width: 100vw;
290
+ height: 100vh;
291
+ background: rgba(0, 0, 0, 0.4);
292
+ backdrop-filter: blur(4px);
293
+ -webkit-backdrop-filter: blur(4px);
294
+ z-index: 99;
295
+ opacity: 0;
296
+ pointer-events: none;
297
+ transition: opacity 0.4s ease;
298
+ }
299
+
300
+ .citizen-sidebar-backdrop.visible {
301
+ opacity: 1;
302
+ pointer-events: auto;
303
+ }
304
+
305
+ .citizen-static-sidebar {
306
+ position: fixed;
307
+ top: 0;
308
+ left: 0;
309
+ height: 100vh;
310
+ width: 280px !important;
311
+ transform: translateX(-100%);
312
+ box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
313
+ }
314
+
315
+ .citizen-static-sidebar.mobile-open {
316
+ transform: translateX(0);
317
+ margin-top: 40px;
318
+ }
319
+
320
+ /* When on mobile, drawer is always expanded visually inside */
321
+ .citizen-static-sidebar .citizen-sidebar-brand-text,
322
+ .citizen-static-sidebar .drawer-desktop .menu-label {
323
+ opacity: 1 !important;
324
+ width: auto !important;
325
+ margin-left: 0 !important;
326
+ pointer-events: auto !important;
327
+ }
328
+
329
+ .citizen-static-sidebar .drawer-desktop .menu-item {
330
+ justify-content: flex-start !important;
331
+ padding: 8px 10px !important;
332
+ }
333
+
334
+ .citizen-static-sidebar .profile-section .label-container {
335
+ display: flex !important;
336
+ }
337
+ }
package/src/index.scss CHANGED
@@ -731,12 +731,11 @@ input[type="number"] {
731
731
  width: 100%;
732
732
  flex: 1;
733
733
  min-width: 0;
734
-
735
734
  }
736
735
 
737
736
  .employee-app-wrapper {
738
737
  min-height: calc(100vh - 8em);
739
- height: calc(100vh - 105px);
738
+ height: calc(100vh - 110px);
740
739
  }
741
740
 
742
741
  .ws-custom-wrapper {
@@ -323,8 +323,17 @@
323
323
  }
324
324
 
325
325
  @media (max-width: 780px) {
326
+
327
+ /* On mobile, SideBarStatic shouldn't prevent the drawer from appearing. */
326
328
  .SideBarStatic {
327
- display: none;
329
+ display: block;
330
+ position: fixed;
331
+ top: 0;
332
+ left: 0;
333
+ z-index: 1000;
334
+ width: 0;
335
+ /* No physical width so it doesn't push map content */
336
+ height: 100vh;
328
337
  }
329
338
  }
330
339
 
@@ -342,7 +351,6 @@
342
351
  top: -5%;
343
352
  width: 50vw;
344
353
  height: 50vw;
345
- background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 70%);
346
354
  border-radius: 50%;
347
355
  opacity: 0.8;
348
356
  z-index: 0;
@@ -368,36 +376,71 @@
368
376
  flex: 1;
369
377
  min-width: 0;
370
378
  margin-top: -25px;
379
+ position: relative;
371
380
 
372
381
  img {
373
382
  height: 33vw;
374
- filter: grayscale(100%);
375
- @apply w-full object-cover;
383
+ min-height: 220px;
384
+ filter: brightness(0.65) contrast(1.1);
385
+ @apply w-full object-cover rounded-b-2xl;
386
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
387
+ transition: filter 0.3s ease;
376
388
  }
377
389
 
378
390
  h1 {
379
391
  position: absolute;
380
392
  top: 100px;
393
+ /* Base position */
381
394
  left: 21px;
382
- @apply text-heading-xl text-white font-bold;
395
+ @apply text-heading-xl;
396
+ /* Kept this as it's likely a custom framework class */
397
+ color: #ffffff;
398
+ /* text-white equivalent */
399
+ font-weight: 800;
400
+ /* font-extrabold equivalent */
401
+ text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
402
+ letter-spacing: 0.5px;
383
403
  }
384
404
 
385
405
  .moduleLinkHomePageBackButton {
386
406
  border: none;
387
- top: 76px;
407
+ position: absolute;
408
+ top: 80px;
409
+ /* Align nicer */
410
+ left: 16px;
411
+ background: rgba(255, 255, 255, 0.2);
412
+ backdrop-filter: blur(8px);
413
+ -webkit-backdrop-filter: blur(8px);
414
+ border-radius: 50%;
415
+ width: 40px;
416
+ height: 40px;
417
+ display: flex;
418
+ justify-content: center;
419
+ align-items: center;
420
+ transition: background 0.2s ease;
421
+
422
+ &:hover {
423
+ background: rgba(255, 255, 255, 0.4);
424
+ }
388
425
 
389
426
  svg {
390
- fill: theme(colors.white);
427
+ fill: #ffffff !important;
391
428
  }
392
429
 
393
- @apply absolute text-white text-heading-s ml-md;
430
+ /* remove ml-md inside so it centers */
394
431
  }
395
432
  }
396
433
 
397
434
  .moduleLinkHomePageModuleLinks {
398
- @apply mt-md;
435
+ @apply mt-md mx-sm;
399
436
 
400
437
  .CitizenHomeCard {
438
+ background: rgba(255, 255, 255, 0.8) !important;
439
+ backdrop-filter: blur(12px);
440
+ border-radius: 16px !important;
441
+ box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
442
+ border: 1px solid rgba(255, 255, 255, 0.9);
443
+
401
444
  .header {
402
445
  @apply hidden;
403
446
  }
@@ -438,21 +481,26 @@
438
481
  img {
439
482
  min-width: 100vw;
440
483
  height: 20vw;
484
+ border-radius: 0 0 24px 24px;
485
+ /* Smoother curve on desktop */
441
486
  }
442
487
 
443
488
  h1 {
444
- top: calc(10vw + 40px);
445
- left: 15.8rem;
489
+ top: calc(10vw + 60px);
490
+ left: calc(15.8rem + 40px);
491
+ /* Align slightly right of back button */
492
+ font-size: 38px;
446
493
  }
447
494
 
448
495
  .moduleLinkHomePageBackButton {
449
496
  top: calc(10vw + 16px);
450
- @apply ml-md;
497
+ left: 15.8rem;
451
498
  }
452
499
  }
453
500
 
454
501
  .moduleLinkHomePageModuleLinks {
455
502
  width: 100%;
503
+ padding: 0 2rem;
456
504
  }
457
505
  }
458
506
 
@@ -2,18 +2,18 @@
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;
5
- gap: 24px;
5
+ gap: 16px;
6
6
  overflow-y: auto;
7
7
  }
8
8
 
9
9
  .mobile-view {
10
- flex-direction: column !important;
11
- gap: 0 !important;
10
+ flex-direction: column !important;
11
+ gap: 0 !important;
12
12
  }
13
13
 
14
14
  @media (max-width: 768px) {
15
15
  .employee-form {
16
16
  flex-direction: column;
17
- gap: 24px;
17
+ gap: 16px;
18
18
  }
19
- }
19
+ }
@@ -108,7 +108,7 @@
108
108
  padding: 10px;
109
109
 
110
110
  .heading {
111
- justify-content: unset;
111
+ justify-content: space-between;
112
112
  @apply flex;
113
113
 
114
114
  .clearAll {
@@ -14,14 +14,10 @@
14
14
  display: flex;
15
15
  flex-direction: column;
16
16
  gap: 12px;
17
- padding: 20px 20px 0;
18
17
  }
19
18
 
20
19
  /* @apply flex flex-col; */
21
- }
22
-
23
- @media (min-width: 325px) and (max-width: 768px) {
24
- .ground-container {
20
+ @media (min-width: 325px) and (max-width: 768px) {
25
21
  padding-top: 11px;
26
22
  padding-inline: 10px;
27
23
  }
@@ -101,9 +97,8 @@
101
97
  }
102
98
 
103
99
  .employee-form-content {
104
- flex: 1 1 0%;
100
+ flex: 1;
105
101
  overflow-y: auto;
106
- height: 100%;
107
102
  display: flex;
108
103
  flex-direction: column;
109
104
  gap: 16px;
@@ -113,7 +108,34 @@
113
108
  margin-bottom: 62px;
114
109
  }
115
110
 
116
- .citizen {
111
+ .employee-form-section-wrapper {
112
+ flex: 1 1 0%;
113
+ overflow-y: auto;
114
+ height: 100%;
115
+ display: flex;
116
+ gap: 16px;
117
+ @media (max-width: 768px) {
118
+ flex-direction: column;
119
+ }
120
+ }
121
+
122
+ .employee-form-section {
123
+ display: flex;
124
+ gap: 16px;
125
+ width: 100%;
126
+ overflow-y: scroll;
127
+ @media (max-width: 768px) {
128
+ flex-direction: column;
129
+ flex: 1 1 0%;
130
+ overflow-y: auto;
131
+ height: 100%;
132
+ display: flex;
133
+ flex-direction: column;
134
+ gap: 16px;
135
+ }
136
+ }
137
+
138
+ .employee-form .citizen {
117
139
  .main {
118
140
  padding-top: 82px;
119
141
  min-height: calc(100vh - 90px);