@atolis-hq/corum 0.1.26 → 0.1.28

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/web/style.css CHANGED
@@ -981,3 +981,585 @@ button {
981
981
  font-size: 13px;
982
982
  text-align: center;
983
983
  }
984
+
985
+ /* ── Graph Canvas ─────────────────────────────────── */
986
+
987
+ .graph-section {
988
+ display: flex;
989
+ flex-direction: column;
990
+ flex: 1;
991
+ min-width: 0;
992
+ min-height: 0;
993
+ overflow: hidden;
994
+ }
995
+
996
+ .graph-breadcrumb {
997
+ display: flex;
998
+ align-items: center;
999
+ gap: 4px;
1000
+ padding: 8px 16px;
1001
+ border-bottom: 1px solid var(--rule);
1002
+ font-size: 12px;
1003
+ flex-shrink: 0;
1004
+ background: var(--paper-2);
1005
+ }
1006
+
1007
+ .graph-breadcrumb-item {
1008
+ background: none;
1009
+ border: none;
1010
+ color: var(--accent);
1011
+ cursor: pointer;
1012
+ font: inherit;
1013
+ font-size: 12px;
1014
+ padding: 0;
1015
+ }
1016
+
1017
+ .graph-breadcrumb-item:hover { text-decoration: underline; }
1018
+
1019
+ .graph-breadcrumb-sep {
1020
+ color: var(--ink-4);
1021
+ }
1022
+
1023
+ .graph-breadcrumb-current {
1024
+ color: var(--ink);
1025
+ font-weight: 500;
1026
+ }
1027
+
1028
+ .graph-toolbar {
1029
+ display: flex;
1030
+ align-items: center;
1031
+ flex-wrap: wrap;
1032
+ gap: 6px;
1033
+ padding: 8px 16px;
1034
+ border-bottom: 1px solid var(--rule);
1035
+ flex-shrink: 0;
1036
+ background: var(--paper);
1037
+ }
1038
+
1039
+ .graph-edge-pill {
1040
+ display: inline-flex;
1041
+ align-items: center;
1042
+ padding: 2px 8px;
1043
+ border-radius: 999px;
1044
+ font-size: 11px;
1045
+ font-weight: 600;
1046
+ cursor: pointer;
1047
+ user-select: none;
1048
+ border: 1px solid transparent;
1049
+ transition: opacity 0.15s;
1050
+ }
1051
+
1052
+ .graph-edge-pill.inactive {
1053
+ background: var(--paper-3) !important;
1054
+ color: var(--ink-4) !important;
1055
+ opacity: 0.6;
1056
+ }
1057
+
1058
+ .graph-toolbar-sep {
1059
+ width: 1px;
1060
+ height: 20px;
1061
+ background: var(--rule-2);
1062
+ flex-shrink: 0;
1063
+ }
1064
+
1065
+ .graph-toolbar-btn {
1066
+ padding: 3px 10px;
1067
+ border: 1px solid var(--rule-2);
1068
+ border-radius: 4px;
1069
+ background: var(--paper);
1070
+ color: var(--ink-2);
1071
+ cursor: pointer;
1072
+ font: inherit;
1073
+ font-size: 11px;
1074
+ font-weight: 500;
1075
+ }
1076
+
1077
+ .graph-toolbar-btn:hover { background: var(--paper-2); }
1078
+ .graph-toolbar-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
1079
+
1080
+ .graph-depth-seg {
1081
+ display: flex;
1082
+ gap: 1px;
1083
+ background: var(--rule);
1084
+ border-radius: 4px;
1085
+ overflow: hidden;
1086
+ }
1087
+
1088
+ .graph-depth-item {
1089
+ padding: 3px 8px;
1090
+ background: var(--paper);
1091
+ color: var(--ink-2);
1092
+ cursor: pointer;
1093
+ font: inherit;
1094
+ font-size: 11px;
1095
+ border: none;
1096
+ }
1097
+
1098
+ .graph-depth-item.active {
1099
+ background: var(--accent);
1100
+ color: #fff;
1101
+ font-weight: 600;
1102
+ }
1103
+
1104
+ .graph-focus-search {
1105
+ position: relative;
1106
+ }
1107
+
1108
+ .graph-focus-search-input {
1109
+ padding: 4px 10px;
1110
+ border: 1px solid var(--rule-2);
1111
+ border-radius: 4px;
1112
+ background: var(--paper);
1113
+ color: var(--ink);
1114
+ font: inherit;
1115
+ font-size: 11px;
1116
+ outline: none;
1117
+ width: 180px;
1118
+ }
1119
+
1120
+ .graph-focus-search-input:focus { border-color: var(--accent); }
1121
+
1122
+ .graph-focus-search-dropdown {
1123
+ position: absolute;
1124
+ top: calc(100% + 4px);
1125
+ left: 0;
1126
+ z-index: 100;
1127
+ background: var(--paper);
1128
+ border: 1px solid var(--rule-2);
1129
+ border-radius: 6px;
1130
+ box-shadow: 0 4px 16px rgba(0,0,0,0.12);
1131
+ min-width: 280px;
1132
+ overflow: hidden;
1133
+ }
1134
+
1135
+ .graph-focus-search-item {
1136
+ display: flex;
1137
+ align-items: center;
1138
+ gap: 8px;
1139
+ padding: 7px 12px;
1140
+ cursor: pointer;
1141
+ font-size: 12px;
1142
+ }
1143
+
1144
+ .graph-focus-search-item:hover,
1145
+ .graph-focus-search-item.selected {
1146
+ background: var(--paper-2);
1147
+ }
1148
+
1149
+ .graph-canvas-wrap {
1150
+ flex: 1;
1151
+ min-height: 0;
1152
+ position: relative;
1153
+ }
1154
+
1155
+ .graph-component-card {
1156
+ width: 180px;
1157
+ height: 72px;
1158
+ display: flex;
1159
+ flex-direction: column;
1160
+ justify-content: center;
1161
+ padding: 12px 14px;
1162
+ background: var(--paper);
1163
+ border: 1.5px solid var(--rule-2);
1164
+ border-radius: 8px;
1165
+ cursor: pointer;
1166
+ box-shadow: 0 1px 4px rgba(0,0,0,0.06);
1167
+ transition: box-shadow 0.15s, border-color 0.15s;
1168
+ }
1169
+
1170
+ .graph-component-card:hover {
1171
+ border-color: var(--accent);
1172
+ box-shadow: 0 2px 8px rgba(0,0,0,0.1);
1173
+ }
1174
+
1175
+ .graph-component-card-name {
1176
+ font-size: 13px;
1177
+ font-weight: 600;
1178
+ color: var(--ink);
1179
+ margin-bottom: 3px;
1180
+ }
1181
+
1182
+ /* ── Graph view ── */
1183
+
1184
+ .graph-section {
1185
+ flex: 1;
1186
+ display: flex;
1187
+ flex-direction: column;
1188
+ overflow: hidden;
1189
+ min-height: 0;
1190
+ }
1191
+
1192
+ .graph-breadcrumb {
1193
+ display: flex;
1194
+ align-items: center;
1195
+ gap: 6px;
1196
+ padding: 8px 16px;
1197
+ font-size: 12px;
1198
+ color: var(--ink-3);
1199
+ background: var(--paper);
1200
+ border-bottom: 1px solid var(--rule);
1201
+ flex-shrink: 0;
1202
+ }
1203
+
1204
+ .graph-breadcrumb-item {
1205
+ color: var(--ink-3);
1206
+ cursor: pointer;
1207
+ background: none;
1208
+ border: none;
1209
+ font: inherit;
1210
+ font-size: 12px;
1211
+ padding: 0;
1212
+ }
1213
+
1214
+ .graph-breadcrumb-item:hover { color: var(--ink); }
1215
+
1216
+ .graph-breadcrumb-sep { color: var(--ink-4); }
1217
+
1218
+ .graph-breadcrumb-current { color: var(--ink); font-weight: 600; }
1219
+
1220
+ .graph-toolbar {
1221
+ display: flex;
1222
+ align-items: center;
1223
+ gap: 6px;
1224
+ padding: 8px 16px;
1225
+ background: var(--paper);
1226
+ border-bottom: 1px solid var(--rule);
1227
+ flex-shrink: 0;
1228
+ flex-wrap: wrap;
1229
+ }
1230
+
1231
+ .graph-canvas-wrap {
1232
+ flex: 1;
1233
+ position: relative;
1234
+ min-height: 0;
1235
+ }
1236
+
1237
+ /* Node cards (Levels 2 & 3) */
1238
+ .graph-node-card {
1239
+ background: var(--paper);
1240
+ border: 1.5px solid var(--rule-2);
1241
+ border-radius: var(--radius);
1242
+ width: 210px;
1243
+ font-size: 12px;
1244
+ cursor: pointer;
1245
+ overflow: visible;
1246
+ position: relative;
1247
+ transition: box-shadow 0.12s;
1248
+ }
1249
+
1250
+ .graph-node-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
1251
+
1252
+ .graph-node-card-bar {
1253
+ width: 3px;
1254
+ position: absolute;
1255
+ left: 0;
1256
+ top: 0;
1257
+ bottom: 0;
1258
+ border-radius: var(--radius) 0 0 var(--radius);
1259
+ }
1260
+
1261
+ .graph-node-card-header {
1262
+ display: flex;
1263
+ align-items: center;
1264
+ gap: 5px;
1265
+ padding: 6px 8px 4px 10px;
1266
+ }
1267
+
1268
+ .graph-node-card-body { padding: 2px 8px 4px 10px; }
1269
+
1270
+ .graph-node-card-name {
1271
+ font-weight: 600;
1272
+ font-size: 13px;
1273
+ color: var(--ink);
1274
+ white-space: nowrap;
1275
+ overflow: hidden;
1276
+ text-overflow: ellipsis;
1277
+ max-width: 180px;
1278
+ }
1279
+
1280
+ .graph-node-card-component {
1281
+ font-size: 10px;
1282
+ color: var(--ink-3);
1283
+ margin-top: 1px;
1284
+ white-space: nowrap;
1285
+ overflow: hidden;
1286
+ text-overflow: ellipsis;
1287
+ }
1288
+
1289
+ .graph-node-card-footer {
1290
+ display: flex;
1291
+ align-items: center;
1292
+ justify-content: space-between;
1293
+ padding: 3px 8px 5px 10px;
1294
+ border-top: 1px solid var(--rule);
1295
+ margin-top: 3px;
1296
+ }
1297
+
1298
+ .graph-node-card-link {
1299
+ color: var(--ink-4);
1300
+ cursor: pointer;
1301
+ font-size: 11px;
1302
+ background: none;
1303
+ border: none;
1304
+ padding: 0;
1305
+ line-height: 1;
1306
+ display: flex;
1307
+ align-items: center;
1308
+ }
1309
+
1310
+ .graph-node-card-link:hover { color: var(--ink-2); }
1311
+
1312
+ /* Component cards (Level 1) */
1313
+ .graph-component-card {
1314
+ background: var(--paper);
1315
+ border: 1.5px solid var(--rule-2);
1316
+ border-radius: var(--radius);
1317
+ width: 180px;
1318
+ padding: 14px 16px;
1319
+ cursor: pointer;
1320
+ transition: box-shadow 0.12s, border-color 0.12s;
1321
+ position: relative;
1322
+ }
1323
+
1324
+ .graph-component-card:hover {
1325
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
1326
+ border-color: var(--ink-4);
1327
+ }
1328
+
1329
+ .graph-component-card-name { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
1330
+
1331
+ .graph-component-card-count { font-size: 11px; color: var(--ink-3); }
1332
+
1333
+ /* Edge type toggle pills */
1334
+ .graph-edge-pill {
1335
+ display: inline-flex;
1336
+ align-items: center;
1337
+ padding: 3px 9px;
1338
+ border-radius: 999px;
1339
+ font-size: 11px;
1340
+ font-weight: 500;
1341
+ cursor: pointer;
1342
+ border: 1.5px solid transparent;
1343
+ user-select: none;
1344
+ transition: opacity 0.1s;
1345
+ white-space: nowrap;
1346
+ }
1347
+
1348
+ .graph-edge-pill.inactive {
1349
+ background: transparent !important;
1350
+ color: var(--ink-3) !important;
1351
+ border-color: var(--rule-2) !important;
1352
+ }
1353
+
1354
+ .graph-toolbar-sep {
1355
+ width: 1px;
1356
+ height: 20px;
1357
+ background: var(--rule);
1358
+ flex-shrink: 0;
1359
+ }
1360
+
1361
+ /* Depth segmented control */
1362
+ .graph-depth-seg {
1363
+ display: flex;
1364
+ border: 1px solid var(--rule-2);
1365
+ border-radius: var(--radius);
1366
+ overflow: hidden;
1367
+ }
1368
+
1369
+ .graph-depth-item {
1370
+ padding: 3px 10px;
1371
+ font-size: 11px;
1372
+ font-weight: 500;
1373
+ cursor: pointer;
1374
+ background: none;
1375
+ border: none;
1376
+ border-right: 1px solid var(--rule-2);
1377
+ color: var(--ink-3);
1378
+ font: inherit;
1379
+ }
1380
+
1381
+ .graph-depth-item:last-child { border-right: none; }
1382
+ .graph-depth-item.active { background: var(--paper-3); color: var(--ink); }
1383
+
1384
+ /* Toolbar buttons */
1385
+ .graph-toolbar-btn {
1386
+ padding: 3px 10px;
1387
+ font-size: 11px;
1388
+ font-weight: 500;
1389
+ cursor: pointer;
1390
+ background: none;
1391
+ border: 1px solid var(--rule-2);
1392
+ border-radius: var(--radius);
1393
+ color: var(--ink-3);
1394
+ font: inherit;
1395
+ }
1396
+
1397
+ .graph-toolbar-btn:hover { color: var(--ink); }
1398
+ .graph-toolbar-btn.active { background: var(--paper-3); color: var(--ink); }
1399
+
1400
+ /* Focus node search */
1401
+ .graph-focus-search { display: flex; align-items: center; gap: 6px; position: relative; }
1402
+
1403
+ .graph-focus-search-input {
1404
+ font: inherit;
1405
+ font-size: 12px;
1406
+ padding: 3px 8px;
1407
+ border: 1px solid var(--rule-2);
1408
+ border-radius: var(--radius);
1409
+ background: var(--paper);
1410
+ color: var(--ink);
1411
+ width: 180px;
1412
+ }
1413
+
1414
+ .graph-focus-search-input:focus { outline: none; border-color: var(--accent); }
1415
+
1416
+ .graph-focus-search-dropdown {
1417
+ position: absolute;
1418
+ top: calc(100% + 4px);
1419
+ left: 0;
1420
+ width: 280px;
1421
+ background: var(--paper);
1422
+ border: 1px solid var(--rule-2);
1423
+ border-radius: var(--radius);
1424
+ box-shadow: 0 4px 16px rgba(0,0,0,0.12);
1425
+ z-index: 100;
1426
+ overflow: hidden;
1427
+ }
1428
+
1429
+ .graph-focus-search-item {
1430
+ display: flex;
1431
+ align-items: center;
1432
+ padding: 7px 10px;
1433
+ cursor: pointer;
1434
+ font-size: 12px;
1435
+ gap: 6px;
1436
+ }
1437
+
1438
+ .graph-focus-search-item:hover,
1439
+ .graph-focus-search-item.selected { background: var(--paper-2); }
1440
+
1441
+ /* Graph nav link (used in EdgePanel and node header) */
1442
+ .graph-nav-link {
1443
+ display: inline-flex;
1444
+ align-items: center;
1445
+ gap: 4px;
1446
+ color: var(--ink-4);
1447
+ cursor: pointer;
1448
+ background: none;
1449
+ border: none;
1450
+ padding: 0;
1451
+ font: inherit;
1452
+ font-size: 11px;
1453
+ line-height: 1;
1454
+ }
1455
+
1456
+ .graph-nav-link:hover { color: var(--ink-2); }
1457
+
1458
+ /* ── Dashboard ────────────────────────────────────── */
1459
+
1460
+ .dashboard-hero {
1461
+ display: flex;
1462
+ gap: 16px;
1463
+ margin-bottom: 24px;
1464
+ }
1465
+
1466
+ .hero-card {
1467
+ flex: 1;
1468
+ background: var(--paper-2);
1469
+ border: 1px solid var(--rule);
1470
+ border-radius: var(--radius);
1471
+ padding: 20px 24px;
1472
+ }
1473
+
1474
+ .hero-number {
1475
+ font-size: 32px;
1476
+ font-weight: 700;
1477
+ line-height: 1;
1478
+ color: var(--ink);
1479
+ margin-bottom: 6px;
1480
+ font-family: 'Space Grotesk', system-ui, sans-serif;
1481
+ }
1482
+
1483
+ .hero-label {
1484
+ font-size: 11px;
1485
+ font-weight: 600;
1486
+ text-transform: uppercase;
1487
+ letter-spacing: 0.1em;
1488
+ color: var(--ink-3);
1489
+ }
1490
+
1491
+ .branch-diff-callout {
1492
+ display: flex;
1493
+ align-items: center;
1494
+ gap: 12px;
1495
+ padding: 10px 16px;
1496
+ background: var(--paper-2);
1497
+ border: 1px solid var(--rule);
1498
+ border-radius: var(--radius);
1499
+ margin-bottom: 24px;
1500
+ font-size: 12px;
1501
+ }
1502
+
1503
+ .branch-diff-branch {
1504
+ font-family: 'JetBrains Mono', ui-monospace, monospace;
1505
+ font-size: 11px;
1506
+ color: var(--ink-2);
1507
+ }
1508
+
1509
+ .branch-diff-label {
1510
+ color: var(--ink-3);
1511
+ font-size: 11px;
1512
+ }
1513
+
1514
+ .branch-diff-added {
1515
+ color: var(--ok);
1516
+ font-weight: 600;
1517
+ }
1518
+
1519
+ .branch-diff-removed {
1520
+ color: var(--warn);
1521
+ font-weight: 600;
1522
+ }
1523
+
1524
+ .dashboard-grid {
1525
+ display: grid;
1526
+ grid-template-columns: 1fr 1fr;
1527
+ gap: 16px;
1528
+ }
1529
+
1530
+ .dashboard-panel {
1531
+ overflow: hidden;
1532
+ border: 1px solid var(--rule-2);
1533
+ border-radius: 8px;
1534
+ background: var(--paper);
1535
+ }
1536
+
1537
+ .stat-row {
1538
+ display: flex;
1539
+ align-items: center;
1540
+ justify-content: space-between;
1541
+ gap: 8px;
1542
+ padding: 4px 0;
1543
+ }
1544
+
1545
+ .stat-row-label {
1546
+ display: flex;
1547
+ align-items: center;
1548
+ gap: 8px;
1549
+ color: var(--ink-2);
1550
+ font-size: 12px;
1551
+ }
1552
+
1553
+ .stat-row-value {
1554
+ font-weight: 600;
1555
+ font-size: 13px;
1556
+ color: var(--ink);
1557
+ flex-shrink: 0;
1558
+ }
1559
+
1560
+ .stat-colour-dot {
1561
+ width: 8px;
1562
+ height: 8px;
1563
+ border-radius: 50%;
1564
+ flex-shrink: 0;
1565
+ }