@djb25/digit-ui-css 1.0.7 → 1.0.9

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.7",
3
+ "version": "1.0.9",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -692,7 +692,7 @@
692
692
 
693
693
  /* --- LEFT SIDEBAR --- */
694
694
  .expanded-sidebar {
695
- width: 280px;
695
+ width: 20%;
696
696
  background-color: #ffffff;
697
697
  border-right: 1px solid #e5e7eb;
698
698
  display: flex;
@@ -752,6 +752,7 @@
752
752
  /* Match the Property Tax highlight */
753
753
  color: #ffffff;
754
754
  box-shadow: 0 4px 6px rgba(0, 173, 239, 0.2);
755
+ padding: 6px;
755
756
  }
756
757
 
757
758
  .sidebar-icon-placeholder {
@@ -884,7 +885,7 @@
884
885
 
885
886
  /* --- LEFT SIDEBAR --- */
886
887
  .expanded-sidebar {
887
- width: 280px;
888
+ width: 20%;
888
889
  background-color: #ffffff;
889
890
  display: flex;
890
891
  flex-direction: column;
@@ -1007,8 +1008,10 @@
1007
1008
  }
1008
1009
 
1009
1010
  .content-links-list {
1010
- display: flex;
1011
- flex-direction: column;
1011
+ display: grid;
1012
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
1013
+ gap: 20px;
1014
+ margin-top: 16px;
1012
1015
  }
1013
1016
 
1014
1017
  /* Link Wrapper to handle <a> or <Link> tags */
@@ -1018,53 +1021,314 @@
1018
1021
  display: block;
1019
1022
  }
1020
1023
 
1021
- .content-link-row {
1024
+ .module-link-card {
1022
1025
  display: flex;
1023
1026
  justify-content: space-between;
1024
1027
  align-items: center;
1025
- padding: 18px 10px;
1026
- border-bottom: 1px solid #f3f4f6;
1028
+ padding: 24px 20px;
1029
+ background-color: #ffffff;
1030
+ border-radius: 12px;
1031
+ border: 1px solid #f3f4f6;
1032
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
1027
1033
  cursor: pointer;
1028
- transition: background-color 0.2s, color 0.2s;
1029
- border-radius: 4px;
1034
+ transition: all 0.3s ease;
1035
+ position: relative;
1036
+ overflow: hidden;
1030
1037
  }
1031
1038
 
1032
- .content-link-row:hover {
1033
- background-color: #f9fafb;
1034
- color: #00adef;
1039
+ .module-link-card::before {
1040
+ content: '';
1041
+ position: absolute;
1042
+ left: 0;
1043
+ top: 0;
1044
+ bottom: 0;
1045
+ width: 4px;
1046
+ background: linear-gradient(135deg, #00adef, #2563eb);
1047
+ opacity: 0;
1048
+ transition: opacity 0.3s ease;
1035
1049
  }
1036
1050
 
1037
- .link-label {
1038
- font-size: 0.95rem;
1039
- font-weight: 500;
1040
- color: #374151;
1051
+ .module-link-card:hover {
1052
+ transform: translateY(-4px);
1053
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
1054
+ border-color: #dbeafe;
1041
1055
  }
1042
1056
 
1043
- .content-link-row:hover .link-label {
1044
- color: #00adef;
1057
+ .module-link-card:hover::before {
1058
+ opacity: 1;
1045
1059
  }
1046
1060
 
1047
- .link-count {
1048
- font-size: 0.85rem;
1049
- color: #9ca3af;
1050
- margin-left: 6px;
1061
+ .link-card-info {
1062
+ display: flex;
1063
+ gap: 6px;
1051
1064
  }
1052
1065
 
1053
- .link-arrow {
1054
- display: flex;
1066
+ .link-card-label {
1067
+ font-size: 1.05rem;
1068
+ font-weight: 600;
1069
+ color: #1f2937;
1070
+ transition: color 0.3s ease;
1071
+ }
1072
+
1073
+ .module-link-card:hover .link-card-label {
1074
+ color: #2563eb;
1075
+ }
1076
+
1077
+ .link-card-count {
1078
+ display: inline-flex;
1055
1079
  align-items: center;
1080
+ justify-content: center;
1081
+ background-color: #eff6ff;
1082
+ color: #2563eb;
1083
+ font-size: 0.8rem;
1084
+ font-weight: 700;
1085
+ padding: 2px 8px;
1086
+ border-radius: 9999px;
1087
+ width: fit-content;
1056
1088
  }
1057
1089
 
1058
- .link-arrow svg {
1059
- stroke: #9ca3af;
1090
+ .link-card-arrow {
1091
+ display: flex;
1092
+ align-items: center;
1093
+ justify-content: center;
1094
+ width: 32px;
1095
+ height: 32px;
1096
+ border-radius: 50%;
1097
+ background-color: #f3f4f6;
1098
+ color: #9ca3af;
1099
+ transition: all 0.3s ease;
1060
1100
  }
1061
1101
 
1062
- .content-link-row:hover .link-arrow svg {
1063
- stroke: #00adef;
1102
+ .module-link-card:hover .link-card-arrow {
1103
+ background-color: #dbeafe;
1104
+ color: #2563eb;
1105
+ transform: translateX(4px);
1064
1106
  }
1065
1107
 
1066
1108
  .no-links-msg {
1067
1109
  color: #9ca3af;
1068
1110
  font-style: italic;
1069
1111
  padding: 20px 0;
1112
+ }
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+ :root {
1119
+ /* Dimensions */
1120
+ --sidebar-expanded: 280px;
1121
+ --sidebar-collapsed: 80px;
1122
+
1123
+ /* Colors */
1124
+ --bg-color: #ffffff;
1125
+ --border-color: #f1f5f9;
1126
+ --text-main: #0f172a;
1127
+ --text-muted: #64748b;
1128
+ --hover-bg: #f8fafc;
1129
+ --active-bg: #eff6ff;
1130
+ --active-text: #2563eb;
1131
+
1132
+ /* Animations */
1133
+ --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
1134
+ /* Slow, elegant easing curve */
1135
+ --transition-fast: 0.3s ease;
1136
+ }
1137
+
1138
+ /* --- Base Sidebar --- */
1139
+ .premium-sidebar {
1140
+ display: flex;
1141
+ flex-direction: column;
1142
+ height: stretch;
1143
+ background-color: var(--bg-color);
1144
+ border-right: 1px solid var(--border-color);
1145
+ transition: width var(--transition-slow);
1146
+ overflow-x: hidden;
1147
+ box-sizing: border-box;
1148
+ font-family: 'Inter', system-ui, -apple-system, sans-serif;
1149
+ box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
1150
+ }
1151
+
1152
+ /* Width Control */
1153
+ .premium-sidebar.expanded {
1154
+ width: var(--sidebar-expanded);
1155
+ margin-left: -29px;
1156
+ }
1157
+
1158
+ .premium-sidebar.collapsed {
1159
+ width: var(--sidebar-collapsed);
1160
+ margin-left: -29px;
1161
+
1162
+ }
1163
+
1164
+ /* --- Header & Brand --- */
1165
+ .sidebar-header {
1166
+ display: flex;
1167
+ align-items: center;
1168
+ justify-content: space-between;
1169
+ padding: 24px 20px;
1170
+ margin-bottom: 12px;
1171
+ position: relative;
1172
+ white-space: nowrap;
1173
+ }
1174
+
1175
+ .brand-container {
1176
+ display: flex;
1177
+ align-items: center;
1178
+ /* Gap removed to allow for smooth width reduction */
1179
+ }
1180
+
1181
+ .brand-icon {
1182
+ width: 36px;
1183
+ height: 36px;
1184
+ border-radius: 10px;
1185
+ background: linear-gradient(135deg, #2563eb, #3b82f6);
1186
+ color: white;
1187
+ display: flex;
1188
+ justify-content: center;
1189
+ align-items: center;
1190
+ flex-shrink: 0;
1191
+ box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
1192
+ }
1193
+
1194
+ .brand-name {
1195
+ font-size: 1.125rem;
1196
+ font-weight: 700;
1197
+ color: var(--text-main);
1198
+ margin: 0 0 0 16px;
1199
+ /* Spacing applied here instead of flex gap */
1200
+ transition: opacity var(--transition-fast), width var(--transition-fast), margin var(--transition-fast);
1201
+ overflow: hidden;
1202
+ /* Prevents text squishing */
1203
+ }
1204
+
1205
+ .collapse-toggle {
1206
+ background: transparent;
1207
+ border: none;
1208
+ color: var(--text-muted);
1209
+ cursor: pointer;
1210
+ padding: 8px;
1211
+ border-radius: 8px;
1212
+ display: flex;
1213
+ align-items: center;
1214
+ justify-content: center;
1215
+ transition: background-color 0.2s, color 0.2s;
1216
+ flex-shrink: 0;
1217
+ }
1218
+
1219
+ .collapse-toggle:hover {
1220
+ background-color: var(--hover-bg);
1221
+ color: var(--text-main);
1222
+ }
1223
+
1224
+ /* --- Navigation --- */
1225
+ .sidebar-nav {
1226
+ display: flex;
1227
+ flex-direction: column;
1228
+ gap: 8px;
1229
+ padding: 0 16px;
1230
+ }
1231
+
1232
+ .nav-link {
1233
+ text-decoration: none;
1234
+ display: block;
1235
+ border-radius: 10px;
1236
+ color: var(--text-muted);
1237
+ transition: all 0.2s ease;
1238
+ overflow: hidden;
1239
+ }
1240
+
1241
+ .nav-item-content {
1242
+ display: flex;
1243
+ align-items: center;
1244
+ padding: 12px;
1245
+ /* Gap removed here as well */
1246
+ }
1247
+
1248
+ .nav-icon-wrapper {
1249
+ width: 24px;
1250
+ height: 24px;
1251
+ display: flex;
1252
+ justify-content: center;
1253
+ align-items: center;
1254
+ flex-shrink: 0;
1255
+ }
1256
+
1257
+ .fallback-initial {
1258
+ font-size: 0.85rem;
1259
+ font-weight: 700;
1260
+ letter-spacing: 0.5px;
1261
+ background-color: var(--border-color);
1262
+ /* Added a subtle background circle for initials */
1263
+ color: var(--text-muted);
1264
+ width: 32px;
1265
+ height: 32px;
1266
+ border-radius: 50%;
1267
+ display: flex;
1268
+ justify-content: center;
1269
+ align-items: center;
1270
+ }
1271
+
1272
+ .nav-text {
1273
+ font-size: 0.95rem;
1274
+ font-weight: 500;
1275
+ white-space: nowrap;
1276
+ margin-left: 16px;
1277
+ /* Spacing applied here */
1278
+ opacity: 1;
1279
+ transition: opacity 0.2s ease, width 0.3s ease, margin 0.3s ease;
1280
+ overflow: hidden;
1281
+ }
1282
+
1283
+ /* Hover & Active States */
1284
+ .nav-link:hover {
1285
+ background-color: var(--hover-bg);
1286
+ color: var(--text-main);
1287
+ }
1288
+
1289
+ .nav-item.active .nav-link {
1290
+ background-color: var(--active-bg);
1291
+ color: var(--active-text);
1292
+ }
1293
+
1294
+ .nav-item.active .nav-text {
1295
+ font-weight: 600;
1296
+ }
1297
+
1298
+ .nav-item.active .fallback-initial {
1299
+ background-color: var(--active-text);
1300
+ color: #ffffff;
1301
+ }
1302
+
1303
+ /* --- COLLAPSED STATE STYLES --- */
1304
+
1305
+ /* Smoothly shrink and hide text */
1306
+ .collapsed .brand-name,
1307
+ .collapsed .nav-text {
1308
+ opacity: 0;
1309
+ width: 0;
1310
+ margin-left: 0;
1311
+ pointer-events: none;
1312
+ }
1313
+
1314
+ /* Re-stack header elements to center */
1315
+ .collapsed .sidebar-header {
1316
+ padding: 24px 0;
1317
+ flex-direction: column;
1318
+ gap: 24px;
1319
+ justify-content: center;
1320
+ }
1321
+
1322
+ .collapsed .brand-container {
1323
+ justify-content: center;
1324
+ }
1325
+
1326
+ /* Re-center navigation icons */
1327
+ .collapsed .sidebar-nav {
1328
+ padding: 0 12px;
1329
+ }
1330
+
1331
+ .collapsed .nav-item-content {
1332
+ justify-content: center;
1333
+ padding: 12px 0;
1070
1334
  }
@@ -14,8 +14,8 @@
14
14
  }
15
15
 
16
16
  .custom-checkbox {
17
- width: 38px;
18
- height: 38px;
17
+ width: 25px;
18
+ height: 25px;
19
19
  @apply absolute top-0 left-0 border border-solid border-input-border z-0;
20
20
 
21
21
  img {
@@ -47,7 +47,38 @@
47
47
  }
48
48
 
49
49
  .label {
50
- margin-left: 56px;
51
- @apply text-form-field text-text-primary;
50
+ margin-left: 32px;
51
+ top: 3px !important;
52
+ @apply text-form-field text-text-primary relative top-10;
53
+ }
54
+ }
55
+
56
+ .fsm-citizen-rating-wrapper {
57
+ .card-label:last-of-type {
58
+ margin-top: 24px;
59
+ }
60
+
61
+ .card-label {
62
+ margin-bottom: 24px;
63
+ }
64
+ }
65
+
66
+ .fsm-citizen-rating-wrapper {
67
+ .card-label:last-of-type {
68
+ margin-top: 24px;
69
+ }
70
+
71
+ .card-label {
72
+ margin-bottom: 24px;
73
+ }
74
+ }
75
+
76
+ .fsm-citizen-rating-wrapper {
77
+ .card-label:last-of-type {
78
+ margin-top: 24px;
79
+ }
80
+
81
+ .card-label {
82
+ margin-bottom: 24px;
52
83
  }
53
84
  }
package/src/index.scss CHANGED
@@ -83,7 +83,6 @@
83
83
  @import "./components/toggleSwitch.scss";
84
84
  @import "./components/plusMinus.scss";
85
85
  @import "./components/financeUi.scss";
86
- @import "./components/landingpage.scss";
87
86
 
88
87
  @import "./pages/employee/index.scss";
89
88
  @import "./pages/employee/cardfix.scss";
@@ -206,12 +205,12 @@ h6 {
206
205
  margin-bottom: 16px;
207
206
 
208
207
  a {
209
- color: theme(colors.link.normal);
208
+ color: theme("colors.link.normal");
210
209
  }
211
210
  }
212
211
 
213
212
  .clear-search-label {
214
- color: theme(colors.primary.main);
213
+ color: theme("colors.primary.main");
215
214
  cursor: pointer;
216
215
  }
217
216
 
@@ -224,7 +223,7 @@ h6 {
224
223
  @apply flex justify-between items-center;
225
224
 
226
225
  .download-button {
227
- color: theme(colors.primary.main);
226
+ color: theme("colors.primary.main");
228
227
  margin-left: 8px;
229
228
  }
230
229
  }
@@ -233,13 +232,13 @@ h6 {
233
232
  @apply flex mb-sm;
234
233
 
235
234
  .download-button {
236
- color: theme(colors.primary.main);
235
+ color: theme("colors.primary.main");
237
236
  margin-left: 8px;
238
237
  }
239
238
  }
240
239
 
241
240
  .check-page-link-button {
242
- color: theme(colors.primary.main) !important;
241
+ color: theme("colors.primary.main") !important;
243
242
  }
244
243
 
245
244
  .pt-application-download-btn {
@@ -263,10 +262,10 @@ h6 {
263
262
  gap: 10px;
264
263
 
265
264
  svg {
266
- fill: theme(colors.primary.main);
265
+ fill: theme("colors.primary.main");
267
266
  }
268
267
 
269
- color: theme(colors.primary.main);
268
+ color: theme("colors.primary.main");
270
269
 
271
270
  cursor: pointer;
272
271
  font-weight: 500;
@@ -274,14 +273,14 @@ h6 {
274
273
  }
275
274
 
276
275
  .primaryColor {
277
- color: theme(colors.text.primary) !important;
276
+ color: theme("colors.text.primary") !important;
278
277
  }
279
278
 
280
279
  input[readonly] {
281
280
  @apply border-grey-dark !important;
282
- background-color: theme(digitv2.lightTheme.background);
283
- border-color: theme(digitv2.lightTheme.text-color-secondary);
284
- color: theme(digitv2.lightTheme.text-color-secondary);
281
+ background-color: theme("digitv2.lightTheme.background");
282
+ border-color: theme("digitv2.lightTheme.text-color-secondary");
283
+ color: theme("digitv2.lightTheme.text-color-secondary");
285
284
  }
286
285
 
287
286
  .hide-input-type-file {
@@ -322,7 +321,7 @@ input[readonly] {
322
321
  height: 2.5rem;
323
322
 
324
323
  &__wrapper {
325
- border: 2px solid theme(colors.text.primary);
324
+ border: 2px solid theme("colors.text.primary");
326
325
  padding-left: 16px;
327
326
  }
328
327
 
@@ -431,7 +430,7 @@ input[type="number"] {
431
430
 
432
431
  .cheque-date {
433
432
  @apply flex items-center mb-lg;
434
- border: 2px solid theme(colors.text.primary);
433
+ border: 2px solid theme("colors.text.primary");
435
434
  border-radius: 2px;
436
435
 
437
436
  input {
@@ -456,7 +455,7 @@ input[type="number"] {
456
455
 
457
456
  .ifsc-field {
458
457
  @apply flex items-center mb-lg;
459
- border: 2px solid theme(colors.text.primary);
458
+ border: 2px solid theme("colors.text.primary");
460
459
  border-radius: 2px;
461
460
 
462
461
  input {
@@ -586,7 +585,7 @@ input[type="number"] {
586
585
  padding: 8px 24px;
587
586
  color: white;
588
587
  cursor: pointer;
589
- background-color: theme(colors.primary.main);
588
+ background-color: theme("colors.primary.main");
590
589
  }
591
590
  }
592
591
  }
@@ -633,7 +632,8 @@ input[type="number"] {
633
632
  }
634
633
  }
635
634
 
636
- .applications-list-container {}
635
+ .applications-list-container {
636
+ }
637
637
 
638
638
  .complaint-summary {
639
639
  @media (min-width: 780px) {
@@ -663,7 +663,6 @@ input[type="number"] {
663
663
  }
664
664
 
665
665
  @media (min-width: 780px) {
666
-
667
666
  .citizen-obps-wrapper,
668
667
  .pgr-citizen-wrapper,
669
668
  .pt-citizen,
@@ -690,7 +689,6 @@ input[type="number"] {
690
689
  }
691
690
 
692
691
  @media only screen and (max-width: 768px) {
693
-
694
692
  /* For mobile phones: */
695
693
  .error-boundary {
696
694
  height: 75vh;
@@ -777,7 +775,7 @@ input[type="number"] {
777
775
  .modal-body-ws {
778
776
  padding: 1rem;
779
777
  font-weight: 700;
780
- color: theme(colors.text.primary);
778
+ color: theme("colors.text.primary");
781
779
  font-size: 24px;
782
780
  margin-bottom: 1rem;
783
781
  }
@@ -808,4 +806,4 @@ input[type="number"] {
808
806
  margin-right: -27%;
809
807
  max-height: 120px;
810
808
  margin-top: 90px;
811
- }
809
+ }