@djb25/digit-ui-css 1.0.31 → 1.0.32

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.31",
3
+ "version": "1.0.32",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -421,7 +421,7 @@
421
421
  }
422
422
 
423
423
  .home-page-info-banner-wrap {
424
- margin: "0px 16px 24px 16px";
424
+ margin: 0px 16px 24px 16px;
425
425
  }
426
426
 
427
427
  @media (min-width: 780px) {
@@ -1207,13 +1207,15 @@
1207
1207
  height: 100%;
1208
1208
  display: flex;
1209
1209
  flex-direction: column;
1210
- background-color: var(--bg-color);
1211
- border-right: 1px solid var(--border-color);
1212
- transition: width var(--transition-slow);
1210
+ background-color: #ffffff;
1211
+ border-right: 1px solid rgba(0, 0, 0, 0.05);
1212
+ transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
1213
1213
  overflow-x: hidden;
1214
1214
  box-sizing: border-box;
1215
- font-family: "Inter", system-ui, -apple-system, sans-serif;
1216
- box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
1215
+ font-family: inherit;
1216
+ box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04);
1217
+ position: relative;
1218
+ z-index: 101;
1217
1219
  }
1218
1220
 
1219
1221
  /* Width Control */
@@ -1396,6 +1398,14 @@
1396
1398
  padding: 12px 0;
1397
1399
  }
1398
1400
 
1401
+ .mobile-only {
1402
+ display: none !important;
1403
+ }
1404
+
1405
+ .desktop-only {
1406
+ display: flex !important;
1407
+ }
1408
+
1399
1409
  .module-sidebar-toggle {
1400
1410
  display: none;
1401
1411
  }
@@ -1404,143 +1414,105 @@
1404
1414
  display: none;
1405
1415
  }
1406
1416
 
1407
- @media (max-width: 768px) {
1408
-
1409
- /* Wrapper becomes a sticky top bar, not a flex column member */
1410
- .module-sidebar-wrapper {
1411
- position: sticky;
1412
- top: 0;
1413
- z-index: 200;
1414
- width: 100%;
1415
- height: auto;
1416
- flex-shrink: 0;
1417
- }
1418
-
1419
- /* Hide desktop sidebar — zero dimensions so flex row is unaffected */
1420
- .premium-sidebar {
1421
- display: none !important;
1422
- width: 0 !important;
1423
- min-width: 0 !important;
1424
- height: 0 !important;
1425
- overflow: hidden !important;
1426
- border: none !important;
1427
- padding: 0 !important;
1428
- margin: 0 !important;
1429
- }
1430
-
1431
- /* Hide old toggle + backdrop */
1432
- .module-sidebar-toggle,
1433
- .module-sidebar-backdrop,
1434
- .collapse-toggle {
1435
- display: none !important;
1436
- }
1417
+ @media (max-width: 780px) {
1437
1418
 
1438
- /* Show the horizontal scrollable tab bar */
1439
- .mobile-tab-bar {
1419
+ /* Toggle Button */
1420
+ .module-sidebar-toggle {
1440
1421
  display: flex;
1441
- overflow-x: auto;
1442
- overflow-y: hidden;
1443
- -webkit-overflow-scrolling: touch;
1444
- scrollbar-width: none;
1445
- gap: 6px;
1446
- padding: 8px 12px;
1447
- background-color: #ffffff;
1448
- border-bottom: 1px solid #e5e7eb;
1449
- width: 100%;
1450
- box-sizing: border-box;
1451
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
1452
- }
1453
-
1454
- .mobile-tab-bar::-webkit-scrollbar {
1455
- display: none;
1422
+ position: fixed;
1423
+ top: 68px;
1424
+ /* Slightly below the top header */
1425
+ left: 12px;
1426
+ z-index: 50;
1427
+ width: 44px;
1428
+ height: 44px;
1429
+ background: #ffffff;
1430
+ border: 1px solid rgba(0, 0, 0, 0.08);
1431
+ border-radius: 50%;
1432
+ justify-content: center;
1433
+ align-items: center;
1434
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
1435
+ color: #1e293b;
1436
+ cursor: pointer;
1437
+ transition: all 0.3s ease;
1456
1438
  }
1457
1439
 
1458
- .mobile-tab-wrapper {
1459
- flex-shrink: 0;
1440
+ .module-sidebar-toggle.hidden {
1441
+ opacity: 0;
1442
+ pointer-events: none;
1443
+ transform: scale(0.8);
1460
1444
  }
1461
1445
 
1462
- .mobile-tab-wrapper a {
1463
- text-decoration: none;
1464
- color: inherit;
1446
+ /* Backdrop Overlay */
1447
+ .module-sidebar-backdrop {
1465
1448
  display: block;
1466
- }
1467
-
1468
- .mobile-tab-wrapper.disabled {
1469
- opacity: 0.5;
1449
+ position: fixed;
1450
+ top: 0;
1451
+ left: 0;
1452
+ width: 100vw;
1453
+ height: 100vh;
1454
+ background: rgba(0, 0, 0, 0.4);
1455
+ backdrop-filter: blur(4px);
1456
+ -webkit-backdrop-filter: blur(4px);
1457
+ z-index: 99;
1458
+ opacity: 0;
1470
1459
  pointer-events: none;
1460
+ transition: opacity 0.4s ease;
1471
1461
  }
1472
1462
 
1473
- .mobile-tab-item {
1474
- display: flex;
1475
- align-items: center;
1476
- gap: 6px;
1477
- padding: 7px 14px;
1478
- border-radius: 999px;
1479
- border: 1px solid #e5e7eb;
1480
- background-color: #f9fafb;
1481
- white-space: nowrap;
1482
- cursor: pointer;
1483
- transition: all 0.2s ease;
1484
- }
1485
-
1486
- .mobile-tab-item.active {
1487
- background-color: #eff6ff;
1488
- border-color: #bfdbfe;
1489
- color: #1a67a3;
1463
+ .module-sidebar-backdrop.visible {
1464
+ opacity: 1;
1465
+ pointer-events: auto;
1490
1466
  }
1491
1467
 
1492
- .mobile-tab-icon {
1493
- width: 16px;
1494
- height: 16px;
1495
- display: flex;
1496
- align-items: center;
1497
- justify-content: center;
1498
- flex-shrink: 0;
1468
+ /* Sidebar Wrapper & Mobile Off-canvas Drawer */
1469
+ .module-sidebar-wrapper {
1470
+ position: fixed;
1471
+ top: 0;
1472
+ left: 0;
1473
+ height: 100vh;
1474
+ z-index: 100;
1475
+ pointer-events: none;
1476
+ /* Let clicks pass through when hidden */
1499
1477
  }
1500
1478
 
1501
- .mobile-tab-icon svg {
1502
- width: 16px;
1503
- height: 16px;
1479
+ .module-sidebar-wrapper.mobile-open {
1480
+ pointer-events: auto;
1504
1481
  }
1505
1482
 
1506
- .mobile-tab-initial {
1507
- font-size: 11px;
1508
- font-weight: 700;
1509
- color: #6b7280;
1483
+ .premium-sidebar {
1484
+ position: absolute;
1485
+ top: 0;
1486
+ left: 0;
1487
+ height: 100vh;
1488
+ width: 280px !important;
1489
+ /* Force fixed width on mobile drawer */
1490
+ transform: translateX(-100%);
1491
+ box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
1510
1492
  }
1511
1493
 
1512
- .mobile-tab-item.active .mobile-tab-initial {
1513
- color: #1a67a3;
1494
+ .premium-sidebar.mobile-open {
1495
+ transform: translateX(0);
1514
1496
  }
1515
1497
 
1516
- .mobile-tab-label {
1517
- font-size: 13px;
1518
- font-weight: 500;
1519
- color: #374151;
1520
- line-height: 1;
1498
+ .mobile-only {
1499
+ display: flex !important;
1521
1500
  }
1522
1501
 
1523
- .mobile-tab-item.active .mobile-tab-label {
1524
- color: #1a67a3;
1525
- font-weight: 600;
1502
+ .desktop-only {
1503
+ display: none !important;
1526
1504
  }
1527
1505
 
1528
- /* expanded page container stacks vertically */
1529
- .expanded-page-container {
1530
- flex-direction: column !important;
1531
- gap: 0 !important;
1532
- width: 100% !important;
1506
+ .brand-name {
1507
+ opacity: 1 !important;
1508
+ width: auto !important;
1509
+ margin-left: 16px !important;
1533
1510
  }
1534
1511
 
1535
-
1536
- /* expanded sidebar NOT hidden on mobile to allow hamburger menu */
1537
-
1538
- /* expanded content full width */
1539
- .expanded-content {
1540
- width: 100% !important;
1541
- padding: 16px !important;
1542
- border-radius: 0 !important;
1543
- box-shadow: none !important;
1512
+ .nav-text {
1513
+ opacity: 1 !important;
1514
+ width: auto !important;
1515
+ margin-left: 16px !important;
1544
1516
  }
1545
1517
  }
1546
1518
 
@@ -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
+ }
@@ -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