@atolis-hq/corum 0.1.25 → 0.1.27
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/dist/src/web/server.js +41 -0
- package/package.json +1 -1
- package/web/app.jsx +69 -4
- package/web/graph-utils.js +74 -0
- package/web/graph-utils.test.js +63 -0
- package/web/graph.jsx +441 -0
- package/web/index.html +6 -0
- package/web/package.json +1 -0
- package/web/router.js +1 -1
- package/web/search-utils.test.js +61 -0
- package/web/search.jsx +111 -0
- package/web/style.css +613 -0
package/web/style.css
CHANGED
|
@@ -841,3 +841,616 @@ button {
|
|
|
841
841
|
border-radius: 2px;
|
|
842
842
|
flex-shrink: 0;
|
|
843
843
|
}
|
|
844
|
+
|
|
845
|
+
/* ── Search ──────────────────────────────────────── */
|
|
846
|
+
|
|
847
|
+
.topbar-search-wrap {
|
|
848
|
+
margin-left: auto;
|
|
849
|
+
position: relative;
|
|
850
|
+
display: flex;
|
|
851
|
+
align-items: center;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.topbar-search-icon {
|
|
855
|
+
position: absolute;
|
|
856
|
+
left: 10px;
|
|
857
|
+
color: rgba(255, 255, 255, 0.65);
|
|
858
|
+
pointer-events: none;
|
|
859
|
+
font-size: 11px;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.topbar-search {
|
|
863
|
+
width: 220px;
|
|
864
|
+
padding: 5px 36px 5px 28px;
|
|
865
|
+
background: rgba(255, 255, 255, 0.18);
|
|
866
|
+
border: 1px solid rgba(255, 255, 255, 0.28);
|
|
867
|
+
border-radius: var(--radius);
|
|
868
|
+
color: #fff;
|
|
869
|
+
font: inherit;
|
|
870
|
+
font-size: 12px;
|
|
871
|
+
outline: none;
|
|
872
|
+
cursor: pointer;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
.topbar-search::placeholder {
|
|
876
|
+
color: rgba(255, 255, 255, 0.6);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
.topbar-search:hover {
|
|
880
|
+
background: rgba(255, 255, 255, 0.22);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.topbar-search-hint {
|
|
884
|
+
position: absolute;
|
|
885
|
+
right: 8px;
|
|
886
|
+
color: rgba(255, 255, 255, 0.5);
|
|
887
|
+
font-size: 11px;
|
|
888
|
+
pointer-events: none;
|
|
889
|
+
user-select: none;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.search-backdrop {
|
|
893
|
+
position: fixed;
|
|
894
|
+
inset: 0;
|
|
895
|
+
background: rgba(0, 0, 0, 0.4);
|
|
896
|
+
z-index: 1000;
|
|
897
|
+
animation: search-fade-in 0.12s ease;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
@keyframes search-fade-in {
|
|
901
|
+
from { opacity: 0; }
|
|
902
|
+
to { opacity: 1; }
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
.search-modal {
|
|
906
|
+
position: absolute;
|
|
907
|
+
top: 15%;
|
|
908
|
+
left: 50%;
|
|
909
|
+
transform: translateX(-50%);
|
|
910
|
+
width: 560px;
|
|
911
|
+
max-width: calc(100vw - 40px);
|
|
912
|
+
background: var(--paper);
|
|
913
|
+
border-radius: 10px;
|
|
914
|
+
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
915
|
+
overflow: hidden;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.search-modal-input-wrap {
|
|
919
|
+
display: flex;
|
|
920
|
+
align-items: center;
|
|
921
|
+
gap: 10px;
|
|
922
|
+
padding: 14px 16px;
|
|
923
|
+
border-bottom: 1px solid var(--rule);
|
|
924
|
+
color: var(--ink-3);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.search-modal-input {
|
|
928
|
+
flex: 1;
|
|
929
|
+
border: none;
|
|
930
|
+
outline: none;
|
|
931
|
+
background: transparent;
|
|
932
|
+
font: inherit;
|
|
933
|
+
font-size: 15px;
|
|
934
|
+
color: var(--ink);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
.search-modal-input::placeholder {
|
|
938
|
+
color: var(--ink-4);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.search-results {
|
|
942
|
+
padding: 4px;
|
|
943
|
+
max-height: 400px;
|
|
944
|
+
overflow-y: auto;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.search-result-row {
|
|
948
|
+
display: flex;
|
|
949
|
+
align-items: center;
|
|
950
|
+
gap: 8px;
|
|
951
|
+
padding: 7px 10px;
|
|
952
|
+
border-radius: 6px;
|
|
953
|
+
cursor: pointer;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.search-result-row:hover,
|
|
957
|
+
.search-result-row.selected {
|
|
958
|
+
background: var(--paper-2);
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.search-result-name {
|
|
962
|
+
flex: 1;
|
|
963
|
+
font-size: 13px;
|
|
964
|
+
font-weight: 500;
|
|
965
|
+
color: var(--ink);
|
|
966
|
+
overflow: hidden;
|
|
967
|
+
text-overflow: ellipsis;
|
|
968
|
+
white-space: nowrap;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.search-result-component {
|
|
972
|
+
font-size: 11px;
|
|
973
|
+
color: var(--ink-4);
|
|
974
|
+
font-family: "JetBrains Mono", ui-monospace, monospace;
|
|
975
|
+
flex-shrink: 0;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.search-no-results {
|
|
979
|
+
padding: 20px 16px;
|
|
980
|
+
color: var(--ink-3);
|
|
981
|
+
font-size: 13px;
|
|
982
|
+
text-align: center;
|
|
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); }
|