@pmidc/upyog-css 1.1.5 → 1.1.6

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.
Files changed (33) hide show
  1. package/dist/index.css +4595 -2612
  2. package/dist/index.min.css +1 -1
  3. package/package.json +1 -1
  4. package/src/components/CardBasedOptions.scss +425 -0
  5. package/src/components/NewAccordianCitizen.scss +130 -0
  6. package/src/components/TimeLine.scss +29 -1
  7. package/src/components/body.scss +116 -2
  8. package/src/components/buttons.scss +9 -2
  9. package/src/components/card.scss +243 -98
  10. package/src/components/info-banner.scss +1 -1
  11. package/src/components/keynote.scss +2 -0
  12. package/src/components/map.scss +6 -0
  13. package/src/components/multiSelectDropdown.scss +21 -5
  14. package/src/components/navbar.scss +3 -10
  15. package/src/components/newFooter.scss +75 -0
  16. package/src/components/searchAction.scss +7 -0
  17. package/src/components/selectdropdown.scss +89 -18
  18. package/src/components/table.scss +325 -141
  19. package/src/components/textfields.scss +25 -17
  20. package/src/components/topbar.scss +169 -99
  21. package/src/index.scss +7 -1
  22. package/src/pages/citizen/CitizenLogin.scss +50 -0
  23. package/src/pages/citizen/DocumentList.scss +145 -1
  24. package/src/pages/citizen/HomePageWrapper.scss +61 -12
  25. package/src/pages/citizen/InboxCard.scss +327 -0
  26. package/src/pages/citizen/citizenDocument.scss +4 -0
  27. package/src/pages/citizen/citizenNewLogin.scss +266 -102
  28. package/src/pages/citizen/container.scss +10 -0
  29. package/src/pages/employee/dashboard.scss +1 -1
  30. package/src/pages/employee/dss.scss +2 -0
  31. package/src/pages/employee/header.scss +262 -0
  32. package/src/pages/employee/index.scss +60 -61
  33. package/src/pages/employee/login.scss +188 -530
@@ -1,47 +1,230 @@
1
+
1
2
  .table {
2
- @apply bg-white w-full;
3
- border-radius: 8px;
4
-
5
- thead {
6
- th {
7
- padding: 20px 18px;
8
- @apply font-bold align-middle text-left;
9
- &:first-child {
10
- min-width: 100px;
11
- }
12
- &:nth-child(2) {
13
- min-width: 150px;
14
- }
15
- }
16
- }
3
+ background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
4
+ width: 100%;
5
+ table-layout: fixed; /* Force fixed table layout to prevent shrinking */
6
+ border-radius: 12px;
7
+ border: 1px solid #e1e8f0;
8
+ overflow: hidden;
9
+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
10
+ border-collapse: separate;
11
+ border-spacing: 0;
12
+ transition: box-shadow 0.3s ease;
13
+ }
17
14
 
18
- tbody {
19
- border: none;
20
- padding: 0;
21
- margin: 0;
22
- td {
23
- @apply border-t border-border text-left align-middle;
24
- padding: "20px 18px";
25
- }
26
- }
15
+ .table:hover {
16
+ box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
17
+ }
18
+
19
+ .table thead {
20
+ background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1e40af 100%);
21
+ position: sticky;
22
+ top: 0;
23
+ z-index: 10;
24
+ }
25
+
26
+ .table thead th {
27
+ padding: 18px 20px;
28
+ font-weight: 800;
29
+ vertical-align: middle;
30
+ text-align: left;
31
+ color: #ffffff;
32
+ font-size: 13px;
33
+ white-space: nowrap;
34
+ text-transform: uppercase;
35
+ letter-spacing: 0.8px;
36
+ border-bottom: 2px solid rgba(255, 255, 255, 0.2);
37
+ position: relative;
38
+ }
39
+
40
+ .table thead th::after {
41
+ content: "";
42
+ position: absolute;
43
+ bottom: 0;
44
+ left: 0;
45
+ right: 0;
46
+ height: 2px;
47
+ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
48
+ }
49
+
50
+ .table thead th:first-child {
51
+ border-top-left-radius: 12px;
52
+ }
53
+
54
+ .table thead th:last-child {
55
+ border-top-right-radius: 12px;
56
+ }
57
+
58
+ .table tbody tr {
59
+ border-bottom: 1px solid #f0f4f8;
60
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
61
+ position: relative;
62
+ }
63
+
64
+
65
+
66
+ .table tbody tr:hover {
67
+ background: linear-gradient(90deg, rgba(59, 130, 246, 0.04), transparent);
68
+ box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
69
+ }
70
+
71
+
72
+
73
+ .table tbody tr:hover td {
74
+ color: #1e293b;
75
+ }
76
+
77
+ .table tbody tr:nth-child(odd) {
78
+ background: #ffffff;
79
+ }
80
+
81
+ .table tbody tr:nth-child(even) {
82
+ background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
83
+ }
84
+
85
+ .table tbody tr:last-child td {
86
+ border-bottom: none;
87
+ }
88
+
89
+ .table tbody td {
90
+ padding: 16px 20px;
91
+ color: #475569;
92
+ vertical-align: middle;
93
+ font-size: 14px;
94
+ word-break: break-word;
95
+ transition: color 0.2s ease;
96
+ border-right: 1px solid transparent;
97
+ overflow: hidden;
98
+ text-overflow: ellipsis;
99
+ }
100
+
101
+ .table tbody td:last-child {
102
+ border-right: none;
103
+ }
104
+
105
+ /* Wrapper for horizontal scroll - prevents body from shrinking */
106
+ .dss-table-wrapper {
107
+ width: 100%;
108
+ display: block;
109
+ overflow-x: auto;
110
+ -webkit-overflow-scrolling: touch;
111
+ border-radius: 12px;
112
+ }
113
+
114
+ .dss-table-wrapper table {
115
+ width: 100%;
116
+ min-width: 1200px; /* Minimum width to ensure proper display */
117
+ border-collapse: collapse;
118
+ background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
119
+ }
120
+
121
+ .dss-table-wrapper table thead {
122
+ background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
123
+ position: sticky;
124
+ top: 0;
125
+ z-index: 10;
126
+ }
127
+
128
+ .dss-table-wrapper table thead th {
129
+ padding: 18px 20px;
130
+ font-weight: 800;
131
+ color: #ffffff;
132
+ text-transform: uppercase;
133
+ letter-spacing: 0.8px;
134
+ font-size: 12px;
135
+ white-space: nowrap;
136
+ }
137
+
138
+ .dss-table-wrapper table thead th .tooltip {
139
+ min-width: 80px;
140
+ }
141
+
142
+ .dss-table-wrapper table tbody tr {
143
+ border-bottom: 1px solid #e1e8f0;
144
+ transition: all 0.2s ease;
145
+ }
146
+
147
+ .dss-table-wrapper table tbody tr:hover {
148
+ background: linear-gradient(90deg, rgba(59, 130, 246, 0.04), transparent);
149
+ box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
150
+ }
151
+
152
+ .dss-table-wrapper table tbody tr:nth-child(odd) {
153
+ background: #ffffff;
154
+ }
155
+
156
+ .dss-table-wrapper table tbody tr:nth-child(even) {
157
+ background: #f8fafc;
158
+ }
159
+
160
+ .dss-table-wrapper table tbody td {
161
+ padding: 16px 20px;
162
+ color: #475569;
163
+ border-right: 1px solid transparent;
164
+ white-space: normal;
165
+ }
166
+
167
+ .dss-table-wrapper table tbody td span {
168
+ white-space: pre;
169
+ min-width: 80px;
170
+ display: inline-block;
171
+ }
172
+
173
+ .dss-table-wrapper table tbody td:last-child {
174
+ border-right: none;
175
+ }
176
+
177
+ /* Fixed column support with proper width constraints */
178
+ .table-fixed-first-column thead th:first-child {
179
+ position: sticky;
180
+ background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
181
+ left: 0;
182
+ min-width: 200px; /* Set minimum width for first column */
183
+ border-right: 2px solid rgba(255, 255, 255, 0.2);
184
+ border-top-left-radius: 12px;
185
+ z-index: 11;
186
+ color: #ffffff;
187
+ }
188
+
189
+ .table-fixed-first-column tbody td:first-child {
190
+ position: sticky;
191
+ background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
192
+ left: 0;
193
+ min-width: 200px; /* Match header width */
194
+ border-right: 2px solid #e1e8f0;
195
+ z-index: 5;
196
+ font-weight: 600;
197
+ color: #1e293b;
27
198
  }
28
199
 
29
200
  .pagination {
30
201
  display: flex;
31
202
  justify-content: flex-end;
32
- background-color: rgba(255, 255, 255, var(--bg-opacity));
33
- border-top: 1px solid rgb(214, 213, 212);
34
- padding: 20px 40px 20px 0px;
35
- color: rgb(80, 90, 95);
36
-
37
- svg {
38
- fill: #505a5f;
39
- @apply ml-md;
40
- }
203
+ align-items: center;
204
+ gap: 16px;
205
+ background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
206
+ border-top: 2px solid #e1e8f0;
207
+ padding: 20px 24px;
208
+ color: #505a5f;
209
+ border-bottom-left-radius: 12px;
210
+ border-bottom-right-radius: 12px;
211
+ }
212
+
213
+ .pagination svg {
214
+ fill: #2563eb;
215
+ transition: transform 0.2s ease;
216
+ }
217
+
218
+ .pagination svg:hover {
219
+ transform: scale(1.1);
220
+ }
221
+
222
+ .pagination button {
223
+ transition: all 0.2s ease;
41
224
  }
42
225
 
43
- .pagination button:nth-child(1) span::after {
44
- content: "\f105";
226
+ .pagination button:hover {
227
+ color: #2563eb;
45
228
  }
46
229
 
47
230
  .fullWidth {
@@ -50,129 +233,130 @@
50
233
 
51
234
  .customTable {
52
235
  width: 100%;
53
- th {
54
- font-weight: bold;
55
- }
236
+ table-layout: fixed; /* Force fixed layout */
237
+ border-radius: 12px;
238
+ border: 1px solid #e1e8f0;
239
+ overflow: hidden;
240
+ background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
241
+ box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
242
+ }
56
243
 
57
- th,
58
- td {
59
- text-align: left;
60
- border-bottom: 1px solid #b1b4b6;
61
- padding: 15px 10px;
62
- }
244
+ .customTable th {
245
+ font-weight: 800;
246
+ background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
247
+ color: #ffffff;
248
+ text-transform: uppercase;
249
+ letter-spacing: 0.8px;
250
+ font-size: 12px;
251
+ }
252
+
253
+ .customTable th,
254
+ .customTable td {
255
+ text-align: left;
256
+ border-bottom: 1px solid #e1e8f0;
257
+ padding: 14px 16px;
258
+ }
259
+
260
+ .customTable tr {
261
+ transition: all 0.2s ease;
262
+ }
263
+
264
+ .customTable tr:nth-child(odd) {
265
+ background-color: #ffffff;
266
+ }
267
+
268
+ .customTable tr:nth-child(even) {
269
+ background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
270
+ }
271
+
272
+ .customTable tr:hover {
273
+ background: linear-gradient(90deg, rgba(59, 130, 246, 0.06), transparent);
274
+ box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
275
+ }
63
276
 
64
- tr:nth-child(odd) {
65
- background-color: #eeeeee;
277
+ .customTable thead tr:first-child {
278
+ background-color: unset;
279
+ }
280
+
281
+ /* ============================================
282
+ RESPONSIVE TABLE STYLES
283
+ ============================================ */
284
+
285
+ @media (max-width: 1024px) {
286
+ .table thead th,
287
+ .customTable thead th,
288
+ .dss-table-wrapper table thead th {
289
+ padding: 14px 16px;
290
+ font-size: 12px;
66
291
  }
67
- tr:nth-child(even) {
68
- background-color: #fff;
292
+
293
+ .table tbody td,
294
+ .customTable tbody td,
295
+ .dss-table-wrapper table tbody td {
296
+ padding: 12px 14px;
297
+ font-size: 13px;
69
298
  }
70
299
 
71
- thead {
72
- tr:first-child {
73
- background-color: unset;
74
- }
300
+ .dss-table-wrapper table {
301
+ min-width: 900px;
75
302
  }
76
303
  }
77
304
 
78
- .table-fixed-first-column {
79
- thead {
80
- th:first-child {
81
- position: sticky;
82
- background: #fff;
83
- left: 0;
84
- border-right: 1px solid #b1b4b6;
85
- border-top-left-radius: 4px;
86
- }
305
+ @media (max-width: 768px) {
306
+ .table thead th,
307
+ .customTable thead th {
308
+ padding: 12px 14px;
309
+ font-size: 11px;
87
310
  }
88
- tbody {
89
- td:first-child {
90
- position: sticky;
91
- background: #fff;
92
- left: 0;
93
- border-right: 1px solid #b1b4b6;
94
- }
311
+
312
+ .table tbody td,
313
+ .customTable tbody td {
314
+ padding: 10px 12px;
315
+ font-size: 12px;
95
316
  }
96
- }
97
- .table-fixed-column-common-pay {
98
- thead {
99
- th:first-child {
100
- position: sticky;
101
- background: rgb(238, 238, 238);
102
- left: 0;
103
- border-top-left-radius: 4px;
104
- }
105
- th:last-child {
106
- position: sticky;
107
- background: rgb(238, 238, 238);
108
- right: 0;
109
- border-top-left-radius: 4px;
110
- }
317
+
318
+ .dss-table-wrapper table {
319
+ min-width: 700px;
111
320
  }
112
- tbody {
113
- td:first-child {
114
- position: sticky;
115
- background: rgb(238, 238, 238);
116
- left: 0;
117
- }
118
- td:last-child {
119
- position: sticky;
120
- background: rgb(238, 238, 238);
121
- right: 0;
122
- }
321
+
322
+ .pagination {
323
+ flex-direction: column;
324
+ align-items: flex-start;
325
+ gap: 12px;
326
+ padding: 16px 20px;
123
327
  }
124
328
  }
125
329
 
126
- .table-fixed-first-second-column {
127
- thead {
128
- th:nth-child(2) {
129
- position: sticky;
130
- left: 0;
131
- background-color: white;
132
- }
330
+ @media (max-width: 520px) {
331
+ .table.table-card-view thead,
332
+ .customTable.table-card-view thead {
333
+ display: none;
133
334
  }
134
- tbody {
135
- td:nth-child(2) {
136
- position: sticky;
137
- left: 0;
138
- background-color: inherit;
139
- }
335
+
336
+ .table.table-card-view tbody tr,
337
+ .customTable.table-card-view tbody tr {
338
+ display: block;
339
+ margin-bottom: 12px;
340
+ border-radius: 10px;
341
+ box-shadow: 0 6px 16px rgba(30, 58, 138, 0.12);
342
+ overflow: hidden;
343
+ border: none;
344
+ background: #ffffff;
140
345
  }
141
- }
142
- .table-border-style {
143
- border: 1px solid #b1b4b6;
144
- border-radius: 4px;
145
- border-spacing: 0;
146
- border-collapse: separate;
147
- }
148
- .dss-table-wrapper {
149
- width: 100%;
150
- display: block;
151
- overflow-x: auto;
152
- table {
153
- th {
154
- .tooltip {
155
- min-width: 80px;
156
- }
157
- }
158
- tr {
159
- td {
160
- span {
161
- white-space: pre;
162
- min-width: 80px;
163
- }
164
- }
165
- }
346
+
347
+ .table.table-card-view tbody tr td,
348
+ .customTable.table-card-view tbody tr td {
349
+ display: flex;
350
+ justify-content: space-between;
351
+ align-items: center;
352
+ padding: 14px;
353
+ border: none;
354
+ border-bottom: 1px solid #f0f4f8;
355
+ font-weight: 500;
166
356
  }
167
- }
168
357
 
169
- .reports-table {
170
- margin-top: 2rem;
171
- thead {
172
- th {
173
- &:first-child {
174
- min-width: unset;
175
- }
176
- }
358
+ .table.table-card-view tbody tr td:last-child,
359
+ .customTable.table-card-view tbody tr td:last-child {
360
+ border-bottom: none;
177
361
  }
178
362
  }
@@ -8,10 +8,19 @@
8
8
 
9
9
  .employee-card-input {
10
10
  @apply mb-lg pl-sm outline-none block border w-full h-10 border-input-border border-solid bg-white leading-10 text-form-field text-text-primary;
11
- height: 2.0rem !important;
11
+ height: 2rem !important;
12
12
  padding: 1.5rem 1rem;
13
13
  border-radius: 8px;
14
14
  border: 1px solid #b4b4b4;
15
+ color: #1f2937;
16
+ &::placeholder {
17
+ color: #9ca3af;
18
+ }
19
+ &:focus {
20
+ outline: none;
21
+ border-color: #d1d5db;
22
+ box-shadow: 0 0 0 3px rgba(13, 78, 255, 0.03);
23
+ }
15
24
  }
16
25
  .employee-card-input:disabled {
17
26
  @apply border-grey-dark text-grey-dark !important;
@@ -36,7 +45,7 @@
36
45
 
37
46
  .card-textarea,
38
47
  .employee-card-textarea {
39
- @apply block outline-none mt-md mb-lg border w-full border-input-border border-solid bg-white h-24 text-form-field text-text-primary p-sm rounded-lg;
48
+ @apply block mb-lg outline-none border w-full border-input-border border-solid bg-white h-24 text-form-field text-text-primary p-sm rounded-lg;
40
49
  }
41
50
 
42
51
  .inputWrapper {
@@ -77,9 +86,9 @@
77
86
  }
78
87
 
79
88
  .card-textarea {
80
- /* //width: 480px; */
89
+ /* //width: 480px; */
81
90
  @apply w-full;
82
- max-width:540px;
91
+ max-width: 540px;
83
92
  }
84
93
 
85
94
  .employee-card-textarea {
@@ -93,19 +102,18 @@
93
102
 
94
103
  .citizen-card-input {
95
104
  @apply mb-lg pl-sm outline-none block border w-full h-10 border-input-border border-solid bg-white leading-10 text-form-field text-text-primary;
96
-
97
105
  }
98
- .citizen-card-input{
99
- height:2rem !important;
106
+ .citizen-card-input {
107
+ height: 2rem !important;
100
108
  margin-bottom: 16px !important;
101
- line-height: 2.0rem !important;
102
- }
103
-
104
- .citizen-card-input--front {
105
- width: fit-content !important;
106
- display: flex;
107
- align-items: center;
108
- background: #eeeeee;
109
- border-right: 0;
110
- padding-right: 5px;
109
+ line-height: 2rem !important;
110
+ color: #1f2937;
111
+ &::placeholder {
112
+ color: #9ca3af;
113
+ }
114
+ &:focus {
115
+ outline: none;
116
+ border-color: #d1d5db;
117
+ box-shadow: 0 0 0 3px rgba(13, 78, 255, 0.03);
118
+ }
111
119
  }