@lace-cloud/canvas 0.20.0 → 0.21.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.
Files changed (44) hide show
  1. package/README.md +3 -3
  2. package/dist/{AccordionSection-QHNIBNJT.css → AccordionSection-J3ALHB5M.css} +22 -12
  3. package/dist/{App-D7WF3TWZ.css → App-IFIOMNV7.css} +47 -33
  4. package/dist/Banner-4TSIKYLF.css +48 -0
  5. package/dist/{Canvas-J6F7YHEK.css → Canvas-JRY2HAY6.css} +0 -56
  6. package/dist/CanvasControls-L6Q2LX2P.css +47 -0
  7. package/dist/ContextMenu-C7SLX23S.css +74 -0
  8. package/dist/DiagnosticsPanel-T6VDHH4A.css +64 -0
  9. package/dist/Drawer-34ZYTEWE.css +62 -0
  10. package/dist/EdgeInspectorPanel-JD6CVUAT.css +45 -0
  11. package/dist/EmptyCanvas-QA2OV3T3.css +21 -0
  12. package/dist/GroupNode-QWSLBFCH.css +197 -0
  13. package/dist/Identifier-V6MZ37EG.css +4 -0
  14. package/dist/{ModuleConfigPanel-LZRL4F3Q.css → ModuleConfigPanel-LTPLEG2L.css} +29 -10
  15. package/dist/{ModuleNode-OJXMNOL3.css → ModuleNode-RRZ37SFM.css} +97 -27
  16. package/dist/PaperGrid-WFRL3N4P.css +25 -0
  17. package/dist/ToolbarAction-PQNWHJSU.css +36 -0
  18. package/dist/UpdateButton-TJKSFVBA.css +16 -0
  19. package/dist/{chunk-R4RA2QI7.mjs → chunk-W6U3TVQK.mjs} +106 -110
  20. package/dist/chunk-W6U3TVQK.mjs.map +1 -0
  21. package/dist/engine/index.cjs +83 -104
  22. package/dist/engine/index.cjs.map +1 -1
  23. package/dist/engine/index.d.mts +3 -5
  24. package/dist/engine/index.d.ts +3 -5
  25. package/dist/engine/index.mjs +1 -3
  26. package/dist/icons-SBZCWI5T.css +14 -0
  27. package/dist/index.cjs +10710 -10373
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.mts +35 -25
  30. package/dist/index.d.ts +35 -25
  31. package/dist/index.mjs +3026 -2641
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/{mapping-ChSnv11V.d.mts → mapping-CopjG8Ae.d.mts} +59 -51
  34. package/dist/{mapping-ChSnv11V.d.ts → mapping-CopjG8Ae.d.ts} +59 -51
  35. package/dist/{panels-shared-OFOUQSUT.css → panels-shared-5JFNYXQ7.css} +47 -66
  36. package/package.json +3 -3
  37. package/dist/ConflictBanner-4V5K2QNU.css +0 -44
  38. package/dist/ContextMenu-EAQFLI5L.css +0 -46
  39. package/dist/DiagnosticsPanel-HB3JQYSY.css +0 -39
  40. package/dist/EdgeInspectorPanel-D536U5MZ.css +0 -54
  41. package/dist/GroupNode-XSB4OKGK.css +0 -150
  42. package/dist/Markers-XLREDZNM.css +0 -16
  43. package/dist/SourceRefusedBanner-5PXHEDHT.css +0 -23
  44. package/dist/chunk-R4RA2QI7.mjs.map +0 -1
@@ -0,0 +1,197 @@
1
+ /* GroupNode — a group of module calls. Expanded: a dashed container drawn
2
+ * on the paper around its members, its name on a chip at the top-left.
3
+ * Collapsed: a card the size of a module's, dashed so it never reads as one
4
+ * module, with its interface's pins on its rails. Its geometry is the
5
+ * projection's (@lace-cloud/proto's geometry.ts, read by GroupNode.tsx and
6
+ * the layout alike); purely visual properties live here. */
7
+
8
+ .lace-group-node {
9
+ position: relative;
10
+ font-family: inherit;
11
+ }
12
+
13
+ /* content-box, as a module card (ModuleNode.css): the border sits outside
14
+ * the header and rail heights GroupNode.tsx lays out. The expanded
15
+ * container fills the box xyflow sizes for it, border included. */
16
+ .lace-group-node--collapsed {
17
+ box-sizing: content-box;
18
+ background: var(--lace-node-bg);
19
+ border: 1px dashed var(--lace-group-border);
20
+ border-radius: var(--lace-radius-md);
21
+ box-shadow: var(--lace-shadow-sm);
22
+ }
23
+
24
+ .lace-group-node--collapsed.lace-group-node--error {
25
+ border: 1px solid var(--lace-node-error-border);
26
+ box-shadow: 0 0 10px var(--lace-node-error-shadow-color);
27
+ }
28
+
29
+ .lace-group-node--expanded {
30
+ background: var(--lace-group-bg);
31
+ border: 1px dashed var(--lace-group-border);
32
+ border-radius: var(--lace-radius-lg);
33
+ }
34
+
35
+ .react-flow__node.selected > .lace-group-node {
36
+ outline: 1.5px solid var(--lace-node-selected-ring);
37
+ outline-offset: 2px;
38
+ }
39
+
40
+ .react-flow__node:focus-visible > .lace-group-node {
41
+ outline: 2px solid var(--lace-color-focus-ring);
42
+ outline-offset: 2px;
43
+ }
44
+
45
+ .lace-group-node__header {
46
+ display: flex;
47
+ align-items: center;
48
+ gap: 6px;
49
+ padding: 0 var(--lace-space-2) 0 var(--lace-space-1);
50
+ }
51
+
52
+ /* Collapsed, the header is the card's: a bar across its top. */
53
+ .lace-group-node__header--collapsed {
54
+ background: var(--lace-node-header-bg);
55
+ border-bottom: 1px dashed var(--lace-group-border);
56
+ border-top-left-radius: calc(var(--lace-radius-md) - 1px);
57
+ border-top-right-radius: calc(var(--lace-radius-md) - 1px);
58
+ }
59
+
60
+ /* A collapsed group with no interface pins is its header alone. */
61
+ .lace-group-node--bare .lace-group-node__header--collapsed {
62
+ border-bottom: none;
63
+ border-radius: calc(var(--lace-radius-md) - 1px);
64
+ }
65
+
66
+ /* Expanded, the header is a chip at the container's top-left, the members
67
+ * laid out under it. */
68
+ .lace-group-node__header--expanded {
69
+ position: absolute;
70
+ top: var(--lace-space-1);
71
+ left: var(--lace-space-1);
72
+ max-width: calc(100% - 2 * var(--lace-space-1));
73
+ height: 24px;
74
+ padding-right: var(--lace-space-2);
75
+ background: var(--lace-group-chip-bg);
76
+ border: 1px solid var(--lace-group-border);
77
+ border-radius: var(--lace-radius-md);
78
+ }
79
+
80
+ .lace-group-node__collapse-btn,
81
+ .lace-group-node__ungroup-btn {
82
+ display: flex;
83
+ flex-shrink: 0;
84
+ align-items: center;
85
+ justify-content: center;
86
+ width: 16px;
87
+ height: 16px;
88
+ padding: 0;
89
+ background: none;
90
+ border: none;
91
+ border-radius: var(--lace-radius-sm);
92
+ color: var(--lace-color-text-muted);
93
+ font-size: 12px;
94
+ cursor: pointer;
95
+ line-height: 1;
96
+ }
97
+
98
+ .lace-group-node__collapse-btn:hover,
99
+ .lace-group-node__ungroup-btn:hover {
100
+ color: var(--lace-color-text-primary);
101
+ }
102
+
103
+ .lace-group-node__collapse-btn .lace-canvas-icon,
104
+ .lace-group-node__ungroup-btn .lace-canvas-icon {
105
+ stroke-width: 2;
106
+ }
107
+
108
+ .lace-group-node__glyph {
109
+ display: inline-flex;
110
+ flex-shrink: 0;
111
+ color: var(--lace-color-text-muted);
112
+ font-size: 14px;
113
+ }
114
+
115
+ .lace-group-node__rename-input {
116
+ flex: 1 1 auto;
117
+ min-width: 0;
118
+ padding: 1px var(--lace-space-1);
119
+ background: var(--lace-color-bg-input);
120
+ border: 1px solid var(--lace-color-accent-alpha-medium);
121
+ border-radius: var(--lace-radius-sm);
122
+ color: var(--lace-group-chip-text);
123
+ font-family: var(--lace-font-mono);
124
+ font-size: var(--lace-font-size-sm);
125
+ }
126
+
127
+ /* The group's name: its call's own identifier, in monospace. */
128
+ .lace-group-node__label {
129
+ flex: 0 1 auto;
130
+ min-width: 0;
131
+ overflow: hidden;
132
+ white-space: nowrap;
133
+ text-overflow: ellipsis;
134
+ color: var(--lace-group-chip-text);
135
+ font-family: var(--lace-font-mono);
136
+ font-size: var(--lace-font-size-sm);
137
+ font-weight: var(--lace-font-weight-medium);
138
+ }
139
+
140
+ .lace-group-node__header--collapsed .lace-group-node__label {
141
+ flex: 1 1 auto;
142
+ }
143
+
144
+ .lace-group-node__count {
145
+ flex-shrink: 0;
146
+ color: var(--lace-color-text-muted);
147
+ font-size: var(--lace-font-size-xs);
148
+ white-space: nowrap;
149
+ }
150
+
151
+ .lace-group-node__pin-label {
152
+ max-width: 100%;
153
+ overflow: hidden;
154
+ white-space: nowrap;
155
+ text-overflow: ellipsis;
156
+ color: var(--lace-node-pin-label-wired);
157
+ font-family: var(--lace-font-mono);
158
+ font-size: var(--lace-font-size-xs);
159
+ }
160
+
161
+ /* Same chip shape ModuleNode's own badge row uses (ModuleNode.css) — a
162
+ diagnostic addressed to this group's own scope, not any member's. */
163
+ .lace-group-node__badges {
164
+ position: absolute;
165
+ top: -20px;
166
+ left: 0;
167
+ display: flex;
168
+ gap: 4px;
169
+ max-width: 100%;
170
+ overflow: hidden;
171
+ }
172
+
173
+ .lace-group-node__badge {
174
+ overflow: hidden;
175
+ padding: 1px 6px;
176
+ border-radius: var(--lace-radius-pill);
177
+ white-space: nowrap;
178
+ text-overflow: ellipsis;
179
+ font-size: 9px;
180
+ font-weight: var(--lace-font-weight-medium);
181
+ line-height: 1.4;
182
+ }
183
+
184
+ .lace-group-node__badge--neutral {
185
+ background: var(--lace-color-neutral-400);
186
+ color: var(--lace-color-neutral-900);
187
+ }
188
+
189
+ .lace-group-node__badge--warn {
190
+ background: var(--lace-color-amber-400);
191
+ color: var(--lace-color-neutral-900);
192
+ }
193
+
194
+ .lace-group-node__badge--error {
195
+ background: var(--lace-color-red-alpha-30);
196
+ color: var(--lace-color-text-danger);
197
+ }
@@ -0,0 +1,4 @@
1
+ /* An identifier: monospace wherever the canvas shows one. */
2
+ .lace-identifier {
3
+ font-family: var(--lace-font-mono);
4
+ }
@@ -2,21 +2,31 @@
2
2
  * panels-shared.css; this file captures the bits that don't generalise
3
3
  * (output cards, wired editor row, title eyebrow). */
4
4
 
5
+ /* The inspector's head: what kind of thing it is, small and muted, over the
6
+ * instance's name in monospace — the identifier the module's Terraform
7
+ * calls it by. */
5
8
  .lace-mcp__title {
6
9
  display: flex;
7
10
  flex-direction: column;
8
- gap: var(--lace-space-1);
11
+ gap: 2px;
12
+ min-width: 0;
9
13
  }
10
14
 
11
15
  .lace-mcp__title-eyebrow {
12
- font-size: var(--lace-font-size-md);
13
- opacity: 0.7;
16
+ color: var(--lace-color-text-muted);
17
+ font-size: var(--lace-font-size-xs);
18
+ font-weight: var(--lace-font-weight-bold);
19
+ text-transform: uppercase;
20
+ letter-spacing: 0.06em;
14
21
  }
15
22
 
16
23
  .lace-mcp__title-id {
17
24
  margin: 0;
18
- font-size: var(--lace-font-size-2xl);
25
+ color: var(--lace-color-text-primary);
26
+ font-family: var(--lace-font-mono);
27
+ font-size: var(--lace-font-size-lg);
19
28
  font-weight: var(--lace-font-weight-semibold);
29
+ line-height: var(--lace-line-height-tight);
20
30
  }
21
31
 
22
32
  .lace-mcp__required-star {
@@ -59,12 +69,11 @@
59
69
  }
60
70
 
61
71
  .lace-mcp__depends-label {
62
- font-family: var(--lace-font-mono);
63
- opacity: 0.9;
64
72
  line-height: 1.4;
65
- word-break: break-all;
66
73
  }
67
74
 
75
+ /* Two inputs and the `=` between them share the panel's width: each input
76
+ * takes half of what is left, however narrow. */
68
77
  .lace-mcp__provider-row {
69
78
  display: flex;
70
79
  align-items: center;
@@ -72,6 +81,11 @@
72
81
  margin-bottom: 6px;
73
82
  }
74
83
 
84
+ .lace-mcp__provider-row > .lace-input {
85
+ flex: 1 1 0%;
86
+ min-width: 0;
87
+ }
88
+
75
89
  .lace-mcp__provider-arrow {
76
90
  flex-shrink: 0;
77
91
  color: var(--lace-color-text-muted);
@@ -90,19 +104,24 @@
90
104
 
91
105
  .lace-mcp__output-header {
92
106
  display: flex;
107
+ flex-wrap: wrap;
93
108
  justify-content: space-between;
94
109
  gap: 10px;
95
110
  }
96
111
 
112
+ .lace-mcp__output-header > * {
113
+ min-width: 0;
114
+ }
115
+
97
116
  .lace-mcp__output-name {
117
+ color: var(--lace-color-text-primary);
98
118
  font-size: var(--lace-font-size-md);
99
- font-weight: var(--lace-font-weight-bold);
119
+ font-weight: var(--lace-font-weight-semibold);
100
120
  }
101
121
 
102
122
  .lace-mcp__output-type {
103
- font-family: var(--lace-font-mono);
123
+ color: var(--lace-color-text-muted);
104
124
  font-size: var(--lace-font-size-sm);
105
- opacity: 0.75;
106
125
  }
107
126
 
108
127
  .lace-mcp__output-description {
@@ -3,15 +3,35 @@
3
3
  * constants because PinRow layout depends on them at runtime. Purely
4
4
  * visual properties (colors, radii, transitions) live here. */
5
5
 
6
+ /* A quiet card a step above the paper; the accent is kept for the one
7
+ * selected thing: a lime ring drawn outside the card. */
8
+ /* content-box: the card's height is its header and rows (ModuleNode.tsx's
9
+ * geometry), its border drawn outside them — under the shell's border-box
10
+ * default the header would cover the bottom border of a collapsed card. */
6
11
  .lace-module-node {
7
12
  position: relative;
8
- background: var(--lace-color-bg-canvas);
13
+ box-sizing: content-box;
14
+ background: var(--lace-node-bg);
9
15
  border: 1px solid var(--lace-node-default-border);
10
- border-radius: var(--lace-radius-sm);
11
- box-shadow: var(--lace-shadow-md);
16
+ border-radius: var(--lace-radius-md);
17
+ box-shadow: var(--lace-shadow-sm);
12
18
  font-family: inherit;
13
19
  }
14
20
 
21
+ .react-flow__node.selected > .lace-module-node {
22
+ outline: 1.5px solid var(--lace-node-selected-ring);
23
+ outline-offset: 2px;
24
+ }
25
+
26
+ .react-flow__node:focus-visible {
27
+ outline: none;
28
+ }
29
+
30
+ .react-flow__node:focus-visible > .lace-module-node {
31
+ outline: 2px solid var(--lace-color-focus-ring);
32
+ outline-offset: 2px;
33
+ }
34
+
15
35
  .lace-module-node--error {
16
36
  border-color: var(--lace-node-error-border);
17
37
  box-shadow: 0 0 10px var(--lace-node-error-shadow-color);
@@ -27,33 +47,49 @@
27
47
  display: flex;
28
48
  align-items: center;
29
49
  gap: 6px;
30
- padding: 0 var(--lace-space-2);
31
- background: var(--lace-gunmetal);
32
- border-top-left-radius: var(--lace-radius-sm);
33
- border-top-right-radius: var(--lace-radius-sm);
34
- border-bottom: 1px solid var(--lace-color-green-alpha-10);
50
+ padding: 0 var(--lace-space-2) 0 var(--lace-space-1);
51
+ background: var(--lace-node-header-bg);
52
+ border-top-left-radius: calc(var(--lace-radius-md) - 1px);
53
+ border-top-right-radius: calc(var(--lace-radius-md) - 1px);
54
+ border-bottom: 1px solid var(--lace-node-default-border);
35
55
  overflow: hidden;
36
56
  cursor: pointer;
37
57
  }
38
58
 
59
+ .lace-module-node--collapsed .lace-module-node__header {
60
+ border-radius: calc(var(--lace-radius-md) - 1px);
61
+ }
62
+
39
63
  .lace-module-node--collapsed .lace-module-node__header {
40
64
  border-bottom: none;
41
65
  }
42
66
 
43
67
  .lace-module-node__collapse-btn {
44
68
  display: flex;
69
+ flex-shrink: 0;
45
70
  align-items: center;
46
71
  justify-content: center;
47
- width: 12px;
48
- height: 12px;
72
+ width: 16px;
73
+ height: 16px;
49
74
  padding: 0;
50
75
  background: none;
51
76
  border: none;
52
- color: var(--lace-color-green-alpha-60);
77
+ border-radius: var(--lace-radius-sm);
78
+ color: var(--lace-color-text-muted);
79
+ font-size: 12px;
53
80
  cursor: pointer;
54
81
  line-height: 1;
55
82
  }
56
83
 
84
+ .lace-module-node__collapse-btn:hover {
85
+ color: var(--lace-color-text-primary);
86
+ }
87
+
88
+ .lace-module-node__collapse-btn .lace-canvas-icon,
89
+ .lace-module-node__delete-btn .lace-canvas-icon {
90
+ stroke-width: 2;
91
+ }
92
+
57
93
  .lace-module-node__icon {
58
94
  flex-shrink: 0;
59
95
  border-radius: var(--lace-radius-sm);
@@ -61,7 +97,10 @@
61
97
  }
62
98
 
63
99
  .lace-module-node__icon-fallback {
100
+ display: inline-flex;
64
101
  flex-shrink: 0;
102
+ color: var(--lace-color-text-muted);
103
+ font-size: 16px;
65
104
  }
66
105
 
67
106
  .lace-module-node__rename-input {
@@ -71,18 +110,21 @@
71
110
  background: var(--lace-color-bg-canvas);
72
111
  border: 1px solid var(--lace-color-accent-alpha-medium);
73
112
  border-radius: var(--lace-radius-sm);
74
- color: var(--lace-color-accent);
75
- font-family: inherit;
113
+ color: var(--lace-node-name);
114
+ font-family: var(--lace-font-mono);
76
115
  font-size: var(--lace-font-size-sm);
77
116
  }
78
117
 
118
+ /* The instance's name, the identifier the module's Terraform calls it by,
119
+ * in monospace. */
79
120
  .lace-module-node__label {
80
121
  flex: 1 1 auto;
81
122
  min-width: 0;
82
123
  overflow: hidden;
83
124
  white-space: nowrap;
84
125
  text-overflow: ellipsis;
85
- color: var(--lace-color-accent);
126
+ color: var(--lace-node-name);
127
+ font-family: var(--lace-font-mono);
86
128
  font-size: var(--lace-font-size-sm);
87
129
  font-weight: var(--lace-font-weight-medium);
88
130
  }
@@ -92,17 +134,23 @@
92
134
  align-items: center;
93
135
  justify-content: center;
94
136
  flex-shrink: 0;
95
- width: 14px;
96
- height: 14px;
137
+ width: 18px;
138
+ height: 18px;
97
139
  padding: 0;
98
- background: var(--lace-color-red-alpha-12);
99
- border: 1px solid var(--lace-color-red-alpha-30);
100
- border-radius: var(--lace-radius-pill);
101
- color: var(--lace-color-text-danger);
140
+ background: none;
141
+ border: none;
142
+ border-radius: var(--lace-radius-sm);
143
+ color: var(--lace-color-text-muted);
144
+ font-size: 12px;
102
145
  cursor: pointer;
103
146
  line-height: 1;
104
147
  }
105
148
 
149
+ .lace-module-node__delete-btn:hover {
150
+ background: var(--lace-color-danger-bg-soft);
151
+ color: var(--lace-color-danger-fg);
152
+ }
153
+
106
154
  .lace-module-node__badges {
107
155
  position: absolute;
108
156
  top: -20px;
@@ -147,26 +195,37 @@
147
195
  position: absolute;
148
196
  display: flex;
149
197
  align-items: center;
150
- color: var(--lace-color-green-alpha-60);
151
- font-size: 9px;
152
- font-style: italic;
198
+ color: var(--lace-color-text-muted);
199
+ font-size: var(--lace-font-size-xs);
153
200
  cursor: pointer;
154
201
  }
155
202
 
203
+ .lace-module-node__hidden-count:hover {
204
+ color: var(--lace-color-text-primary);
205
+ }
206
+
207
+ /* A pin's name, monospace like every identifier: muted while nothing feeds
208
+ * it, in the text colour once wired, in the danger tone when nothing sets a
209
+ * required input. */
156
210
  .lace-module-node__pin-row-label {
157
211
  max-width: 100%;
158
212
  overflow: hidden;
159
213
  white-space: nowrap;
160
214
  text-overflow: ellipsis;
215
+ font-family: var(--lace-font-mono);
161
216
  font-size: var(--lace-font-size-xs);
162
217
  }
163
218
 
164
219
  .lace-module-node__pin-row-label--error {
165
- color: var(--lace-color-text-danger);
220
+ color: var(--lace-color-danger-fg);
166
221
  }
167
222
 
168
223
  .lace-module-node__pin-row-label--default {
169
- color: var(--lace-color-neutral-100-alpha-85);
224
+ color: var(--lace-node-pin-label);
225
+ }
226
+
227
+ .lace-module-node__pin-row-label--wired {
228
+ color: var(--lace-node-pin-label-wired);
170
229
  }
171
230
 
172
231
  /* The node-to-node drag's grip: wholly below the card, clear of the header
@@ -175,10 +234,21 @@
175
234
  bottom: -3px;
176
235
  width: 24px;
177
236
  height: 6px;
178
- background: var(--lace-gunmetal);
179
- border: 1px solid var(--lace-color-accent-alpha-medium);
237
+ background: var(--lace-node-header-bg);
238
+ border: 1px solid var(--lace-node-default-border);
180
239
  border-radius: var(--lace-radius-pill);
181
240
  transform: translate(-50%, 100%);
241
+ opacity: 0;
242
+ transition: opacity var(--lace-duration-fast) var(--lace-easing-standard);
243
+ }
244
+
245
+ /* The grip shows on the card under the pointer and on the selected card
246
+ * only, so a resting canvas carries no stray bar under every node. It is
247
+ * still only a drag start. */
248
+ .react-flow__node:hover .lace-module-node__grip,
249
+ .react-flow__node.selected .lace-module-node__grip,
250
+ .lace-module-node__grip:focus-visible {
251
+ opacity: 1;
182
252
  }
183
253
 
184
254
  /* The card as the drop area for that drag: invisible, outlined while a drag
@@ -0,0 +1,25 @@
1
+ /* The canvas's paper (PaperGrid.tsx): a layer filling the flow pane behind
2
+ * the graph, painted by the tokens' `.lace-paper-layers` recipe. The recipe
3
+ * reads `--lace-paper-pitch-*` and `--lace-paper-thread-*`; here they are
4
+ * the canvas paper's, scaled by the viewport's zoom (`--paper-zoom`) and
5
+ * faded as the threads crowd (`--paper-fine`, `--paper-major`), and the
6
+ * four layers start at the viewport's pan (`--paper-x`, `--paper-y`). */
7
+ .lace-canvas-paper {
8
+ position: absolute;
9
+ inset: 0;
10
+ z-index: -1;
11
+ pointer-events: none;
12
+ --lace-paper-pitch-fine: calc(var(--lace-canvas-paper-pitch-fine) * var(--paper-zoom, 1));
13
+ --lace-paper-pitch-major: calc(var(--lace-canvas-paper-pitch-major) * var(--paper-zoom, 1));
14
+ --lace-paper-thread-fine: color-mix(
15
+ in srgb,
16
+ var(--lace-canvas-paper-thread-fine) var(--paper-fine, 100%),
17
+ transparent
18
+ );
19
+ --lace-paper-thread-major: color-mix(
20
+ in srgb,
21
+ var(--lace-canvas-paper-thread-major) var(--paper-major, 100%),
22
+ transparent
23
+ );
24
+ background-position: var(--paper-x, 0) var(--paper-y, 0);
25
+ }
@@ -0,0 +1,36 @@
1
+ /* A toolbar action's tooltip: its name with its key set apart on the right,
2
+ * and, while it cannot run, why on a muted line under them. The name is the
3
+ * tooltip's name line and the key and the reason its description, so the
4
+ * description draws no box of its own and the three lay out on the bubble's
5
+ * grid: the name in the first column, the key in the second, the reason
6
+ * across both. */
7
+
8
+ .lace-tooltip__bubble:has(.lace-action-tip) {
9
+ display: grid;
10
+ grid-template-columns: 1fr max-content;
11
+ row-gap: 2px;
12
+ align-items: baseline;
13
+ }
14
+
15
+ .lace-tooltip__bubble:has(.lace-action-tip) .lace-tooltip__description,
16
+ .lace-action-tip {
17
+ display: contents;
18
+ }
19
+
20
+ .lace-action-tip__key {
21
+ grid-column: 2;
22
+ margin-inline-start: var(--lace-space-3);
23
+ font-family: var(--lace-font-mono);
24
+ font-size: var(--lace-font-size-xs);
25
+ letter-spacing: 0.04em;
26
+ }
27
+
28
+ .lace-action-tip__reason {
29
+ display: block;
30
+ grid-column: 1 / -1;
31
+ }
32
+
33
+ /* The toolbar's labelled buttons keep their glyph at the toolbar's size. */
34
+ .lace-toolbar-action .lace-btn__icon {
35
+ font-size: 14px;
36
+ }
@@ -0,0 +1,16 @@
1
+ /* A panel's commit: sticky at the foot of the panel's scroll while the
2
+ * section it commits is in view, on the panel's own surface so the fields
3
+ * scrolling under it do not show through. In a panel's footer it is already
4
+ * pinned and takes the footer's padding. */
5
+ .lace-commit-foot {
6
+ position: sticky;
7
+ bottom: 0;
8
+ z-index: 1;
9
+ padding-block: var(--lace-space-3);
10
+ background: var(--lace-color-bg-surface);
11
+ }
12
+
13
+ .lace-panel__footer > .lace-commit-foot {
14
+ position: static;
15
+ padding-block: 0;
16
+ }