@djb25/digit-ui-css 1.0.28 → 1.0.30

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.28",
3
+ "version": "1.0.30",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -200,6 +200,7 @@
200
200
  }
201
201
 
202
202
  @screen dt {
203
+
203
204
  .submit-bar,
204
205
  .submit-bar-disabled {
205
206
  width: 240px;
@@ -361,7 +362,7 @@
361
362
  }
362
363
 
363
364
  /* Remove any default margins that might interfere */
364
- .label-field-pair > * {
365
+ .label-field-pair>* {
365
366
  margin: 0;
366
367
  width: 100%;
367
368
  }
@@ -502,7 +503,7 @@
502
503
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
503
504
  }
504
505
 
505
- .new-employee-card > * {
506
+ .new-employee-card>* {
506
507
  position: relative;
507
508
  z-index: 1;
508
509
  }
@@ -914,6 +915,7 @@
914
915
  width: 100%;
915
916
  padding-bottom: 40px;
916
917
  }
918
+
917
919
  .mobile-sidebar-toggle {
918
920
  display: flex;
919
921
  align-items: center;
@@ -928,10 +930,12 @@
928
930
  color: #1a365d;
929
931
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
930
932
  }
933
+
931
934
  .hamburger-icon {
932
935
  width: 22px;
933
936
  height: 22px;
934
937
  }
938
+
935
939
  .expanded-overlay {
936
940
  position: fixed;
937
941
  top: 0;
@@ -973,9 +977,11 @@
973
977
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
974
978
  overflow-y: auto;
975
979
  }
980
+
976
981
  .expanded-sidebar.open {
977
982
  left: 0;
978
983
  }
984
+
979
985
  .sidebar-backdrop {
980
986
  position: fixed;
981
987
  top: 0;
@@ -986,6 +992,7 @@
986
992
  z-index: 999;
987
993
  backdrop-filter: blur(2px);
988
994
  }
995
+
989
996
  .sidebar-title {
990
997
  font-size: 1.2rem;
991
998
  font-weight: 600;
@@ -1221,6 +1228,7 @@
1221
1228
  align-items: center;
1222
1229
  margin-bottom: 24px;
1223
1230
  }
1231
+
1224
1232
  .mobile-close-btn {
1225
1233
  background: none;
1226
1234
  border: none;
@@ -1229,6 +1237,7 @@
1229
1237
  cursor: pointer;
1230
1238
  padding: 4px;
1231
1239
  }
1240
+
1232
1241
  .expanded-content-area {
1233
1242
  flex: 1;
1234
1243
  }
@@ -1382,7 +1391,157 @@
1382
1391
  justify-content: center;
1383
1392
  padding: 12px 0;
1384
1393
  }
1394
+
1395
+ .module-sidebar-toggle {
1396
+ display: none;
1397
+ }
1398
+
1399
+ .module-sidebar-backdrop {
1400
+ display: none;
1401
+ }
1402
+
1403
+ @media (max-width: 768px) {
1404
+
1405
+ /* Wrapper becomes a sticky top bar, not a flex column member */
1406
+ .module-sidebar-wrapper {
1407
+ position: sticky;
1408
+ top: 0;
1409
+ z-index: 200;
1410
+ width: 100%;
1411
+ height: auto;
1412
+ flex-shrink: 0;
1413
+ }
1414
+
1415
+ /* Hide desktop sidebar — zero dimensions so flex row is unaffected */
1416
+ .premium-sidebar {
1417
+ display: none !important;
1418
+ width: 0 !important;
1419
+ min-width: 0 !important;
1420
+ height: 0 !important;
1421
+ overflow: hidden !important;
1422
+ border: none !important;
1423
+ padding: 0 !important;
1424
+ margin: 0 !important;
1425
+ }
1426
+
1427
+ /* Hide old toggle + backdrop */
1428
+ .module-sidebar-toggle,
1429
+ .module-sidebar-backdrop,
1430
+ .collapse-toggle {
1431
+ display: none !important;
1432
+ }
1433
+
1434
+ /* Show the horizontal scrollable tab bar */
1435
+ .mobile-tab-bar {
1436
+ display: flex;
1437
+ overflow-x: auto;
1438
+ overflow-y: hidden;
1439
+ -webkit-overflow-scrolling: touch;
1440
+ scrollbar-width: none;
1441
+ gap: 6px;
1442
+ padding: 8px 12px;
1443
+ background-color: #ffffff;
1444
+ border-bottom: 1px solid #e5e7eb;
1445
+ width: 100%;
1446
+ box-sizing: border-box;
1447
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
1448
+ }
1449
+
1450
+ .mobile-tab-bar::-webkit-scrollbar {
1451
+ display: none;
1452
+ }
1453
+
1454
+ .mobile-tab-wrapper {
1455
+ flex-shrink: 0;
1456
+ }
1457
+
1458
+ .mobile-tab-wrapper a {
1459
+ text-decoration: none;
1460
+ color: inherit;
1461
+ display: block;
1462
+ }
1463
+
1464
+ .mobile-tab-wrapper.disabled {
1465
+ opacity: 0.5;
1466
+ pointer-events: none;
1467
+ }
1468
+
1469
+ .mobile-tab-item {
1470
+ display: flex;
1471
+ align-items: center;
1472
+ gap: 6px;
1473
+ padding: 7px 14px;
1474
+ border-radius: 999px;
1475
+ border: 1px solid #e5e7eb;
1476
+ background-color: #f9fafb;
1477
+ white-space: nowrap;
1478
+ cursor: pointer;
1479
+ transition: all 0.2s ease;
1480
+ }
1481
+
1482
+ .mobile-tab-item.active {
1483
+ background-color: #eff6ff;
1484
+ border-color: #bfdbfe;
1485
+ color: #1a67a3;
1486
+ }
1487
+
1488
+ .mobile-tab-icon {
1489
+ width: 16px;
1490
+ height: 16px;
1491
+ display: flex;
1492
+ align-items: center;
1493
+ justify-content: center;
1494
+ flex-shrink: 0;
1495
+ }
1496
+
1497
+ .mobile-tab-icon svg {
1498
+ width: 16px;
1499
+ height: 16px;
1500
+ }
1501
+
1502
+ .mobile-tab-initial {
1503
+ font-size: 11px;
1504
+ font-weight: 700;
1505
+ color: #6b7280;
1506
+ }
1507
+
1508
+ .mobile-tab-item.active .mobile-tab-initial {
1509
+ color: #1a67a3;
1510
+ }
1511
+
1512
+ .mobile-tab-label {
1513
+ font-size: 13px;
1514
+ font-weight: 500;
1515
+ color: #374151;
1516
+ line-height: 1;
1517
+ }
1518
+
1519
+ .mobile-tab-item.active .mobile-tab-label {
1520
+ color: #1a67a3;
1521
+ font-weight: 600;
1522
+ }
1523
+
1524
+ /* expanded page container stacks vertically */
1525
+ .expanded-page-container {
1526
+ flex-direction: column !important;
1527
+ gap: 0 !important;
1528
+ width: 100% !important;
1529
+ }
1530
+
1531
+
1532
+ /* expanded sidebar NOT hidden on mobile to allow hamburger menu */
1533
+
1534
+ /* expanded content full width */
1535
+ .expanded-content {
1536
+ width: 100% !important;
1537
+ padding: 16px !important;
1538
+ border-radius: 0 !important;
1539
+ box-shadow: none !important;
1540
+ }
1541
+ }
1542
+
1385
1543
  @media (min-width: 768px) {
1544
+
1386
1545
  .mobile-sidebar-toggle,
1387
1546
  .mobile-close-btn,
1388
1547
  .sidebar-backdrop {
@@ -1407,4 +1566,4 @@
1407
1566
  padding: 20px;
1408
1567
  transition: none;
1409
1568
  }
1410
- }
1569
+ }
@@ -46,7 +46,7 @@
46
46
  padding: 10px 8px 14px;
47
47
  transition: width 0.3s ease, box-shadow 0.3s ease;
48
48
  overflow: hidden;
49
-
49
+ height:inherit;
50
50
  padding-top: 56px;
51
51
  }
52
52
 
@@ -156,7 +156,7 @@
156
156
  float: none;
157
157
  }
158
158
 
159
- .citizen-static-sidebar .drawer-desktop .menu-item .icon + .menu-label {
159
+ .citizen-static-sidebar .drawer-desktop .menu-item .icon+.menu-label {
160
160
  margin-left: 0;
161
161
  }
162
162
 
@@ -230,4 +230,4 @@
230
230
  .citizen-sidebar-toggle {
231
231
  display: none;
232
232
  }
233
- }
233
+ }
package/src/index.scss CHANGED
@@ -101,6 +101,7 @@
101
101
  @import "./pages/citizen/payment/payment-type.scss";
102
102
  @import "./pages/citizen/container.scss";
103
103
  @import "./pages/citizen/HomePageWrapper.scss";
104
+ @import "./pages/citizen/Register.scss";
104
105
  @import "./pages/citizen/CitizenEngagementNotificationWrapper.scss";
105
106
  @import "./pages/citizen/Events.scss";
106
107
  @import "./pages/citizen/DocumentList.scss";
@@ -729,6 +730,7 @@ input[type="number"] {
729
730
  width: 100%;
730
731
  flex: 1;
731
732
  min-width: 0;
733
+
732
734
  }
733
735
 
734
736
  .employee-app-wrapper {
@@ -334,6 +334,7 @@
334
334
  position: relative;
335
335
  overflow: hidden;
336
336
  padding-bottom: 40px;
337
+ height:inherit;
337
338
 
338
339
  &::before {
339
340
  content: "";
@@ -0,0 +1,306 @@
1
+ .Citizen_register {
2
+ &.registration-page-container {
3
+ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
4
+ min-height: calc(100vh - 83px);
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ padding: 40px 20px;
9
+ font-family: "Roboto", sans-serif;
10
+ width: 100%;
11
+
12
+ /* Global overrides for this page */
13
+ .digit-button,
14
+ .submit-bar {
15
+ background-color: #1a67a3 !important;
16
+ border-color: #1a67a3 !important;
17
+ background-image: none !important;
18
+ box-shadow: 0 4px 12px rgba(26, 103, 163, 0.3) !important;
19
+
20
+ &:hover {
21
+ background-color: #0b4c92 !important;
22
+ }
23
+
24
+ &.disabled,
25
+ &:disabled {
26
+ background-color: #94a3b8 !important;
27
+ border-color: #94a3b8 !important;
28
+ opacity: 0.7 !important;
29
+ }
30
+ }
31
+
32
+ .checkbox-wrap input:checked + .checkbox {
33
+ background-color: #1a67a3 !important;
34
+ border-color: #1a67a3 !important;
35
+ }
36
+ }
37
+
38
+ .registration-card {
39
+ display: flex;
40
+ width: 100%;
41
+ max-width: 1000px;
42
+ background-color: #fff;
43
+ border-radius: 20px;
44
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
45
+ overflow: hidden;
46
+ min-height: 600px;
47
+ }
48
+
49
+ .registration-sidebar {
50
+ flex: 0 0 320px;
51
+ background: linear-gradient(90deg, #134db1 0%, #3582f3 100%);
52
+ padding: 40px;
53
+ color: #fff;
54
+ display: flex;
55
+ flex-direction: column;
56
+ position: relative;
57
+ overflow: hidden;
58
+
59
+ /* Subtle dot pattern background */
60
+ &::before {
61
+ content: "";
62
+ position: absolute;
63
+ top: 0;
64
+ left: 0;
65
+ right: 0;
66
+ bottom: 0;
67
+ background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
68
+ background-size: 24px 24px;
69
+ pointer-events: none;
70
+ }
71
+
72
+ /* Circular glow effect on the right */
73
+ &::after {
74
+ content: "";
75
+ position: absolute;
76
+ top: 50%;
77
+ right: -100px;
78
+ transform: translateY(-50%);
79
+ width: 300px;
80
+ height: 300px;
81
+ background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
82
+ pointer-events: none;
83
+ }
84
+
85
+ /* Bring content above pseudo-elements */
86
+ & > * {
87
+ position: relative;
88
+ z-index: 1;
89
+ }
90
+
91
+ .sidebar-header {
92
+ margin-bottom: 60px;
93
+ h1 {
94
+ font-size: 28px;
95
+ font-weight: 800;
96
+ letter-spacing: -0.5px;
97
+ margin-bottom: 8px;
98
+ }
99
+ p {
100
+ opacity: 0.8;
101
+ font-size: 14px;
102
+ }
103
+ }
104
+
105
+ .sidebar-footer {
106
+ margin-top: auto;
107
+ font-size: 12px;
108
+ opacity: 0.6;
109
+ }
110
+
111
+ /* Success state specific */
112
+ .success-icon-wrapper {
113
+ text-align: center;
114
+ margin-top: 40px;
115
+
116
+ .icon-outer {
117
+ width: 120px;
118
+ height: 120px;
119
+ border-radius: 50%;
120
+ background-color: rgba(255, 255, 255, 0.2);
121
+ display: flex;
122
+ align-items: center;
123
+ justify-content: center;
124
+ margin: 0 auto 30px auto;
125
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
126
+ }
127
+
128
+ .icon-inner {
129
+ width: 90px;
130
+ height: 90px;
131
+ border-radius: 50%;
132
+ background-color: #fff;
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: center;
136
+ }
137
+
138
+ h2 {
139
+ font-size: 24px;
140
+ font-weight: 700;
141
+ margin-bottom: 16px;
142
+ }
143
+
144
+ p {
145
+ opacity: 0.9;
146
+ font-size: 15px;
147
+ line-height: 1.6;
148
+ }
149
+ }
150
+ }
151
+
152
+ .registration-content {
153
+ flex: 1;
154
+ padding: 60px;
155
+ background-color: #fff;
156
+ display: flex;
157
+ flex-direction: column;
158
+ justify-content: center;
159
+
160
+ .content-wrapper {
161
+ max-width: 500px;
162
+ margin: 0 auto;
163
+ width: 100%;
164
+
165
+ h1 {
166
+ font-size: 28px;
167
+ font-weight: 700;
168
+ color: #1e293b;
169
+ margin-bottom: 16px;
170
+ }
171
+
172
+ p {
173
+ color: #64748b;
174
+ font-size: 16px;
175
+ margin-bottom: 40px;
176
+ line-height: 1.6;
177
+ }
178
+ }
179
+
180
+ .credentials-box {
181
+ background-color: #f8fafc;
182
+ border-radius: 16px;
183
+ padding: 32px;
184
+ border: 1px solid #e2e8f0;
185
+ margin-bottom: 40px;
186
+ }
187
+
188
+ .continue-btn {
189
+ width: 100%;
190
+ height: 50px;
191
+ display: flex;
192
+ align-items: center;
193
+ justify-content: center;
194
+ background-color: #1a67a3;
195
+ color: #fff;
196
+ border-radius: 12px;
197
+ font-size: 18px;
198
+ font-weight: 700;
199
+ border: none;
200
+ cursor: pointer;
201
+ box-shadow: 0 4px 12px rgba(26, 103, 163, 0.3);
202
+ transition: all 0.2s ease;
203
+ margin-top: 20px;
204
+
205
+ &:hover {
206
+ background-color: #0b4c92;
207
+ }
208
+ }
209
+ }
210
+
211
+ /*SelectMobileNumber specific styles*/
212
+ .select-mobile-number-wrapper {
213
+ .prefix-container {
214
+ display: flex;
215
+ align-items: center;
216
+ padding: 0 10px;
217
+ border-right: 1px solid #e1e1e1;
218
+ color: #505a5f;
219
+ font-weight: bold;
220
+ }
221
+
222
+ .error-text {
223
+ color: #d4351c;
224
+ font-size: 14px;
225
+ margin-top: 4px;
226
+ }
227
+
228
+ .privacy-link {
229
+ color: #1a67a3;
230
+ cursor: pointer;
231
+ font-weight: 600;
232
+ font-size: 14px;
233
+ }
234
+
235
+ .or-separator-container {
236
+ margin: 40px 0 0 0;
237
+ border-top: 1px solid #e5e7eb;
238
+ padding-top: 32px;
239
+ text-align: center;
240
+ position: relative;
241
+
242
+ .or-text {
243
+ position: absolute;
244
+ top: -10px;
245
+ left: 50%;
246
+ transform: translateX(-50%);
247
+ background: #fff;
248
+ padding: 0 16px;
249
+ color: #6b7280;
250
+ font-size: 14px;
251
+ font-weight: 500;
252
+ }
253
+ }
254
+
255
+ .digilocker-btn {
256
+ display: flex;
257
+ align-items: center;
258
+ justify-content: center;
259
+ width: 100%;
260
+ padding: 14px;
261
+ background-color: #fff;
262
+ border: 1px solid #d1d5db;
263
+ border-radius: 12px;
264
+ cursor: pointer;
265
+ transition: all 0.3s ease;
266
+ gap: "12px";
267
+ font-size: 16px;
268
+ font-weight: 600;
269
+ color: #374151;
270
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
271
+
272
+ &:hover {
273
+ background-color: #f9fafb;
274
+ border-color: #9ca3af;
275
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
276
+ }
277
+
278
+ img {
279
+ width: 28px;
280
+ height: 28px;
281
+ margin-right: 12px;
282
+ }
283
+ }
284
+ }
285
+
286
+ /*Mobile responsiveness adjustments*/
287
+ @media only screen and (max-width: 768px) {
288
+ .registration-card {
289
+ flex-direction: column;
290
+ min-height: auto;
291
+ }
292
+
293
+ .registration-sidebar {
294
+ flex: 0 0 auto;
295
+ padding: 30px 20px;
296
+
297
+ .sidebar-header {
298
+ margin-bottom: 30px;
299
+ }
300
+ }
301
+
302
+ .registration-content {
303
+ padding: 40px 20px;
304
+ }
305
+ }
306
+ }