@axiapps/axi-design 1.24.0 → 1.25.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/README.md +1 -0
- package/dist/axi.css +31 -4
- package/package.json +1 -1
- package/src/shells.css +29 -2
- package/src/tokens.css +2 -2
package/README.md
CHANGED
|
@@ -142,6 +142,7 @@ not "what does the system look like". Everything else is
|
|
|
142
142
|
| `--axi-well-radius` | an `.axi-well`'s corner radius, for a well used at reading scale rather than page scale | `var(--axi-radius)` | `<div class="axi-well" style="--axi-well-radius: var(--axi-radius-sm)">` |
|
|
143
143
|
| `--axi-rail-w` | an `.axi-rail`'s width, for labels longer than the default holds | `208px` | `<aside class="axi-rail" style="--axi-rail-w: 260px">` |
|
|
144
144
|
| `--axi-rail-pad` | the padding inside an `.axi-rail` | `10px` | `<aside class="axi-rail" style="--axi-rail-pad: 6px">` |
|
|
145
|
+
| `--axi-toolbar-pad` | the padding inside an `.axi-toolbar` | `14px` | `<div class="axi-toolbar" style="--axi-toolbar-pad: 4px 7px">` |
|
|
145
146
|
| `--axi-avatar-size` | the size of an `.axi-avatar` square | `40px` | `<span class="axi-avatar" style="--axi-avatar-size: 28px">MS</span>` |
|
|
146
147
|
| `--axi-modal-width` | the maximum width of an `.axi-modal`, before the viewport clamp | `560px` | `<dialog class="axi-modal" style="--axi-modal-width: 760px">` |
|
|
147
148
|
| `--axi-card-strip` | the colour of `.axi-card--strip`'s top strip | `var(--axi-accent)` | `<a class="axi-card axi-card--strip" style="--axi-card-strip: var(--axi-ok)">` |
|
package/dist/axi.css
CHANGED
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
--axi-surface-raised: #2b313d;
|
|
39
39
|
/* The fill for a surface that FLOATS over content which scrolls behind it:
|
|
40
40
|
the command palette, the menu and picker popovers, the modal, the drawer,
|
|
41
|
-
the toast, and any .axi-panel--float
|
|
42
|
-
declares. Holds --axi-surface, because for
|
|
41
|
+
the toast, and any .axi-panel--float, .axi-rail--float or
|
|
42
|
+
.axi-toolbar--float a consumer declares. Holds --axi-surface, because for
|
|
43
43
|
a theme whose panels are opaque a floating panel is just a panel and there
|
|
44
44
|
is nothing to decide.
|
|
45
45
|
|
|
@@ -1148,7 +1148,13 @@ textarea.axi-input {
|
|
|
1148
1148
|
.axi-rail:not(.axi-rail--flush) { box-shadow: var(--axi-shadow-panel); }
|
|
1149
1149
|
.axi-rail--flush {
|
|
1150
1150
|
border: 0;
|
|
1151
|
-
|
|
1151
|
+
/* Logical, not physical: the border faces the content, and which physical
|
|
1152
|
+
side that is depends on the writing direction. `border-right` was correct
|
|
1153
|
+
only for an LTR rail pinned to the leading edge - under RTL it drew the
|
|
1154
|
+
seam on the outside, facing the viewport. Note that this still assumes the
|
|
1155
|
+
LEADING edge; a rail pinned to the trailing edge of its content needs the
|
|
1156
|
+
other border and has no way to ask for it yet. */
|
|
1157
|
+
border-inline-end: var(--axi-border-panel) solid var(--axi-ink-line);
|
|
1152
1158
|
border-radius: 0;
|
|
1153
1159
|
}
|
|
1154
1160
|
/* A rail the page scrolls behind, rather than one the page sits beside.
|
|
@@ -1244,13 +1250,34 @@ textarea.axi-input {
|
|
|
1244
1250
|
/* ---------- toolbar ---------- */
|
|
1245
1251
|
.axi-toolbar {
|
|
1246
1252
|
display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
|
|
1247
|
-
|
|
1253
|
+
/* Own knob, like .axi-panel's and .axi-rail's. The toolbar was the one
|
|
1254
|
+
container in this language whose padding was a literal, and 14px is a
|
|
1255
|
+
figure for a strip above a list - a transport bar over a video or a map
|
|
1256
|
+
is the same object at a third of the height, and had no way to say so
|
|
1257
|
+
without writing its own padding and losing the component. */
|
|
1258
|
+
padding: var(--axi-toolbar-pad, 14px);
|
|
1248
1259
|
background: var(--axi-surface);
|
|
1249
1260
|
backdrop-filter: var(--axi-surface-filter);
|
|
1250
1261
|
border: var(--axi-border-panel) solid var(--axi-ink-line);
|
|
1251
1262
|
border-radius: var(--axi-radius);
|
|
1252
1263
|
box-shadow: var(--axi-shadow-panel);
|
|
1253
1264
|
}
|
|
1265
|
+
/* A toolbar that floats over moving content rather than sitting above it: the
|
|
1266
|
+
controls pinned over a map, a chart, a replay. Says exactly what
|
|
1267
|
+
.axi-panel--float and .axi-rail--float say, and for the same reason -
|
|
1268
|
+
--axi-surface-float's own note lists the surfaces that need it and the
|
|
1269
|
+
toolbar was missing from that list, which is the whole of the bug. A strip
|
|
1270
|
+
above a list is not floating and keeps the plain surface; a strip over a
|
|
1271
|
+
map is, and a translucent one shows the map through its own labels on any
|
|
1272
|
+
platform where the blur is unavailable. */
|
|
1273
|
+
.axi-toolbar--float { background: var(--axi-surface-float); }
|
|
1274
|
+
/* A toolbar that must not become two rows. The wrap is right for a strip
|
|
1275
|
+
above a list, where losing a filter off the edge is worse than a second
|
|
1276
|
+
line - and wrong for a bar whose height other things are positioned
|
|
1277
|
+
against, because wrapping moves everything around it. Stated as its own
|
|
1278
|
+
modifier rather than left to each consumer's inline style, so the reason
|
|
1279
|
+
lives here instead of in a comment in somebody's component. */
|
|
1280
|
+
.axi-toolbar--nowrap { flex-wrap: nowrap; }
|
|
1254
1281
|
|
|
1255
1282
|
/* ---------- menu popover ---------- */
|
|
1256
1283
|
/* A disclosure, not a permanent row of controls. The trigger is an .axi-btn
|
package/package.json
CHANGED
package/src/shells.css
CHANGED
|
@@ -178,7 +178,13 @@
|
|
|
178
178
|
.axi-rail:not(.axi-rail--flush) { box-shadow: var(--axi-shadow-panel); }
|
|
179
179
|
.axi-rail--flush {
|
|
180
180
|
border: 0;
|
|
181
|
-
|
|
181
|
+
/* Logical, not physical: the border faces the content, and which physical
|
|
182
|
+
side that is depends on the writing direction. `border-right` was correct
|
|
183
|
+
only for an LTR rail pinned to the leading edge - under RTL it drew the
|
|
184
|
+
seam on the outside, facing the viewport. Note that this still assumes the
|
|
185
|
+
LEADING edge; a rail pinned to the trailing edge of its content needs the
|
|
186
|
+
other border and has no way to ask for it yet. */
|
|
187
|
+
border-inline-end: var(--axi-border-panel) solid var(--axi-ink-line);
|
|
182
188
|
border-radius: 0;
|
|
183
189
|
}
|
|
184
190
|
/* A rail the page scrolls behind, rather than one the page sits beside.
|
|
@@ -274,13 +280,34 @@
|
|
|
274
280
|
/* ---------- toolbar ---------- */
|
|
275
281
|
.axi-toolbar {
|
|
276
282
|
display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
|
|
277
|
-
|
|
283
|
+
/* Own knob, like .axi-panel's and .axi-rail's. The toolbar was the one
|
|
284
|
+
container in this language whose padding was a literal, and 14px is a
|
|
285
|
+
figure for a strip above a list - a transport bar over a video or a map
|
|
286
|
+
is the same object at a third of the height, and had no way to say so
|
|
287
|
+
without writing its own padding and losing the component. */
|
|
288
|
+
padding: var(--axi-toolbar-pad, 14px);
|
|
278
289
|
background: var(--axi-surface);
|
|
279
290
|
backdrop-filter: var(--axi-surface-filter);
|
|
280
291
|
border: var(--axi-border-panel) solid var(--axi-ink-line);
|
|
281
292
|
border-radius: var(--axi-radius);
|
|
282
293
|
box-shadow: var(--axi-shadow-panel);
|
|
283
294
|
}
|
|
295
|
+
/* A toolbar that floats over moving content rather than sitting above it: the
|
|
296
|
+
controls pinned over a map, a chart, a replay. Says exactly what
|
|
297
|
+
.axi-panel--float and .axi-rail--float say, and for the same reason -
|
|
298
|
+
--axi-surface-float's own note lists the surfaces that need it and the
|
|
299
|
+
toolbar was missing from that list, which is the whole of the bug. A strip
|
|
300
|
+
above a list is not floating and keeps the plain surface; a strip over a
|
|
301
|
+
map is, and a translucent one shows the map through its own labels on any
|
|
302
|
+
platform where the blur is unavailable. */
|
|
303
|
+
.axi-toolbar--float { background: var(--axi-surface-float); }
|
|
304
|
+
/* A toolbar that must not become two rows. The wrap is right for a strip
|
|
305
|
+
above a list, where losing a filter off the edge is worse than a second
|
|
306
|
+
line - and wrong for a bar whose height other things are positioned
|
|
307
|
+
against, because wrapping moves everything around it. Stated as its own
|
|
308
|
+
modifier rather than left to each consumer's inline style, so the reason
|
|
309
|
+
lives here instead of in a comment in somebody's component. */
|
|
310
|
+
.axi-toolbar--nowrap { flex-wrap: nowrap; }
|
|
284
311
|
|
|
285
312
|
/* ---------- menu popover ---------- */
|
|
286
313
|
/* A disclosure, not a permanent row of controls. The trigger is an .axi-btn
|
package/src/tokens.css
CHANGED
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
--axi-surface-raised: #2b313d;
|
|
35
35
|
/* The fill for a surface that FLOATS over content which scrolls behind it:
|
|
36
36
|
the command palette, the menu and picker popovers, the modal, the drawer,
|
|
37
|
-
the toast, and any .axi-panel--float
|
|
38
|
-
declares. Holds --axi-surface, because for
|
|
37
|
+
the toast, and any .axi-panel--float, .axi-rail--float or
|
|
38
|
+
.axi-toolbar--float a consumer declares. Holds --axi-surface, because for
|
|
39
39
|
a theme whose panels are opaque a floating panel is just a panel and there
|
|
40
40
|
is nothing to decide.
|
|
41
41
|
|