@djb25/digit-ui-css 1.0.7 → 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.7",
3
+ "version": "1.0.8",
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
  }