@weasel-js/prefs-editor 0.0.0-stage → 2.0.0
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/LICENSE +21 -0
- package/README.md +29 -2
- package/dist/PrefConditionEditor/ConditionClipboard.d.ts +12 -0
- package/dist/PrefConditionEditor/ConditionClipboard.d.ts.map +1 -0
- package/dist/PrefConditionEditor/ConditionGroupRows.d.ts +20 -0
- package/dist/PrefConditionEditor/ConditionGroupRows.d.ts.map +1 -0
- package/dist/PrefConditionEditor/ConditionRow.d.ts +37 -0
- package/dist/PrefConditionEditor/ConditionRow.d.ts.map +1 -0
- package/dist/PrefConditionEditor/PrefConditionEditor.d.ts +52 -0
- package/dist/PrefConditionEditor/PrefConditionEditor.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/ActionList.d.ts +19 -0
- package/dist/PrefSchemaEditor/ActionList.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/AddNodeDialog.d.ts +23 -0
- package/dist/PrefSchemaEditor/AddNodeDialog.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/AssetEditor.d.ts +49 -0
- package/dist/PrefSchemaEditor/AssetEditor.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/AssetList.d.ts +20 -0
- package/dist/PrefSchemaEditor/AssetList.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/AttributesPane.d.ts +34 -0
- package/dist/PrefSchemaEditor/AttributesPane.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/BundlePreview.d.ts +7 -0
- package/dist/PrefSchemaEditor/BundlePreview.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/EditorBar.d.ts +20 -0
- package/dist/PrefSchemaEditor/EditorBar.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/EditorNotice.d.ts +12 -0
- package/dist/PrefSchemaEditor/EditorNotice.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/ExportPanel.d.ts +17 -0
- package/dist/PrefSchemaEditor/ExportPanel.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/IconAttrField.d.ts +11 -0
- package/dist/PrefSchemaEditor/IconAttrField.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/IconPicker.d.ts +8 -0
- package/dist/PrefSchemaEditor/IconPicker.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/IdentityForm.d.ts +10 -0
- package/dist/PrefSchemaEditor/IdentityForm.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/NodeGhost.d.ts +30 -0
- package/dist/PrefSchemaEditor/NodeGhost.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/NumberText.d.ts +12 -0
- package/dist/PrefSchemaEditor/NumberText.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/Palette.d.ts +49 -0
- package/dist/PrefSchemaEditor/Palette.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/PaneHeader.d.ts +18 -0
- package/dist/PrefSchemaEditor/PaneHeader.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/PartsList.d.ts +25 -0
- package/dist/PrefSchemaEditor/PartsList.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/PrefSchemaEditor.d.ts +81 -0
- package/dist/PrefSchemaEditor/PrefSchemaEditor.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/PreviewPane.d.ts +35 -0
- package/dist/PrefSchemaEditor/PreviewPane.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/SettingsTree.d.ts +20 -0
- package/dist/PrefSchemaEditor/SettingsTree.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/Shelf.d.ts +26 -0
- package/dist/PrefSchemaEditor/Shelf.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/StoredArea.d.ts +13 -0
- package/dist/PrefSchemaEditor/StoredArea.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/StructurePane.d.ts +85 -0
- package/dist/PrefSchemaEditor/StructurePane.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/StructureTools.d.ts +19 -0
- package/dist/PrefSchemaEditor/StructureTools.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/UnitAttr.d.ts +10 -0
- package/dist/PrefSchemaEditor/UnitAttr.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/UnplacedTree.d.ts +29 -0
- package/dist/PrefSchemaEditor/UnplacedTree.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/aliasChoices.d.ts +6 -0
- package/dist/PrefSchemaEditor/aliasChoices.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/assetEdits.d.ts +37 -0
- package/dist/PrefSchemaEditor/assetEdits.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/attrRenderers.d.ts +3 -0
- package/dist/PrefSchemaEditor/attrRenderers.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/attributeForm.d.ts +39 -0
- package/dist/PrefSchemaEditor/attributeForm.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/attributeKey.d.ts +13 -0
- package/dist/PrefSchemaEditor/attributeKey.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/attributeRenderers.d.ts +20 -0
- package/dist/PrefSchemaEditor/attributeRenderers.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/autoValueRenderer.d.ts +6 -0
- package/dist/PrefSchemaEditor/autoValueRenderer.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/defaults.d.ts +7 -0
- package/dist/PrefSchemaEditor/defaults.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/editorActions.d.ts +13 -0
- package/dist/PrefSchemaEditor/editorActions.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/editorPrefs.d.ts +108 -0
- package/dist/PrefSchemaEditor/editorPrefs.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/heirAfter.d.ts +6 -0
- package/dist/PrefSchemaEditor/heirAfter.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/iconPickerModel.d.ts +20 -0
- package/dist/PrefSchemaEditor/iconPickerModel.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/nodeIcon.d.ts +14 -0
- package/dist/PrefSchemaEditor/nodeIcon.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/paneWidths.d.ts +37 -0
- package/dist/PrefSchemaEditor/paneWidths.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/panelPaths.d.ts +13 -0
- package/dist/PrefSchemaEditor/panelPaths.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/previewDrop.d.ts +32 -0
- package/dist/PrefSchemaEditor/previewDrop.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/rowSearch.d.ts +12 -0
- package/dist/PrefSchemaEditor/rowSearch.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/structureRows.d.ts +11 -0
- package/dist/PrefSchemaEditor/structureRows.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/treeDropRules.d.ts +11 -0
- package/dist/PrefSchemaEditor/treeDropRules.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useActionCatalog.d.ts +40 -0
- package/dist/PrefSchemaEditor/useActionCatalog.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useAssetChanges.d.ts +37 -0
- package/dist/PrefSchemaEditor/useAssetChanges.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useAssetView.d.ts +25 -0
- package/dist/PrefSchemaEditor/useAssetView.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useBundleView.d.ts +22 -0
- package/dist/PrefSchemaEditor/useBundleView.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useDocument.d.ts +40 -0
- package/dist/PrefSchemaEditor/useDocument.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useEditorSelection.d.ts +27 -0
- package/dist/PrefSchemaEditor/useEditorSelection.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useHeldPlace.d.ts +11 -0
- package/dist/PrefSchemaEditor/useHeldPlace.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useNodeAdder.d.ts +29 -0
- package/dist/PrefSchemaEditor/useNodeAdder.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/usePaletteDrop.d.ts +25 -0
- package/dist/PrefSchemaEditor/usePaletteDrop.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/usePreviewDrag.d.ts +35 -0
- package/dist/PrefSchemaEditor/usePreviewDrag.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/usePreviewDropZone.d.ts +29 -0
- package/dist/PrefSchemaEditor/usePreviewDropZone.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useRowMarks.d.ts +23 -0
- package/dist/PrefSchemaEditor/useRowMarks.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useSelectedNodes.d.ts +8 -0
- package/dist/PrefSchemaEditor/useSelectedNodes.d.ts.map +1 -0
- package/dist/PrefSchemaEditor/useTreeDragOut.d.ts +25 -0
- package/dist/PrefSchemaEditor/useTreeDragOut.d.ts.map +1 -0
- package/dist/icons.gen.d.ts +3 -0
- package/dist/icons.gen.d.ts.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5445 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +615 -0
- package/package.json +70 -4
package/dist/style.css
ADDED
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
/* Numeric text: equal-width digits in the UI face. This is the one definition —
|
|
2
|
+
* compose it, mix it into Less, or put its class on the element; never restate
|
|
3
|
+
* the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {
|
|
4
|
+
font-family: var(--wzl-font-numeric);
|
|
5
|
+
font-variant-numeric: tabular-nums;
|
|
6
|
+
}
|
|
7
|
+
._options_ba5d4a { display: grid; gap: var(--wzl-space-2); }
|
|
8
|
+
._pairRow_ba5d4a { display: grid; grid-template-columns: 1fr auto; gap: var(--wzl-space-2); align-items: center; }
|
|
9
|
+
._unitRow_ba5d4a { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wzl-space-2); align-items: center; }
|
|
10
|
+
._acceptRow_ba5d4a { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--wzl-space-2); align-items: center; }
|
|
11
|
+
._optionHeads_ba5d4a { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }
|
|
12
|
+
/* Holds the remove button's column open, so the heads sit over the fields. */
|
|
13
|
+
._optionHeadSpacer_ba5d4a { inline-size: var(--wzl-icon-button-size); }
|
|
14
|
+
/* The stored value is code and the label is prose; the faces say which is which on every row. */
|
|
15
|
+
/* A field holding what the code will spell: a key, an option's stored value, a tag, a glyph's name. */
|
|
16
|
+
._symbol_ba5d4a input { font-family: var(--wzl-font-mono); }
|
|
17
|
+
/* Derived from the keys above it, so it is text to read and copy, not a field. */
|
|
18
|
+
._pathText_ba5d4a { overflow-wrap: anywhere; font-size: var(--wzl-font-size-sm); color: var(--wzl-fg-muted); user-select: text; -webkit-user-select: text; }
|
|
19
|
+
._number_ba5d4a { }
|
|
20
|
+
._number_ba5d4a input { text-align: right; }
|
|
21
|
+
/* A whole surface a host may mount anywhere, so it brings its face rather than inheriting the page's. */
|
|
22
|
+
._editor_ba5d4a {
|
|
23
|
+
font-family: var(--wzl-font-ui);
|
|
24
|
+
color: var(--wzl-fg);
|
|
25
|
+
display: grid;
|
|
26
|
+
grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto minmax(320px, 1fr);
|
|
27
|
+
grid-template-rows: auto minmax(0, 1fr) auto auto;
|
|
28
|
+
gap: var(--wzl-space-3) var(--wzl-space-2);
|
|
29
|
+
min-height: 0;
|
|
30
|
+
height: 100%;
|
|
31
|
+
}
|
|
32
|
+
/* Across the top of every pane: what acts on the schema as a whole. */
|
|
33
|
+
._bar_ba5d4a {
|
|
34
|
+
grid-column: 1 / -1;
|
|
35
|
+
display: grid;
|
|
36
|
+
/* Equal sides, so the tools sit at the bar's middle whatever either side holds. */
|
|
37
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: var(--wzl-space-2);
|
|
40
|
+
padding-block-end: var(--wzl-space-2);
|
|
41
|
+
border-block-end: 1px solid var(--wzl-border);
|
|
42
|
+
}
|
|
43
|
+
._barLead_ba5d4a,
|
|
44
|
+
._barTools_ba5d4a,
|
|
45
|
+
._barEnd_ba5d4a { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }
|
|
46
|
+
._barEnd_ba5d4a { justify-content: flex-end; }
|
|
47
|
+
._treeFilter_ba5d4a { margin-block-end: var(--wzl-space-2); }
|
|
48
|
+
._middle_ba5d4a { display: grid; align-content: start; min-height: 0; overflow: auto; }
|
|
49
|
+
._pane_ba5d4a { min-height: 0; overflow: auto; }
|
|
50
|
+
/* The structure runs the editor's whole height under the bar, and everything else sits in what is left beside it. */
|
|
51
|
+
._structurePane_ba5d4a { grid-column: 1; grid-row: 2 / -1; display: flex; flex-direction: column; overflow: hidden; }
|
|
52
|
+
/* One edge for the structure's text: a pane's title, the filter's text, and a top-level leaf's name start where a
|
|
53
|
+
group's name does, past the 16px glyph that folds it and the gap after. A leaf's label takes one more step. */
|
|
54
|
+
._structurePane_ba5d4a { --structure-text-inset: calc(16px + var(--wzl-space-3)); --wzl-tree-root-leaf-indent: calc(var(--structure-text-inset) - var(--wzl-space-1)); }
|
|
55
|
+
._structurePane_ba5d4a ._paneTitle_ba5d4a { padding-inline-start: var(--structure-text-inset); }
|
|
56
|
+
/* Less the inset the tree gives what it draws when it has no rows. */
|
|
57
|
+
._structurePane_ba5d4a ._storedEmpty_ba5d4a { padding-inline-start: calc(var(--structure-text-inset) - var(--wzl-space-4)); }
|
|
58
|
+
/* Less the field's own 1px border. */
|
|
59
|
+
._structurePane_ba5d4a ._treeFilter_ba5d4a { --wzl-field-pad-x: calc(var(--structure-text-inset) - 1px); }
|
|
60
|
+
._structureHandle_ba5d4a { grid-column: 2; grid-row: 2 / -1; }
|
|
61
|
+
._listed_ba5d4a {
|
|
62
|
+
grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto
|
|
63
|
+
minmax(320px, 1fr) auto minmax(var(--aside-min), var(--aside-w));
|
|
64
|
+
}
|
|
65
|
+
/* The sidebar mirrors the structure: the editor's whole height under the bar, at its other edge. */
|
|
66
|
+
._aside_ba5d4a { grid-column: 7; grid-row: 2 / -1; }
|
|
67
|
+
._asideHandle_ba5d4a { grid-column: 6; grid-row: 2 / -1; }
|
|
68
|
+
/* The tree reads at the size of the fields in the pane beside it. */
|
|
69
|
+
._treeArea_ba5d4a, ._storedArea_ba5d4a, ._shelfPane_ba5d4a { min-height: 0; --wzl-tree-font-size: var(--wzl-font-size); --wzl-tree-leading-size: 16px; }
|
|
70
|
+
._treeArea_ba5d4a, ._listBody_ba5d4a { overflow: auto; }
|
|
71
|
+
/* A titled list: the header keeps its place and the rows scroll under it, as the structure's do. */
|
|
72
|
+
._listPane_ba5d4a { display: flex; flex-direction: column; overflow: hidden; }
|
|
73
|
+
._listBody_ba5d4a { flex: 1; min-height: 0; }
|
|
74
|
+
._treeArea_ba5d4a { flex: 1; }
|
|
75
|
+
/* A setting starts its name where its group's name starts, past the group's glyph. */
|
|
76
|
+
._treeArea_ba5d4a, ._settingsTree_ba5d4a { --wzl-tree-leaf-indent: var(--wzl-space-2); }
|
|
77
|
+
/* A group's glyph folds it, and says it is open. */
|
|
78
|
+
:is(._treeArea_ba5d4a, ._storedArea_ba5d4a, ._shelfPane_ba5d4a) [data-tree-twisty][data-open] { color: var(--wzl-secondary-fg); }
|
|
79
|
+
/* Padded all the time, so the outline a drop draws inside its edge has room and nothing moves when it appears. */
|
|
80
|
+
._storedArea_ba5d4a { flex: 0 0 var(--stored-h); box-sizing: border-box; padding-block: var(--wzl-space-2); }
|
|
81
|
+
._storedArea_ba5d4a[data-drop] { outline: 2px solid var(--wzl-accent); outline-offset: -2px; }
|
|
82
|
+
._storedEmpty_ba5d4a { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }
|
|
83
|
+
._previewPane_ba5d4a { display: flex; flex-direction: column; overflow: hidden; }
|
|
84
|
+
/* What the asset draws, centered in the workspace around it. `safe` keeps an overflowing preview's start in view. */
|
|
85
|
+
._previewStage_ba5d4a {
|
|
86
|
+
background: var(--wzl-workspace);
|
|
87
|
+
flex: 1;
|
|
88
|
+
min-height: 0;
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: flex-start;
|
|
91
|
+
justify-content: safe center;
|
|
92
|
+
padding: 24px;
|
|
93
|
+
overflow: auto;
|
|
94
|
+
}
|
|
95
|
+
/* Through a drop: where centering last put it (`useHeldPlace`), measured from the stage's edge. */
|
|
96
|
+
._previewStage_ba5d4a[data-held] { justify-content: flex-start; padding: 0; }
|
|
97
|
+
._previewStage_ba5d4a[data-held] > :first-child { margin-inline-start: var(--held-x); margin-block-start: var(--held-y); }
|
|
98
|
+
/* The dialog at a width the reader drags, to see the form at the sizes an app might give it. */
|
|
99
|
+
._previewDialog_ba5d4a { flex: 0 1 var(--preview-w); min-width: 0; min-height: 0; }
|
|
100
|
+
/* A host's own drawing of the asset, at whatever size it takes. */
|
|
101
|
+
._previewHosted_ba5d4a { flex: 1; min-height: 0; overflow: auto; padding: var(--wzl-space-3); }
|
|
102
|
+
/* A node's properties as a sidebar would hold them, raised off the workspace as the dialog is. */
|
|
103
|
+
._previewPanel_ba5d4a {
|
|
104
|
+
flex: none;
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
inline-size: min(360px, 100%);
|
|
107
|
+
max-block-size: 100%;
|
|
108
|
+
overflow: auto;
|
|
109
|
+
padding-inline: var(--wzl-space-4);
|
|
110
|
+
border-radius: var(--wzl-radius-md);
|
|
111
|
+
box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));
|
|
112
|
+
}
|
|
113
|
+
/* A bar is as wide or as tall as what it holds, magnified as the reader sets it. */
|
|
114
|
+
._previewBar_ba5d4a { flex: none; zoom: var(--preview-zoom, 1); }
|
|
115
|
+
._zoom_ba5d4a { display: flex; align-items: center; gap: var(--wzl-space-2); inline-size: 160px; }
|
|
116
|
+
/* Sized for its widest figure, 200%, whose % is wider than a digit, so the range beside it holds still. */
|
|
117
|
+
._zoomReadout_ba5d4a {
|
|
118
|
+
flex: none;
|
|
119
|
+
min-inline-size: 5ch;
|
|
120
|
+
text-align: end;
|
|
121
|
+
font-size: var(--wzl-font-size-sm);
|
|
122
|
+
}
|
|
123
|
+
._paneHeader_ba5d4a {
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-wrap: wrap;
|
|
126
|
+
align-items: center;
|
|
127
|
+
justify-content: space-between;
|
|
128
|
+
gap: var(--wzl-space-2);
|
|
129
|
+
padding-block: var(--wzl-space-1);
|
|
130
|
+
margin-block-end: var(--wzl-space-2);
|
|
131
|
+
border-block-end: 1px solid var(--wzl-border);
|
|
132
|
+
}
|
|
133
|
+
._paneTitle_ba5d4a {
|
|
134
|
+
margin: 0;
|
|
135
|
+
font-size: var(--wzl-font-size-sm);
|
|
136
|
+
font-weight: var(--wzl-font-weight-bold);
|
|
137
|
+
letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));
|
|
138
|
+
text-transform: var(--wzl-params-label-case, uppercase);
|
|
139
|
+
}
|
|
140
|
+
._paneTools_ba5d4a { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }
|
|
141
|
+
._treeKey_ba5d4a { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-light); color: var(--wzl-fg-muted); }
|
|
142
|
+
/* A leaf's row: no glyph before its label, which is set in the plain weight under a group's bolder one. */
|
|
143
|
+
._treeLeaf_ba5d4a { font-weight: var(--wzl-font-weight-normal); }
|
|
144
|
+
/* A setting the layout shown already points at. */
|
|
145
|
+
._pointed_ba5d4a { color: var(--wzl-fg-muted); }
|
|
146
|
+
._addForm_ba5d4a { display: grid; gap: var(--wzl-space-3); min-width: min(360px, 80vw); }
|
|
147
|
+
._addActions_ba5d4a { display: flex; justify-content: flex-end; gap: var(--wzl-space-2); }
|
|
148
|
+
._notice_ba5d4a:not(:empty) {
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: space-between;
|
|
152
|
+
gap: var(--wzl-space-2);
|
|
153
|
+
padding: var(--wzl-space-1) var(--wzl-space-2);
|
|
154
|
+
border-inline-start: 3px solid var(--wzl-warning);
|
|
155
|
+
border-radius: var(--wzl-radius-sm);
|
|
156
|
+
font-size: var(--wzl-font-size-sm);
|
|
157
|
+
/* Its own, not a gap of the column's: the row stays mounted while empty, and a gap would hold the pane off the top. */
|
|
158
|
+
margin-block-end: var(--wzl-space-2);
|
|
159
|
+
}
|
|
160
|
+
/* Under the attributes and the preview: the lists dragged from into the tree, and beside them the export. */
|
|
161
|
+
._shelfHandle_ba5d4a { grid-column: 3 / 6; grid-row: 3; }
|
|
162
|
+
._shelf_ba5d4a {
|
|
163
|
+
grid-column: 3 / 6;
|
|
164
|
+
grid-row: 4;
|
|
165
|
+
block-size: var(--shelf-h);
|
|
166
|
+
display: flex;
|
|
167
|
+
gap: var(--wzl-space-3);
|
|
168
|
+
min-height: 0;
|
|
169
|
+
}
|
|
170
|
+
/* The structure pane draws its lists into the slot, and they sit in the shelf's row as the export does. */
|
|
171
|
+
._shelfSlot_ba5d4a { display: contents; }
|
|
172
|
+
/* Each list stands at the width its handle was dragged to and gives way in a narrow shelf; the export takes the rest. */
|
|
173
|
+
._shelfPane_ba5d4a { flex: 0 1 var(--shelf-pane-w); min-width: 96px; }
|
|
174
|
+
._export_ba5d4a { flex: 1 1 0; display: flex; flex-direction: column; min-width: 200px; min-height: 0; }
|
|
175
|
+
._export_ba5d4a ._exportBody_ba5d4a { flex: 1; min-height: 0; }
|
|
176
|
+
._exportHead_ba5d4a {
|
|
177
|
+
display: flex;
|
|
178
|
+
align-items: flex-end;
|
|
179
|
+
justify-content: space-between;
|
|
180
|
+
gap: var(--wzl-space-2);
|
|
181
|
+
margin-block-end: var(--wzl-space-2);
|
|
182
|
+
border-block-end: 1px solid var(--wzl-border);
|
|
183
|
+
}
|
|
184
|
+
._exportHead_ba5d4a ._paneTools_ba5d4a { align-self: center; }
|
|
185
|
+
/* The head draws the rule under the tabs, so it runs under the tools too. */
|
|
186
|
+
._export_ba5d4a ._exportTabs_ba5d4a { border-bottom: none; }
|
|
187
|
+
._export_ba5d4a ._exportTab_ba5d4a { padding: var(--wzl-space-1) var(--wzl-space-3); }
|
|
188
|
+
/* Each pane fills what the head leaves of the shelf, so its text scrolls inside all of it. */
|
|
189
|
+
._export_ba5d4a ._exportPane_ba5d4a { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0; }
|
|
190
|
+
._export_ba5d4a ._exportPane_ba5d4a[inert] { display: none; }
|
|
191
|
+
._code_ba5d4a {
|
|
192
|
+
flex: 1;
|
|
193
|
+
min-height: 0;
|
|
194
|
+
margin: 0;
|
|
195
|
+
font-size: var(--wzl-font-size-xs);
|
|
196
|
+
}
|
|
197
|
+
._changeList_ba5d4a { overflow: auto; font-family: var(--wzl-font-mono); white-space: pre; }
|
|
198
|
+
._changed_ba5d4a { color: var(--wzl-accent-fg); }
|
|
199
|
+
/* Tool buttons dragged into the tree or the preview to add a node there. */
|
|
200
|
+
._palette_ba5d4a {
|
|
201
|
+
display: flex;
|
|
202
|
+
gap: var(--wzl-space-2);
|
|
203
|
+
inline-size: fit-content;
|
|
204
|
+
padding: var(--wzl-space-1) var(--wzl-space-2);
|
|
205
|
+
border: 1px solid var(--wzl-border);
|
|
206
|
+
border-radius: var(--wzl-radius-sm);
|
|
207
|
+
background: var(--wzl-surface);
|
|
208
|
+
user-select: none;
|
|
209
|
+
}
|
|
210
|
+
._paletteRule_ba5d4a { align-self: stretch; border-inline-start: 1px solid var(--wzl-border); }
|
|
211
|
+
._paletteTool_ba5d4a { display: flex; touch-action: none; }
|
|
212
|
+
._palette_ba5d4a ._paletteTool_ba5d4a > button { cursor: grab; }
|
|
213
|
+
/* A dragged node drawn as the form would draw it. The form brings its own padding; a page is a rail entry. */
|
|
214
|
+
._ghostNode_ba5d4a { padding: var(--wzl-space-2) var(--wzl-space-3); font-family: var(--wzl-font-ui); }
|
|
215
|
+
._ghostPage_ba5d4a {
|
|
216
|
+
padding: var(--wzl-space-2) var(--wzl-space-3);
|
|
217
|
+
border-radius: var(--wzl-radius-sm);
|
|
218
|
+
background: var(--wzl-accent);
|
|
219
|
+
color: var(--wzl-fg-on-accent);
|
|
220
|
+
--wzl-fg-muted: var(--wzl-fg-muted-on-accent);
|
|
221
|
+
--wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);
|
|
222
|
+
font-family: var(--wzl-font-ui);
|
|
223
|
+
font-size: var(--wzl-font-size-sm);
|
|
224
|
+
}
|
|
225
|
+
/* How many leaves a branch holds, before its kind. A count badge stands alone, so its digits keep their own widths. */
|
|
226
|
+
._treeCount_ba5d4a { margin-inline-end: var(--wzl-space-1); }
|
|
227
|
+
/* One step under the row's size, set above. Two classes, to outrank the size Badge sets on itself. */
|
|
228
|
+
:is(._treeArea_ba5d4a, ._storedArea_ba5d4a, ._shelfPane_ba5d4a) ._treeCount_ba5d4a { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-bold); }
|
|
229
|
+
._draftNote_ba5d4a { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }
|
|
230
|
+
|
|
231
|
+
/* How many nodes a drag carries, on the corner of the one it draws. */
|
|
232
|
+
._ghostCount_ba5d4a {
|
|
233
|
+
position: absolute;
|
|
234
|
+
top: -6px;
|
|
235
|
+
right: -6px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
._autoValue_ba5d4a {
|
|
239
|
+
display: flex;
|
|
240
|
+
align-items: center;
|
|
241
|
+
gap: var(--wzl-space-2);
|
|
242
|
+
min-inline-size: 0;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
._autoValueControl_ba5d4a {
|
|
246
|
+
flex: 1 1 auto;
|
|
247
|
+
display: flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
min-inline-size: 0;
|
|
250
|
+
margin: 0;
|
|
251
|
+
padding: 0;
|
|
252
|
+
border: 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* There to disable what it holds, and drawing nothing of its own. A control that is not a form control takes no press either. */
|
|
256
|
+
._lockedForm_ba5d4a { min-inline-size: 0; margin: 0; padding: 0; border: 0; pointer-events: none; }
|
|
257
|
+
/* A node's name and description beside its glyph, which stands as tall as the two rows. */
|
|
258
|
+
._identity_ba5d4a { position: relative; --identity-icon: 48px; }
|
|
259
|
+
._identity_ba5d4a :is([data-pref-path='name'], [data-pref-path='description']) > * { margin-inline-end: calc(var(--identity-icon) + var(--wzl-space-3)); }
|
|
260
|
+
._identityIcon_ba5d4a {
|
|
261
|
+
position: absolute; inset-block-start: 0; inset-inline-end: var(--identity-end, 0);
|
|
262
|
+
display: grid; place-items: center; inline-size: var(--identity-icon); block-size: var(--identity-tall, var(--identity-icon));
|
|
263
|
+
color: var(--wzl-fg);
|
|
264
|
+
}
|
|
265
|
+
._identityIcon_ba5d4a > svg { inline-size: calc(var(--identity-icon) * 2 / 3); block-size: calc(var(--identity-icon) * 2 / 3); }
|
|
266
|
+
|
|
267
|
+
._autoValueControl_ba5d4a:disabled {
|
|
268
|
+
opacity: 0.5;
|
|
269
|
+
filter: var(--wzl-disabled-filter);
|
|
270
|
+
pointer-events: none;
|
|
271
|
+
}
|
|
272
|
+
/* Numeric text: equal-width digits in the UI face. This is the one definition —
|
|
273
|
+
* compose it, mix it into Less, or put its class on the element; never restate
|
|
274
|
+
* the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {
|
|
275
|
+
font-family: var(--wzl-font-numeric);
|
|
276
|
+
font-variant-numeric: tabular-nums;
|
|
277
|
+
}._options_ba5d4a { display: grid; gap: var(--wzl-space-2); }._pairRow_ba5d4a { display: grid; grid-template-columns: 1fr auto; gap: var(--wzl-space-2); align-items: center; }._unitRow_ba5d4a { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wzl-space-2); align-items: center; }._acceptRow_ba5d4a { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--wzl-space-2); align-items: center; }._optionHeads_ba5d4a { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }/* Holds the remove button's column open, so the heads sit over the fields. */._optionHeadSpacer_ba5d4a { inline-size: var(--wzl-icon-button-size); }/* The stored value is code and the label is prose; the faces say which is which on every row. *//* A field holding what the code will spell: a key, an option's stored value, a tag, a glyph's name. */._symbol_ba5d4a input { font-family: var(--wzl-font-mono); }/* Derived from the keys above it, so it is text to read and copy, not a field. */._pathText_ba5d4a { overflow-wrap: anywhere; font-size: var(--wzl-font-size-sm); color: var(--wzl-fg-muted); user-select: text; -webkit-user-select: text; }._number_ba5d4a { }._number_ba5d4a input { text-align: right; }/* A whole surface a host may mount anywhere, so it brings its face rather than inheriting the page's. */._editor_ba5d4a {
|
|
278
|
+
font-family: var(--wzl-font-ui);
|
|
279
|
+
color: var(--wzl-fg);
|
|
280
|
+
display: grid;
|
|
281
|
+
grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto minmax(320px, 1fr);
|
|
282
|
+
grid-template-rows: auto minmax(0, 1fr) auto auto;
|
|
283
|
+
gap: var(--wzl-space-3) var(--wzl-space-2);
|
|
284
|
+
min-height: 0;
|
|
285
|
+
height: 100%;
|
|
286
|
+
}/* Across the top of every pane: what acts on the schema as a whole. */._bar_ba5d4a {
|
|
287
|
+
grid-column: 1 / -1;
|
|
288
|
+
display: grid;
|
|
289
|
+
/* Equal sides, so the tools sit at the bar's middle whatever either side holds. */
|
|
290
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
291
|
+
align-items: center;
|
|
292
|
+
gap: var(--wzl-space-2);
|
|
293
|
+
padding-block-end: var(--wzl-space-2);
|
|
294
|
+
border-block-end: 1px solid var(--wzl-border);
|
|
295
|
+
}._barLead_ba5d4a,
|
|
296
|
+
._barTools_ba5d4a,
|
|
297
|
+
._barEnd_ba5d4a { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }._barEnd_ba5d4a { justify-content: flex-end; }._treeFilter_ba5d4a { margin-block-end: var(--wzl-space-2); }._middle_ba5d4a { display: grid; align-content: start; min-height: 0; overflow: auto; }._pane_ba5d4a { min-height: 0; overflow: auto; }/* The structure runs the editor's whole height under the bar, and everything else sits in what is left beside it. */._structurePane_ba5d4a { grid-column: 1; grid-row: 2 / -1; display: flex; flex-direction: column; overflow: hidden; }/* One edge for the structure's text: a pane's title, the filter's text, and a top-level leaf's name start where a
|
|
298
|
+
group's name does, past the 16px glyph that folds it and the gap after. A leaf's label takes one more step. */._structurePane_ba5d4a { --structure-text-inset: calc(16px + var(--wzl-space-3)); --wzl-tree-root-leaf-indent: calc(var(--structure-text-inset) - var(--wzl-space-1)); }._structurePane_ba5d4a ._paneTitle_ba5d4a { padding-inline-start: var(--structure-text-inset); }/* Less the inset the tree gives what it draws when it has no rows. */._structurePane_ba5d4a ._storedEmpty_ba5d4a { padding-inline-start: calc(var(--structure-text-inset) - var(--wzl-space-4)); }/* Less the field's own 1px border. */._structurePane_ba5d4a ._treeFilter_ba5d4a { --wzl-field-pad-x: calc(var(--structure-text-inset) - 1px); }._structureHandle_ba5d4a { grid-column: 2; grid-row: 2 / -1; }._listed_ba5d4a {
|
|
299
|
+
grid-template-columns: minmax(var(--structure-min), var(--structure-w)) auto minmax(var(--attributes-min), var(--attributes-w)) auto
|
|
300
|
+
minmax(320px, 1fr) auto minmax(var(--aside-min), var(--aside-w));
|
|
301
|
+
}/* The sidebar mirrors the structure: the editor's whole height under the bar, at its other edge. */._aside_ba5d4a { grid-column: 7; grid-row: 2 / -1; }._asideHandle_ba5d4a { grid-column: 6; grid-row: 2 / -1; }/* The tree reads at the size of the fields in the pane beside it. */._treeArea_ba5d4a, ._storedArea_ba5d4a, ._shelfPane_ba5d4a { min-height: 0; --wzl-tree-font-size: var(--wzl-font-size); --wzl-tree-leading-size: 16px; }._treeArea_ba5d4a, ._listBody_ba5d4a { overflow: auto; }/* A titled list: the header keeps its place and the rows scroll under it, as the structure's do. */._listPane_ba5d4a { display: flex; flex-direction: column; overflow: hidden; }._listBody_ba5d4a { flex: 1; min-height: 0; }._treeArea_ba5d4a { flex: 1; }/* A setting starts its name where its group's name starts, past the group's glyph. */._treeArea_ba5d4a, ._settingsTree_ba5d4a { --wzl-tree-leaf-indent: var(--wzl-space-2); }/* A group's glyph folds it, and says it is open. */:is(._treeArea_ba5d4a, ._storedArea_ba5d4a, ._shelfPane_ba5d4a) [data-tree-twisty][data-open] { color: var(--wzl-secondary-fg); }/* Padded all the time, so the outline a drop draws inside its edge has room and nothing moves when it appears. */._storedArea_ba5d4a { flex: 0 0 var(--stored-h); box-sizing: border-box; padding-block: var(--wzl-space-2); }._storedArea_ba5d4a[data-drop] { outline: 2px solid var(--wzl-accent); outline-offset: -2px; }._storedEmpty_ba5d4a { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }._previewPane_ba5d4a { display: flex; flex-direction: column; overflow: hidden; }/* What the asset draws, centered in the workspace around it. `safe` keeps an overflowing preview's start in view. */._previewStage_ba5d4a {
|
|
302
|
+
background: var(--wzl-workspace);
|
|
303
|
+
flex: 1;
|
|
304
|
+
min-height: 0;
|
|
305
|
+
display: flex;
|
|
306
|
+
align-items: flex-start;
|
|
307
|
+
justify-content: safe center;
|
|
308
|
+
padding: 24px;
|
|
309
|
+
overflow: auto;
|
|
310
|
+
}/* Through a drop: where centering last put it (`useHeldPlace`), measured from the stage's edge. */._previewStage_ba5d4a[data-held] { justify-content: flex-start; padding: 0; }._previewStage_ba5d4a[data-held] > :first-child { margin-inline-start: var(--held-x); margin-block-start: var(--held-y); }/* The dialog at a width the reader drags, to see the form at the sizes an app might give it. */._previewDialog_ba5d4a { flex: 0 1 var(--preview-w); min-width: 0; min-height: 0; }/* A host's own drawing of the asset, at whatever size it takes. */._previewHosted_ba5d4a { flex: 1; min-height: 0; overflow: auto; padding: var(--wzl-space-3); }/* A node's properties as a sidebar would hold them, raised off the workspace as the dialog is. */._previewPanel_ba5d4a {
|
|
311
|
+
flex: none;
|
|
312
|
+
box-sizing: border-box;
|
|
313
|
+
inline-size: min(360px, 100%);
|
|
314
|
+
max-block-size: 100%;
|
|
315
|
+
overflow: auto;
|
|
316
|
+
padding-inline: var(--wzl-space-4);
|
|
317
|
+
border-radius: var(--wzl-radius-md);
|
|
318
|
+
box-shadow: var(--wzl-bevel-raised, 0 8px 24px var(--wzl-shadow));
|
|
319
|
+
}/* A bar is as wide or as tall as what it holds, magnified as the reader sets it. */._previewBar_ba5d4a { flex: none; zoom: var(--preview-zoom, 1); }._zoom_ba5d4a { display: flex; align-items: center; gap: var(--wzl-space-2); inline-size: 160px; }/* Sized for its widest figure, 200%, whose % is wider than a digit, so the range beside it holds still. */._zoomReadout_ba5d4a {
|
|
320
|
+
flex: none;
|
|
321
|
+
min-inline-size: 5ch;
|
|
322
|
+
text-align: end;
|
|
323
|
+
font-size: var(--wzl-font-size-sm);
|
|
324
|
+
}._paneHeader_ba5d4a {
|
|
325
|
+
display: flex;
|
|
326
|
+
flex-wrap: wrap;
|
|
327
|
+
align-items: center;
|
|
328
|
+
justify-content: space-between;
|
|
329
|
+
gap: var(--wzl-space-2);
|
|
330
|
+
padding-block: var(--wzl-space-1);
|
|
331
|
+
margin-block-end: var(--wzl-space-2);
|
|
332
|
+
border-block-end: 1px solid var(--wzl-border);
|
|
333
|
+
}._paneTitle_ba5d4a {
|
|
334
|
+
margin: 0;
|
|
335
|
+
font-size: var(--wzl-font-size-sm);
|
|
336
|
+
font-weight: var(--wzl-font-weight-bold);
|
|
337
|
+
letter-spacing: var(--wzl-params-label-tracking, var(--wzl-tracking-wider));
|
|
338
|
+
text-transform: var(--wzl-params-label-case, uppercase);
|
|
339
|
+
}._paneTools_ba5d4a { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wzl-space-2); }._treeKey_ba5d4a { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-light); color: var(--wzl-fg-muted); }/* A leaf's row: no glyph before its label, which is set in the plain weight under a group's bolder one. */._treeLeaf_ba5d4a { font-weight: var(--wzl-font-weight-normal); }/* A setting the layout shown already points at. */._pointed_ba5d4a { color: var(--wzl-fg-muted); }._addForm_ba5d4a { display: grid; gap: var(--wzl-space-3); min-width: min(360px, 80vw); }._addActions_ba5d4a { display: flex; justify-content: flex-end; gap: var(--wzl-space-2); }._notice_ba5d4a:not(:empty) {
|
|
340
|
+
display: flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
justify-content: space-between;
|
|
343
|
+
gap: var(--wzl-space-2);
|
|
344
|
+
padding: var(--wzl-space-1) var(--wzl-space-2);
|
|
345
|
+
border-inline-start: 3px solid var(--wzl-warning);
|
|
346
|
+
border-radius: var(--wzl-radius-sm);
|
|
347
|
+
font-size: var(--wzl-font-size-sm);
|
|
348
|
+
/* Its own, not a gap of the column's: the row stays mounted while empty, and a gap would hold the pane off the top. */
|
|
349
|
+
margin-block-end: var(--wzl-space-2);
|
|
350
|
+
}/* Under the attributes and the preview: the lists dragged from into the tree, and beside them the export. */._shelfHandle_ba5d4a { grid-column: 3 / 6; grid-row: 3; }._shelf_ba5d4a {
|
|
351
|
+
grid-column: 3 / 6;
|
|
352
|
+
grid-row: 4;
|
|
353
|
+
block-size: var(--shelf-h);
|
|
354
|
+
display: flex;
|
|
355
|
+
gap: var(--wzl-space-3);
|
|
356
|
+
min-height: 0;
|
|
357
|
+
}/* The structure pane draws its lists into the slot, and they sit in the shelf's row as the export does. */._shelfSlot_ba5d4a { display: contents; }/* Each list stands at the width its handle was dragged to and gives way in a narrow shelf; the export takes the rest. */._shelfPane_ba5d4a { flex: 0 1 var(--shelf-pane-w); min-width: 96px; }._export_ba5d4a { flex: 1 1 0; display: flex; flex-direction: column; min-width: 200px; min-height: 0; }._export_ba5d4a ._exportBody_ba5d4a { flex: 1; min-height: 0; }._exportHead_ba5d4a {
|
|
358
|
+
display: flex;
|
|
359
|
+
align-items: flex-end;
|
|
360
|
+
justify-content: space-between;
|
|
361
|
+
gap: var(--wzl-space-2);
|
|
362
|
+
margin-block-end: var(--wzl-space-2);
|
|
363
|
+
border-block-end: 1px solid var(--wzl-border);
|
|
364
|
+
}._exportHead_ba5d4a ._paneTools_ba5d4a { align-self: center; }/* The head draws the rule under the tabs, so it runs under the tools too. */._export_ba5d4a ._exportTabs_ba5d4a { border-bottom: none; }._export_ba5d4a ._exportTab_ba5d4a { padding: var(--wzl-space-1) var(--wzl-space-3); }/* Each pane fills what the head leaves of the shelf, so its text scrolls inside all of it. */._export_ba5d4a ._exportPane_ba5d4a { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0; }._export_ba5d4a ._exportPane_ba5d4a[inert] { display: none; }._code_ba5d4a {
|
|
365
|
+
flex: 1;
|
|
366
|
+
min-height: 0;
|
|
367
|
+
margin: 0;
|
|
368
|
+
font-size: var(--wzl-font-size-xs);
|
|
369
|
+
}._changeList_ba5d4a { overflow: auto; font-family: var(--wzl-font-mono); white-space: pre; }._changed_ba5d4a { color: var(--wzl-accent-fg); }/* Tool buttons dragged into the tree or the preview to add a node there. */._palette_ba5d4a {
|
|
370
|
+
display: flex;
|
|
371
|
+
gap: var(--wzl-space-2);
|
|
372
|
+
inline-size: fit-content;
|
|
373
|
+
padding: var(--wzl-space-1) var(--wzl-space-2);
|
|
374
|
+
border: 1px solid var(--wzl-border);
|
|
375
|
+
border-radius: var(--wzl-radius-sm);
|
|
376
|
+
background: var(--wzl-surface);
|
|
377
|
+
user-select: none;
|
|
378
|
+
}._paletteRule_ba5d4a { align-self: stretch; border-inline-start: 1px solid var(--wzl-border); }._paletteTool_ba5d4a { display: flex; touch-action: none; }._palette_ba5d4a ._paletteTool_ba5d4a > button { cursor: grab; }/* A dragged node drawn as the form would draw it. The form brings its own padding; a page is a rail entry. */._ghostNode_ba5d4a { padding: var(--wzl-space-2) var(--wzl-space-3); font-family: var(--wzl-font-ui); }._ghostPage_ba5d4a {
|
|
379
|
+
padding: var(--wzl-space-2) var(--wzl-space-3);
|
|
380
|
+
border-radius: var(--wzl-radius-sm);
|
|
381
|
+
background: var(--wzl-accent);
|
|
382
|
+
color: var(--wzl-fg-on-accent);
|
|
383
|
+
--wzl-fg-muted: var(--wzl-fg-muted-on-accent);
|
|
384
|
+
--wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);
|
|
385
|
+
font-family: var(--wzl-font-ui);
|
|
386
|
+
font-size: var(--wzl-font-size-sm);
|
|
387
|
+
}/* How many leaves a branch holds, before its kind. A count badge stands alone, so its digits keep their own widths. */._treeCount_ba5d4a { margin-inline-end: var(--wzl-space-1); }/* One step under the row's size, set above. Two classes, to outrank the size Badge sets on itself. */:is(._treeArea_ba5d4a, ._storedArea_ba5d4a, ._shelfPane_ba5d4a) ._treeCount_ba5d4a { font-size: var(--wzl-font-size-sm); font-weight: var(--wzl-font-weight-bold); }._draftNote_ba5d4a { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }/* How many nodes a drag carries, on the corner of the one it draws. */._ghostCount_ba5d4a {
|
|
388
|
+
position: absolute;
|
|
389
|
+
top: -6px;
|
|
390
|
+
right: -6px;
|
|
391
|
+
}._autoValue_ba5d4a {
|
|
392
|
+
display: flex;
|
|
393
|
+
align-items: center;
|
|
394
|
+
gap: var(--wzl-space-2);
|
|
395
|
+
min-inline-size: 0;
|
|
396
|
+
}._autoValueControl_ba5d4a {
|
|
397
|
+
flex: 1 1 auto;
|
|
398
|
+
display: flex;
|
|
399
|
+
align-items: center;
|
|
400
|
+
min-inline-size: 0;
|
|
401
|
+
margin: 0;
|
|
402
|
+
padding: 0;
|
|
403
|
+
border: 0;
|
|
404
|
+
}/* There to disable what it holds, and drawing nothing of its own. A control that is not a form control takes no press either. */._lockedForm_ba5d4a { min-inline-size: 0; margin: 0; padding: 0; border: 0; pointer-events: none; }/* A node's name and description beside its glyph, which stands as tall as the two rows. */._identity_ba5d4a { position: relative; --identity-icon: 48px; }._identity_ba5d4a :is([data-pref-path='name'], [data-pref-path='description']) > * { margin-inline-end: calc(var(--identity-icon) + var(--wzl-space-3)); }._identityIcon_ba5d4a {
|
|
405
|
+
position: absolute; inset-block-start: 0; inset-inline-end: var(--identity-end, 0);
|
|
406
|
+
display: grid; place-items: center; inline-size: var(--identity-icon); block-size: var(--identity-tall, var(--identity-icon));
|
|
407
|
+
color: var(--wzl-fg);
|
|
408
|
+
}._identityIcon_ba5d4a > svg { inline-size: calc(var(--identity-icon) * 2 / 3); block-size: calc(var(--identity-icon) * 2 / 3); }._autoValueControl_ba5d4a:disabled {
|
|
409
|
+
opacity: 0.5;
|
|
410
|
+
filter: var(--wzl-disabled-filter);
|
|
411
|
+
pointer-events: none;
|
|
412
|
+
}
|
|
413
|
+
/* ui's rail parts set the list, its options and an open heading's bracket: this sets a heading, and its assets a step
|
|
414
|
+
in under it, past the heading's glyph. */
|
|
415
|
+
._list_af612f { user-select: none; -webkit-user-select: none; }
|
|
416
|
+
._row_af612f {
|
|
417
|
+
margin-inline-start: calc(var(--heading-icon) + var(--wzl-space-2));
|
|
418
|
+
font-weight: var(--wzl-font-weight-light);
|
|
419
|
+
}
|
|
420
|
+
._changed_af612f { }
|
|
421
|
+
._row_af612f[data-rail-mark='current'] ._changed_af612f { color: var(--wzl-secondary-strong); }
|
|
422
|
+
._group_af612f { --heading-icon: 16px; }
|
|
423
|
+
._group_af612f + ._group_af612f { margin-block-start: var(--wzl-space-3); }
|
|
424
|
+
._heading_af612f {
|
|
425
|
+
font-size: var(--wzl-font-size);
|
|
426
|
+
color: var(--wzl-fg);
|
|
427
|
+
}
|
|
428
|
+
._fold_af612f {
|
|
429
|
+
display: flex;
|
|
430
|
+
align-items: center;
|
|
431
|
+
gap: var(--wzl-space-2);
|
|
432
|
+
width: 100%;
|
|
433
|
+
block-size: var(--wzl-control-h);
|
|
434
|
+
padding: 0 var(--wzl-space-3);
|
|
435
|
+
border: 0;
|
|
436
|
+
border-radius: var(--wzl-radius-sm);
|
|
437
|
+
background: none;
|
|
438
|
+
color: inherit;
|
|
439
|
+
font: inherit;
|
|
440
|
+
text-align: start;
|
|
441
|
+
cursor: pointer;
|
|
442
|
+
}
|
|
443
|
+
._headingIcon_af612f, ._rowIcon_af612f { flex: none; color: var(--wzl-fg-muted); }
|
|
444
|
+
._fold_af612f:focus-visible {
|
|
445
|
+
outline: 2px solid var(--wzl-focus-ring);
|
|
446
|
+
outline-offset: -2px;
|
|
447
|
+
}
|
|
448
|
+
._badge_af612f { flex: none; margin-inline-start: auto; }
|
|
449
|
+
/* Each heading names its badge's color in `--_heading`, leaning toward the foreground as a pref kind's badge does. */
|
|
450
|
+
._dialog_af612f { --_heading: color-mix(in oklab, var(--wzl-swatch-violet) 55%, var(--wzl-fg)); }
|
|
451
|
+
._properties_af612f { --_heading: color-mix(in oklab, var(--wzl-swatch-teal) 55%, var(--wzl-fg)); }
|
|
452
|
+
._panel_af612f { --_heading: color-mix(in oklab, var(--wzl-swatch-blue) 55%, var(--wzl-fg)); }
|
|
453
|
+
._toolbar_af612f { --_heading: color-mix(in oklab, var(--wzl-swatch-amber) 55%, var(--wzl-fg)); }
|
|
454
|
+
._menu_af612f { --_heading: color-mix(in oklab, var(--wzl-swatch-rose) 55%, var(--wzl-fg)); }
|
|
455
|
+
._bundle_af612f { --_heading: color-mix(in oklab, var(--wzl-swatch-green) 55%, var(--wzl-fg)); }
|
|
456
|
+
._row_af612f[data-rail-mark='current'] ._badge_af612f { --_heading: var(--wzl-fg-on-accent); }
|
|
457
|
+
._dynamic_af612f { flex: none; color: var(--wzl-fg-muted); }
|
|
458
|
+
/* The editor and each group in it measure their own width: a row lays out by the room its group has. */
|
|
459
|
+
._editor_524757,
|
|
460
|
+
._group_524757 {
|
|
461
|
+
display: grid;
|
|
462
|
+
grid-template-columns: minmax(0, 1fr);
|
|
463
|
+
gap: var(--wzl-space-2);
|
|
464
|
+
min-inline-size: 0;
|
|
465
|
+
container-type: inline-size;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
._quantifier_524757 { flex: 0 1 8rem; min-inline-size: 0; }
|
|
469
|
+
|
|
470
|
+
/* A group among the rows: its own rows, set in from a rule down their side. */
|
|
471
|
+
._group_524757 {
|
|
472
|
+
padding-inline-start: var(--wzl-space-3);
|
|
473
|
+
border-inline-start: 2px solid var(--wzl-border);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* The quantifier, then the button that removes the group. */
|
|
477
|
+
._head_524757 {
|
|
478
|
+
display: flex;
|
|
479
|
+
align-items: center;
|
|
480
|
+
justify-content: space-between;
|
|
481
|
+
gap: var(--wzl-space-2);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* Copy and Paste, at the end of the editor's first line, after what the last press of either had to say. */
|
|
485
|
+
._clipboard_524757 {
|
|
486
|
+
display: flex;
|
|
487
|
+
align-items: center;
|
|
488
|
+
gap: var(--wzl-space-1);
|
|
489
|
+
margin-inline-start: auto;
|
|
490
|
+
min-inline-size: 0;
|
|
491
|
+
}
|
|
492
|
+
._clipboard_524757 > button { flex: none; }
|
|
493
|
+
._said_524757 {
|
|
494
|
+
min-inline-size: 0;
|
|
495
|
+
overflow: hidden;
|
|
496
|
+
text-overflow: ellipsis;
|
|
497
|
+
white-space: nowrap;
|
|
498
|
+
font-size: var(--wzl-font-size-sm);
|
|
499
|
+
color: var(--wzl-fg-muted);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/*
|
|
503
|
+
* A row reads across: the pref, a comparison, the value compared against, and the button that removes it. The
|
|
504
|
+
* comparison and value columns are one width in every row, so a group's rows line up down each. A second
|
|
505
|
+
* comparison of the same pref takes the line under the first, after an `and` in the pref's column.
|
|
506
|
+
*/
|
|
507
|
+
._row_524757 {
|
|
508
|
+
display: grid;
|
|
509
|
+
grid-template-columns: minmax(0, 1fr) 7.5rem 8rem auto;
|
|
510
|
+
gap: var(--wzl-space-1) var(--wzl-space-2);
|
|
511
|
+
align-items: center;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
._pref_524757 { grid-column: 1; min-inline-size: 0; }
|
|
515
|
+
._comparison_524757 { grid-column: 2; min-inline-size: 0; }
|
|
516
|
+
/* A comparison that takes no value beside it has the value's column too. */
|
|
517
|
+
._comparisonAlone_524757,
|
|
518
|
+
._text_524757 { grid-column: 2 / 4; min-inline-size: 0; }
|
|
519
|
+
._removeRow_524757 { grid-column: 4; }
|
|
520
|
+
|
|
521
|
+
._value_524757 {
|
|
522
|
+
grid-column: 3;
|
|
523
|
+
display: flex;
|
|
524
|
+
align-items: center;
|
|
525
|
+
gap: var(--wzl-space-1);
|
|
526
|
+
min-inline-size: 0;
|
|
527
|
+
}
|
|
528
|
+
._value_524757 > :first-child { flex: 1 1 auto; min-inline-size: 0; }
|
|
529
|
+
|
|
530
|
+
._and_524757 {
|
|
531
|
+
grid-column: 1;
|
|
532
|
+
justify-self: end;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
._choices_524757 {
|
|
536
|
+
grid-column: 1 / -1;
|
|
537
|
+
padding-inline-start: var(--wzl-space-3);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/* Too narrow for a row to read across: the pref takes a line, and each comparison the line under it. */
|
|
541
|
+
@container (max-width: 24rem) {
|
|
542
|
+
._row_524757 { grid-template-columns: minmax(0, 1fr) minmax(0, 8rem) auto; }
|
|
543
|
+
._pref_524757 { grid-column: 1 / 3; }
|
|
544
|
+
._removeRow_524757 { grid-column: 3; grid-row: 1; }
|
|
545
|
+
._comparison_524757 { grid-column: 1; }
|
|
546
|
+
._comparisonAlone_524757,
|
|
547
|
+
._text_524757 { grid-column: 1 / 3; }
|
|
548
|
+
._value_524757 { grid-column: 2; }
|
|
549
|
+
._and_524757 { display: none; }
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/* A path is what the code spells, beside the name a person reads: in the list a pref is picked from, and not on
|
|
553
|
+
the row, where the name is enough. */
|
|
554
|
+
._path_524757 {
|
|
555
|
+
font-family: var(--wzl-font-mono);
|
|
556
|
+
font-size: var(--wzl-font-size-xs);
|
|
557
|
+
color: var(--wzl-fg-muted);
|
|
558
|
+
}
|
|
559
|
+
._pref_524757 button ._path_524757 { display: none; }
|
|
560
|
+
|
|
561
|
+
._text_524757 { overflow-wrap: anywhere; }
|
|
562
|
+
|
|
563
|
+
._foot_524757 {
|
|
564
|
+
display: flex;
|
|
565
|
+
align-items: center;
|
|
566
|
+
gap: var(--wzl-space-2);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
._add_524757 { flex: 1 1 auto; min-inline-size: 0; }
|
|
570
|
+
._foot_524757 > button { flex: none; white-space: nowrap; }
|
|
571
|
+
|
|
572
|
+
._and_524757,
|
|
573
|
+
._empty_524757 {
|
|
574
|
+
margin: 0;
|
|
575
|
+
font-size: var(--wzl-font-size-sm);
|
|
576
|
+
color: var(--wzl-fg-muted);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
._problem_524757 {
|
|
580
|
+
grid-column: 1 / -1;
|
|
581
|
+
margin: 0;
|
|
582
|
+
font-size: var(--wzl-font-size-sm);
|
|
583
|
+
color: var(--wzl-danger);
|
|
584
|
+
overflow-wrap: anywhere;
|
|
585
|
+
}
|
|
586
|
+
._picker_045b5b { display: grid; gap: var(--wzl-space-2); inline-size: min(560px, 80vw); }
|
|
587
|
+
._note_045b5b { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }
|
|
588
|
+
/* The grid scrolls in its own pane so a long icon set never lengthens the dialog past the window. */
|
|
589
|
+
._list_045b5b {
|
|
590
|
+
display: grid; gap: var(--wzl-space-2);
|
|
591
|
+
max-block-size: 60vh; overflow-y: auto;
|
|
592
|
+
border: 1px solid var(--wzl-border); padding: var(--wzl-space-2);
|
|
593
|
+
}
|
|
594
|
+
._group_045b5b { display: grid; gap: var(--wzl-space-1); }
|
|
595
|
+
._heading_045b5b { color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-xs); }
|
|
596
|
+
._grid_045b5b { display: grid; grid-template-columns: repeat(auto-fill, 2rem); gap: var(--wzl-space-1); }
|
|
597
|
+
._cell_045b5b { display: grid; place-items: center; block-size: 2rem; inline-size: 2rem; cursor: pointer; }
|
|
598
|
+
._cell_045b5b:hover { background: color-mix(in srgb, var(--wzl-accent) 15%, transparent); }
|
|
599
|
+
._chosen_045b5b, ._chosen_045b5b:hover {
|
|
600
|
+
--wzl-fg-muted: var(--wzl-fg-muted-on-accent);
|
|
601
|
+
--wzl-fg-subtle: var(--wzl-fg-subtle-on-accent);
|
|
602
|
+
background: var(--wzl-accent); color: var(--wzl-fg-on-accent);
|
|
603
|
+
}
|
|
604
|
+
._list_045b5b:focus-visible ._active_045b5b { outline: 2px solid var(--wzl-focus-ring); outline-offset: -2px; }
|
|
605
|
+
._field_60573b { display: grid; gap: var(--wzl-space-2); min-inline-size: 0; }
|
|
606
|
+
._bar_60573b { display: flex; flex-wrap: wrap; gap: var(--wzl-space-2); align-items: center; }
|
|
607
|
+
._current_60573b { font-family: var(--wzl-font-mono); font-size: var(--wzl-font-size-sm); color: var(--wzl-fg-muted); overflow-wrap: anywhere; }
|
|
608
|
+
._unregistered_60573b { margin-inline-start: var(--wzl-space-2); color: var(--wzl-danger); font-family: var(--wzl-font-body); }
|
|
609
|
+
._loads_360f7a { display: flex; flex-direction: column; gap: var(--wzl-space-3); font-size: var(--wzl-font-size); color: var(--wzl-fg); }
|
|
610
|
+
._title_360f7a { margin: 0; font-size: var(--wzl-font-size); font-weight: var(--wzl-font-weight-medium); }
|
|
611
|
+
._empty_360f7a { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }
|
|
612
|
+
._part_360f7a { display: flex; flex-direction: column; gap: var(--wzl-space-1); }
|
|
613
|
+
._heading_360f7a { margin: 0; color: var(--wzl-fg-muted); font-size: var(--wzl-font-size-sm); }
|
|
614
|
+
._ids_360f7a { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--wzl-space-1) var(--wzl-space-3); font-family: var(--wzl-font-mono); font-size: var(--wzl-font-size-sm); }
|
|
615
|
+
/*$vite$:1*/
|