@djb25/digit-ui-css 1.0.6 → 1.0.8

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.6",
3
+ "version": "1.0.8",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.css",
6
6
  "author": "satyam",
@@ -11,7 +11,7 @@
11
11
  "prefix": ""
12
12
  },
13
13
  "scripts": {
14
- "start": "gulp build",
14
+ "start": "gulp watch",
15
15
  "watch": "gulp watch",
16
16
  "build:prod": "NODE_ENV=production gulp build",
17
17
  "prepublish": "yarn build:prod",
@@ -472,15 +472,17 @@
472
472
 
473
473
 
474
474
  .new-employee-card {
475
- background-color: #ffffff;
475
+ background-image: url("https://objectstorage.ap-hyderabad-1.oraclecloud.com/n/axn3czn1s06y/b/djb-dev-asset-bucket/o/dashboard_card_img.png");
476
+ background-size: cover;
477
+ background-position: center;
476
478
  border: 1px solid #f3f4f6;
477
479
  border-radius: 12px;
478
- padding: 24px;
480
+ padding: 15px;
479
481
  display: flex;
480
482
  flex-direction: column;
481
483
  gap: 24px;
482
484
  width: 100%;
483
- max-width: 400px;
485
+ max-width: 426px;
484
486
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
485
487
  font-family: 'Inter', -apple-system, sans-serif;
486
488
  }
@@ -690,7 +692,7 @@
690
692
 
691
693
  /* --- LEFT SIDEBAR --- */
692
694
  .expanded-sidebar {
693
- width: 280px;
695
+ width: 20%;
694
696
  background-color: #ffffff;
695
697
  border-right: 1px solid #e5e7eb;
696
698
  display: flex;
@@ -750,6 +752,7 @@
750
752
  /* Match the Property Tax highlight */
751
753
  color: #ffffff;
752
754
  box-shadow: 0 4px 6px rgba(0, 173, 239, 0.2);
755
+ padding: 6px;
753
756
  }
754
757
 
755
758
  .sidebar-icon-placeholder {
@@ -882,7 +885,7 @@
882
885
 
883
886
  /* --- LEFT SIDEBAR --- */
884
887
  .expanded-sidebar {
885
- width: 280px;
888
+ width: 20%;
886
889
  background-color: #ffffff;
887
890
  display: flex;
888
891
  flex-direction: column;
@@ -1005,8 +1008,10 @@
1005
1008
  }
1006
1009
 
1007
1010
  .content-links-list {
1008
- display: flex;
1009
- flex-direction: column;
1011
+ display: grid;
1012
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
1013
+ gap: 20px;
1014
+ margin-top: 16px;
1010
1015
  }
1011
1016
 
1012
1017
  /* Link Wrapper to handle <a> or <Link> tags */
@@ -1016,53 +1021,314 @@
1016
1021
  display: block;
1017
1022
  }
1018
1023
 
1019
- .content-link-row {
1024
+ .module-link-card {
1020
1025
  display: flex;
1021
1026
  justify-content: space-between;
1022
1027
  align-items: center;
1023
- padding: 18px 10px;
1024
- 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);
1025
1033
  cursor: pointer;
1026
- transition: background-color 0.2s, color 0.2s;
1027
- border-radius: 4px;
1034
+ transition: all 0.3s ease;
1035
+ position: relative;
1036
+ overflow: hidden;
1028
1037
  }
1029
1038
 
1030
- .content-link-row:hover {
1031
- background-color: #f9fafb;
1032
- 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;
1033
1049
  }
1034
1050
 
1035
- .link-label {
1036
- font-size: 0.95rem;
1037
- font-weight: 500;
1038
- 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;
1039
1055
  }
1040
1056
 
1041
- .content-link-row:hover .link-label {
1042
- color: #00adef;
1057
+ .module-link-card:hover::before {
1058
+ opacity: 1;
1043
1059
  }
1044
1060
 
1045
- .link-count {
1046
- font-size: 0.85rem;
1047
- color: #9ca3af;
1048
- margin-left: 6px;
1061
+ .link-card-info {
1062
+ display: flex;
1063
+ gap: 6px;
1049
1064
  }
1050
1065
 
1051
- .link-arrow {
1052
- 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;
1053
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;
1054
1088
  }
1055
1089
 
1056
- .link-arrow svg {
1057
- 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;
1058
1100
  }
1059
1101
 
1060
- .content-link-row:hover .link-arrow svg {
1061
- stroke: #00adef;
1102
+ .module-link-card:hover .link-card-arrow {
1103
+ background-color: #dbeafe;
1104
+ color: #2563eb;
1105
+ transform: translateX(4px);
1062
1106
  }
1063
1107
 
1064
1108
  .no-links-msg {
1065
1109
  color: #9ca3af;
1066
1110
  font-style: italic;
1067
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;
1068
1334
  }
@@ -2,24 +2,29 @@
2
2
  position: fixed;
3
3
  top: 0;
4
4
  width: 100%;
5
- padding: 10px 24px;
5
+ padding: 10px 58px;
6
6
  background: white;
7
7
  box-shadow: rgba(0, 0, 0, 0.24) 0 1px 4px;
8
8
  z-index: 9999999;
9
9
  @apply flex items-center;
10
10
 
11
+ .topbar-content {
12
+ display: flex;
13
+ justify-content: space-between;
14
+ align-items: center;
15
+ width: 100%;
16
+ }
17
+
11
18
  img {
12
19
  display: inline;
13
20
 
14
21
  &.city {
15
- margin-right: 8px;
16
22
  height: 60px;
17
23
  }
18
24
 
19
25
  &.state {
20
26
  height: 50px;
21
27
  width: auto;
22
- object-fit: contain;
23
28
  }
24
29
  }
25
30
 
@@ -30,7 +35,6 @@
30
35
 
31
36
  .right {
32
37
  float: right;
33
- margin-top: 12px;
34
38
  position: relative;
35
39
 
36
40
  svg {
@@ -38,9 +42,9 @@
38
42
  }
39
43
 
40
44
  .user-img-txt {
41
- background: #a82227;
45
+ background: theme(colors.primary.main);
42
46
  padding: 10px 15px;
43
- border-radius: 2px;
47
+ border-radius: 8px;
44
48
  color: white;
45
49
  height: 43px;
46
50
  width: 43px;
@@ -154,4 +158,4 @@ video::-webkit-media-controls-panel {
154
158
 
155
159
  .topbarOptionsClassName {
156
160
  right: -3rem !important;
157
- }
161
+ }
@@ -36,13 +36,23 @@
36
36
  box-shadow: rgba(0, 0, 0, 0.24) 0 1px 4px;
37
37
  z-index: 9999;
38
38
 
39
+ .topbar-content {
40
+ display: flex;
41
+ justify-content: space-between;
42
+ align-items: center;
43
+ width: 100%;
44
+ }
45
+
39
46
  img {
40
47
  display: inline;
41
48
 
42
49
  &.city {
43
- margin-right: 8px;
44
50
  height: 60px;
45
- margin-left: 53px;
51
+ }
52
+
53
+ &.spect-icon {
54
+ width: auto;
55
+ max-height: 50px;
46
56
  }
47
57
 
48
58
  &.state {
@@ -58,14 +68,6 @@
58
68
 
59
69
  .right {
60
70
  float: right;
61
-
62
- .user-img-txt {
63
- background: theme(colors.primary.main);
64
- padding: 10px 15px;
65
- border-radius: 50%;
66
- color: white;
67
- font-weight: 700;
68
- }
69
71
  }
70
72
  }
71
73
 
@@ -259,7 +261,8 @@
259
261
  &.active {
260
262
  border-left: 4px solid theme(colors.primary.main);
261
263
 
262
- &.level-0 {}
264
+ &.level-0 {
265
+ }
263
266
 
264
267
  &.level-1 {
265
268
  border-left: 8.5px solid theme(colors.primary.main);
@@ -269,7 +272,8 @@
269
272
  border-left: 4px solid theme(colors.primary.main);
270
273
  }
271
274
 
272
- &.level-3 {}
275
+ &.level-3 {
276
+ }
273
277
 
274
278
  color: theme(colors.primary.main) !important;
275
279
  border-right: none;
@@ -429,32 +433,32 @@
429
433
  display: flex;
430
434
  justify-content: center;
431
435
  align-items: center;
436
+ padding-left: 30px;
437
+ padding-right: 30px;
432
438
  .header-top-section {
439
+ display: flex;
433
440
  width: 100%;
434
441
  background: linear-gradient(98deg, rgba(110, 192, 221, 0.71) -24.44%, rgba(97, 119, 236, 0.9) 93.53%);
435
442
  padding: 14px;
436
443
  border-radius: 11px;
437
444
 
438
- display: flex;
445
+ justify-content: space-between;
439
446
  align-items: center;
440
- justify-content: center;
441
447
 
442
448
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
443
449
 
444
450
  .title {
445
451
  margin: 0;
446
- font-size: 17px;
447
- font-weight: 500;
448
- color: #fff;
449
- letter-spacing: 0.3px;
450
-
451
- @media (min-width: 768px) {
452
- font-size: 18px;
453
- }
452
+ font-size: 25px;
453
+ font-weight: 700;
454
+ color: #0f172a;
455
+ }
454
456
 
455
- @media (min-width: 1024px) {
456
- font-size: 28px;
457
- }
457
+ .subtitle {
458
+ margin: 0;
459
+ font-size: 20px;
460
+ font-weight: 700;
461
+ color: #0f172a;
458
462
  }
459
463
  }
460
464
 
@@ -511,10 +515,6 @@
511
515
  .employee {
512
516
  .ground-container {
513
517
  /* @apply block; */
514
- display: flex;
515
- flex-wrap: wrap;
516
- gap: 10px;
517
-
518
518
  }
519
519
 
520
520
  .breadcrumb {
@@ -561,7 +561,8 @@
561
561
  justify-content: center;
562
562
  }
563
563
 
564
- .center-container {}
564
+ .center-container {
565
+ }
565
566
  }
566
567
  }
567
568
 
@@ -695,4 +696,4 @@
695
696
  /* TODO fix required NABEEL/ANIL for home screen card */
696
697
  .customEmployeeCard {
697
698
  @apply m-sm !important;
698
- }
699
+ }