Centralize shared WebUI structural primitives
This commit is contained in:
+136
-11
@@ -1046,16 +1046,6 @@
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
.admin-assignment-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.admin-assignment-grid {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.admin-selection-list {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
@@ -1093,7 +1083,6 @@
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.admin-assignment-grid,
|
||||
.admin-permission-groups {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@@ -2986,6 +2975,142 @@
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.selection-list-navigation {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
.selection-list-navigation > .selection-list-item {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 56px;
|
||||
border: 0;
|
||||
padding: 8px 9px;
|
||||
}
|
||||
|
||||
.selection-list-navigation > .selection-list-item:hover:not(:disabled),
|
||||
.selection-list-navigation > .selection-list-item:focus-visible {
|
||||
background: var(--primary-soft);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.selection-list-navigation > .selection-list-item.is-selected {
|
||||
border-color: transparent;
|
||||
background: var(--primary-soft-strong);
|
||||
box-shadow: inset 3px 0 0 var(--accent);
|
||||
}
|
||||
|
||||
.selection-list-item-content {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.selection-list-item-content.has-leading {
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
.selection-list-item-leading {
|
||||
display: grid;
|
||||
color: var(--muted);
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.selection-list-item-copy { min-width: 0; }
|
||||
|
||||
.selection-list-item-copy > strong,
|
||||
.selection-list-item-copy > small {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.selection-list-item-copy > strong {
|
||||
color: var(--text-strong);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.selection-list-item-copy > small {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.count-badge {
|
||||
box-sizing: border-box;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 0 0 auto;
|
||||
min-width: 21px;
|
||||
height: 21px;
|
||||
padding: 0 6px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.count-badge-compact { min-width: 18px; height: 18px; padding-inline: 5px; font-size: 10px; }
|
||||
.count-badge-accent { background: var(--accent); color: var(--on-accent); }
|
||||
.count-badge-neutral { border: var(--border-line); background: var(--surface-subtle); color: var(--text); }
|
||||
.count-badge-danger { background: var(--red); color: var(--on-accent); }
|
||||
|
||||
.definition-palette { min-width: 0; min-height: 0; overflow: hidden; border-right: var(--border-line); background: var(--panel-soft); }
|
||||
.definition-palette-heading-copy { min-width: 0; }
|
||||
.definition-palette-heading-copy > strong,
|
||||
.definition-palette-heading-copy > small { display: block; }
|
||||
.definition-palette-heading-copy > strong { color: var(--text-strong); font-size: 13px; }
|
||||
.definition-palette-heading-copy > small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.definition-palette-items { display: grid; grid-auto-rows: max-content; align-content: start; height: calc(100% - 44px); gap: 4px; overflow-x: hidden; overflow-y: auto; padding: 8px; scrollbar-gutter: stable; }
|
||||
.definition-palette-group { display: grid; grid-auto-rows: max-content; align-content: start; gap: 2px; }
|
||||
.definition-palette-group + .definition-palette-group { margin-top: 6px; padding-top: 8px; border-top: var(--border-line); }
|
||||
.definition-palette-group h3 { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0; padding: 3px 8px; text-transform: uppercase; }
|
||||
.definition-palette-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) 14px; align-items: center; gap: 7px; min-height: 38px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); cursor: grab; font: inherit; font-size: 12px; padding: 7px 8px; text-align: left; }
|
||||
.definition-palette-item:hover:not(:disabled),
|
||||
.definition-palette-item:focus-visible:not(:disabled) { background: var(--primary-soft); color: var(--text-strong); outline: none; }
|
||||
.definition-palette-item:active:not(:disabled) { cursor: grabbing; }
|
||||
.definition-palette-item:disabled { cursor: default; opacity: .42; }
|
||||
.definition-palette-item-icon { display: grid; place-items: center; }
|
||||
.definition-palette-item-add { color: var(--accent); }
|
||||
|
||||
.definition-graph-canvas { position: absolute; inset: 0; }
|
||||
.definition-editor-surface { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--bg); }
|
||||
.definition-graph-canvas .react-flow { background: var(--bg); }
|
||||
.definition-graph-canvas .react-flow__background { color: var(--line-dark); }
|
||||
.definition-graph-canvas .react-flow__controls,
|
||||
.definition-graph-canvas .react-flow__minimap { overflow: hidden; border: var(--border-line); border-radius: var(--radius-sm); background: var(--panel); box-shadow: var(--shadow-xs); }
|
||||
.definition-graph-canvas .react-flow__controls-button { border-bottom: var(--border-line); background: var(--panel); color: var(--text); }
|
||||
.definition-graph-canvas .react-flow__minimap-mask { fill: color-mix(in srgb, var(--bg) 76%, transparent); }
|
||||
.definition-graph-canvas .react-flow__edge-path { stroke: var(--line-dark); stroke-width: 2; }
|
||||
.definition-graph-canvas .react-flow__edge.selected .react-flow__edge-path,
|
||||
.definition-graph-canvas .react-flow__edge:hover .react-flow__edge-path { stroke: var(--accent); stroke-width: 3; }
|
||||
.definition-graph-canvas-empty { position: absolute; inset: 0; pointer-events: none; }
|
||||
.definition-node-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 5px; background: var(--panel-soft); color: var(--text-strong); }
|
||||
.definition-node-handle { width: 13px; height: 13px; border: 3px solid var(--panel); background: var(--line-dark); }
|
||||
.definition-node-handle:hover,
|
||||
.definition-node-handle.connectingto,
|
||||
.definition-node-handle.valid { width: 17px; height: 17px; background: var(--accent); }
|
||||
.floating-status { position: absolute; z-index: 20; right: 12px; bottom: 10px; border: var(--border-line-dark); border-radius: var(--radius-sm); background: var(--panel); box-shadow: var(--shadow-popover); color: var(--text-strong); font-size: 12px; padding: 7px 10px; }
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.definition-palette { border-right: 0; border-bottom: var(--border-line); }
|
||||
.definition-palette-header { display: none; }
|
||||
.definition-palette-items { display: flex; overflow-x: auto; }
|
||||
.definition-palette-group { display: flex; flex: 0 0 auto; }
|
||||
.definition-palette-group + .definition-palette-group { margin-top: 0; padding-top: 0; padding-left: 6px; border-top: 0; border-left: var(--border-line); }
|
||||
.definition-palette-group h3 { display: none; }
|
||||
.definition-palette-item { min-width: 128px; }
|
||||
}
|
||||
|
||||
:where(.selection-list-item) {
|
||||
appearance: none;
|
||||
box-sizing: border-box;
|
||||
|
||||
Reference in New Issue
Block a user