@alis-build/design-system 0.55.0 → 0.56.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/alisx.css +20 -0
- package/classes.json +1 -0
- package/components/AppGlassView.md +6 -1
- package/components/AppShell.md +2 -1
- package/package.json +1 -1
- package/rules/anti-patterns.md +2 -1
- package/rules/glass.md +32 -4
- package/rules/motion.md +5 -2
- package/rules/page.md +2 -0
- package/rules/shortcuts.md +1 -1
package/alisx.css
CHANGED
|
@@ -767,6 +767,13 @@ a.app-row,a.app-card{text-decoration:none}
|
|
|
767
767
|
.app-shell--file .app-shell__main .app-titlebar__lead .app-titlebar__label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
|
|
768
768
|
.app-file-pane{display:flex;flex-direction:column;gap:0;min-width:0;min-height:0;background:var(--background)}
|
|
769
769
|
.app-shell__detail>.app-file-pane{flex:1}
|
|
770
|
+
|
|
771
|
+
/* ── Glass view · the view takes the window (rules/glass.md § It takes the window): from 600 the navigation pane steps away.
|
|
772
|
+
It stays in the markup, so the page change can carry it out over its leading edge and back (§ Changing page, below) ── */
|
|
773
|
+
.app-shell--glass>.app-shell__nav{display:none}
|
|
774
|
+
.app-shell.app-shell--glass{grid-template-columns:minmax(0,1fr)}
|
|
775
|
+
.app-shell.app-shell--glass.app-shell--detail{grid-template-columns:minmax(0,1fr) var(--detail-width)}
|
|
776
|
+
@media (max-width:839px){.app-shell.app-shell--glass.app-shell--detail{grid-template-columns:minmax(0,1fr)}}
|
|
770
777
|
.app-file-pane__bar{flex:none;display:flex;align-items:center;gap:var(--space-8);min-height:64px;padding:var(--space-12)}
|
|
771
778
|
.app-file-pane__name{flex:1;min-width:0;display:flex;flex-direction:column}
|
|
772
779
|
.app-file-pane__name>*{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
@@ -1559,6 +1566,8 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
|
|
|
1559
1566
|
@keyframes app-from-end{from{translate:var(--space-24) 0}}
|
|
1560
1567
|
@keyframes app-from-foot{from{translate:0 100%}}
|
|
1561
1568
|
@keyframes app-from-start{from{translate:calc(var(--space-24) * -1) 0}}
|
|
1569
|
+
@keyframes app-to-edge{to{translate:-100% 0}}
|
|
1570
|
+
@keyframes app-from-edge{from{translate:-100% 0}}
|
|
1562
1571
|
/* Reveals: the clip opens along one axis, 40px outside the box so the deepest shadow shows, and is gone once it has played */
|
|
1563
1572
|
@keyframes app-reveal-down{from{clip-path:inset(-40px -40px calc(100% + 40px) -40px)}to{clip-path:inset(-40px)}}
|
|
1564
1573
|
@keyframes app-reveal-up{from{clip-path:inset(calc(100% + 40px) -40px -40px -40px)}to{clip-path:inset(-40px)}}
|
|
@@ -1643,6 +1652,8 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
|
|
|
1643
1652
|
.app-shell:not(.app-shell--detail):not(.app-shell--file):not(.app-shell--file-expanded){grid-template-columns:var(--nav-width) minmax(0,1fr) 0px}
|
|
1644
1653
|
.app-shell:not(.app-shell--file):not(.app-shell--file-expanded)>.app-shell__detail{min-width:var(--detail-width)}
|
|
1645
1654
|
.app-shell--file,.app-shell--file-expanded{transition:none}
|
|
1655
|
+
/* A Glass view keeps the closed detail pane's 0px track, so the shortcut sheet still opens on the spring */
|
|
1656
|
+
.app-shell.app-shell--glass:not(.app-shell--detail):not(.app-shell--file):not(.app-shell--file-expanded){grid-template-columns:minmax(0,1fr) 0px}
|
|
1646
1657
|
}
|
|
1647
1658
|
@media (max-width:839px){
|
|
1648
1659
|
.app-shell__detail{transition:translate var(--spring-default-spatial),box-shadow var(--spring-default-effects),opacity var(--spring-fast-effects)}
|
|
@@ -1663,16 +1674,25 @@ a.app-token,button.app-token{border:0;font:inherit;font-weight:600;cursor:pointe
|
|
|
1663
1674
|
stay put. A shared view-transition-name on two elements (a tile and the file pane it opens) morphs one into the other */
|
|
1664
1675
|
.app-shell__content{view-transition-name:app-content}
|
|
1665
1676
|
.app-dock{view-transition-name:app-dock}
|
|
1677
|
+
.app-shell__nav{view-transition-name:app-nav}
|
|
1666
1678
|
::view-transition-old(root),::view-transition-new(root){animation:none}
|
|
1667
1679
|
::view-transition-group(*){animation-duration:var(--spring-default-spatial-duration);animation-timing-function:var(--spring-default-spatial-easing)}
|
|
1668
1680
|
::view-transition-old(app-content){animation:app-fade-out var(--spring-fast-effects) both}
|
|
1669
1681
|
::view-transition-new(app-content){animation:app-fade-in var(--spring-default-effects) var(--spring-fast-effects-duration) both}
|
|
1670
1682
|
:root:active-view-transition-type(forward)::view-transition-new(app-content){animation:app-fade-in var(--spring-default-effects) var(--spring-fast-effects-duration) both,app-from-end var(--spring-default-spatial) var(--spring-fast-effects-duration) both}
|
|
1671
1683
|
:root:active-view-transition-type(back)::view-transition-new(app-content){animation:app-fade-in var(--spring-default-effects) var(--spring-fast-effects-duration) both,app-from-start var(--spring-default-spatial) var(--spring-fast-effects-duration) both}
|
|
1684
|
+
/* The navigation pane changes in place, like the rest of the shell, except into and out of a Glass view: there it is on one
|
|
1685
|
+
side only, so it goes back over its leading edge as the content widens, and comes back the same way */
|
|
1686
|
+
::view-transition-old(app-nav),::view-transition-new(app-nav){animation:none}
|
|
1687
|
+
::view-transition-old(app-nav):only-child{animation:app-to-edge var(--spring-default-spatial) both}
|
|
1688
|
+
::view-transition-new(app-nav):only-child{animation:app-from-edge var(--spring-default-spatial) both}
|
|
1689
|
+
@media (max-width:599px){::view-transition-old(app-nav):only-child{animation:app-to-edge var(--spring-slow-spatial) both}}
|
|
1672
1690
|
|
|
1673
1691
|
/* Reduced motion: where a move was all there was, a fade takes its place, and what folds away waits for the fade */
|
|
1674
1692
|
@media (prefers-reduced-motion:reduce){
|
|
1675
1693
|
.app-shell:not(.app-shell--detail):not(.app-shell--file):not(.app-shell--file-expanded)>.app-shell__detail{opacity:0}
|
|
1694
|
+
::view-transition-old(app-nav):only-child{animation:app-fade-out var(--spring-fast-effects) both}
|
|
1695
|
+
::view-transition-new(app-nav):only-child{animation:app-fade-in var(--spring-default-effects) both}
|
|
1676
1696
|
@starting-style{.app-shell__detail.is-arriving{opacity:0}}
|
|
1677
1697
|
.app-shell:not(.app-shell--detail):not(.app-shell--file):not(.app-shell--file-expanded){transition:grid-template-columns 0s var(--spring-fast-effects-duration)}
|
|
1678
1698
|
.app-shell__detail{transition:opacity var(--spring-fast-effects)}
|
package/classes.json
CHANGED
|
@@ -7,6 +7,7 @@ The live inside of one running thing of yours: a pane to read on the leading edg
|
|
|
7
7
|
See [glass.md](../rules/glass.md), which says what goes where; this guide is the markup.
|
|
8
8
|
|
|
9
9
|
- **One per running thing**, at its own address, under an [AppTitleBar](AppTitleBar.md) titled "Glass view" with back naming the thing ("Back to Acme"). The bar holds no docs link: the pane's is its last line. ⋯ stays last.
|
|
10
|
+
- **It takes the window**: `app-shell--glass` on the [AppShell](AppShell.md) while it is open, so from 600 wide the navigation pane steps away and the view has the width ([glass.md](../rules/glass.md) § It takes the window).
|
|
10
11
|
- **Never for a thing with nothing running behind it.** That page is the docs.
|
|
11
12
|
- **`.app-glass` holds `.app-glass__body`, which holds the pane and the field.** `.app-glass` is a container: when it is 1000 or wider the pane sits at the leading edge, 420 wide and sticky, and the field takes the rest; narrower, the pane comes first and the field under it. It is the space the view has that decides, not the window, so a narrowed content area stacks too.
|
|
12
13
|
- **On a phone** the field is drawn smaller and still (the system stops its motion below 600), and every part with words is reached from the pane's "What you're looking at".
|
|
@@ -24,6 +25,8 @@ See [glass.md](../rules/glass.md), which says what goes where; this guide is the
|
|
|
24
25
|
## Markup
|
|
25
26
|
|
|
26
27
|
```html
|
|
28
|
+
<!-- In the shell's content, under the title bar ("Glass view", back named for the thing):
|
|
29
|
+
<div class="app-shell app-shell--glass"> keeps its navigation pane in the markup, and the CSS hides it -->
|
|
27
30
|
<div class="app-glass">
|
|
28
31
|
<div class="app-glass__body">
|
|
29
32
|
<div class="app-glass__pane">
|
|
@@ -115,6 +118,8 @@ See [glass.md](../rules/glass.md), which says what goes where; this guide is the
|
|
|
115
118
|
|
|
116
119
|
## Behaviour you must supply
|
|
117
120
|
|
|
121
|
+
- **Taking the window.** Render the Glass view's page with `app-shell--glass` on the shell and the navigation pane still in it, and go to it through the page change, `forward` going in and `back` coming out ([motion.md](../rules/motion.md) § Changing page): the CSS carries the pane out over its leading edge and back. Keep it out of the markup and it can't come back on the spring.
|
|
122
|
+
- **Esc, one step at a time**: with a part open it closes the part; with none open it leaves the view, the same history step as back. Register it in your list of keys.
|
|
118
123
|
- **States** ([glass.md](../rules/glass.md) § States): skeleton while the first read loads, the section error if it fails, and "Read 4 min ago" with a still field when the live stream drops.
|
|
119
124
|
- **Live or still.** Add `is-live` to the field, and to the reading's mark, while you receive live state for the thing. Take both off when the stream drops, the run ends or the page is hidden (`visibilitychange`). Off, the field is still and every particle is gone.
|
|
120
125
|
- **The reading and every word** come from the state when it arrives; rewrite them as it changes. The notable sentence goes in `<strong>`.
|
|
@@ -127,4 +132,4 @@ See [glass.md](../rules/glass.md), which says what goes where; this guide is the
|
|
|
127
132
|
|
|
128
133
|
## Classes
|
|
129
134
|
|
|
130
|
-
`.app-glass`, `.app-glass__body`, `.app-glass__pane`, `.app-glass__view`, `.app-glass__head`, `.app-glass__standing`, `.app-glass__section`, `.app-glass__field`, `.is-live`, `.app-glass-reading`, `.app-glass-reading__live`, `.app-glass-reading__text`, `.app-glass-since`, `.app-glass-say`, `.is-hot`, `.app-glass-part`, `.app-glass-part--pill`, `.app-glass-part--card`, `.app-glass-part--round`, `.is-lit`, `.is-failed`, `.is-forming`, `.is-quiet`, `.is-selected`, `.app-glass-word`, `.is-warning`, `.is-error`, `.app-glass-band`, `.app-glass-link`, `.app-glass-guide`, `.app-glass-particle`, `.app-glass-travel`, `.app-glass-pulse`, `.app-glass-mark`, `.app-glass-mark__glint`, `.app-glass-mark__live`.
|
|
135
|
+
`.app-shell--glass` (on the [AppShell](AppShell.md)), `.app-glass`, `.app-glass__body`, `.app-glass__pane`, `.app-glass__view`, `.app-glass__head`, `.app-glass__standing`, `.app-glass__section`, `.app-glass__field`, `.is-live`, `.app-glass-reading`, `.app-glass-reading__live`, `.app-glass-reading__text`, `.app-glass-since`, `.app-glass-say`, `.is-hot`, `.app-glass-part`, `.app-glass-part--pill`, `.app-glass-part--card`, `.app-glass-part--round`, `.is-lit`, `.is-failed`, `.is-forming`, `.is-quiet`, `.is-selected`, `.app-glass-word`, `.is-warning`, `.is-error`, `.app-glass-band`, `.app-glass-link`, `.app-glass-guide`, `.app-glass-particle`, `.app-glass-travel`, `.app-glass-pulse`, `.app-glass-mark`, `.app-glass-mark__glint`, `.app-glass-mark__live`.
|
package/components/AppShell.md
CHANGED
|
@@ -18,6 +18,7 @@ See [surfaces.md](../rules/surfaces.md) and [page.md](../rules/page.md).
|
|
|
18
18
|
- **Content**: an [AppTitleBar](AppTitleBar.md), then `.app-shell__content`, which pads 24 on every side (32 below) and fills the pane, holding the filter row and the list, table or document.
|
|
19
19
|
- **Detail pane** (`detail-width`, 360px): what is selected in the content, led by a detail title bar. It sits on the ground behind a divider, never on a card, and scrolls on its own. **It has a URL** (a query parameter, as search keeps `?q=`), so a refresh, a shared link and back all find it. The [AppShortcutSheet](AppShortcutSheet.md) opens in its place: the content narrows for it, or it covers an open detail pane until it closes. Below 840px it slides over the content at `elevation-3`, over a scrim.
|
|
20
20
|
- **A file beside the conversation** ([AppFilePane](AppFilePane.md)) is the detail pane made wide: `app-shell--file`. From 1200 the content takes two parts and the file three; below it the file takes the content's place; `app-shell--file-expanded` does the same at any width. It never slides over at `elevation-3`. Beside the conversation it is a card with an edge, the one pane that is (a file is an object); in the content's place it is flat.
|
|
21
|
+
- **A Glass view takes the window** ([AppGlassView](AppGlassView.md)): `app-shell--glass`. From 600 the navigation pane steps away and the content has the width; the pane stays in the markup, so the page change carries it out over its leading edge and back ([glass.md](../rules/glass.md) § It takes the window). The shortcut sheet still opens in the detail pane's place. Never with `app-shell--file`.
|
|
21
22
|
- **On a phone** (below 600px) the shell is one column: the content, under a one-row title bar ([AppTitleBar](AppTitleBar.md) § On a phone).
|
|
22
23
|
- **The navigation pane fills the screen**: the same pane, brand, groups, agent chats, a contextual rail's head and foot unchanged, hidden until the title bar's menu button opens it (`app-shell--nav-open`). It lies on the ground, edge to edge inside the safe area: nothing shows behind it, so no scrim and no elevation. Its close (`.app-shell__nav-close`, "Close navigation") sits in its head beside the brand. Never a column of icons: it hid the agent chats, the place you go back to most, and left the content too little room.
|
|
23
24
|
- **The detail pane covers the full width**, and its bar leads with back (`arrow_back`) instead of close: on a phone it reads as a step deeper, and the phone's own back gesture closes it.
|
|
@@ -161,4 +162,4 @@ Usage lives here, never in a title bar: it measures the account, not the screen
|
|
|
161
162
|
|
|
162
163
|
## Classes
|
|
163
164
|
|
|
164
|
-
`.app-shell`, `.app-shell--detail`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`, `.is-arriving`; `.app-shell--nav-open`, `.app-shell__nav-close`; `.app-brand`, `.app-brand__wordmark`; `.app-nav-heading`, `.app-nav-secondary`; `.app-nav-switcher`, `.app-nav-switcher__text`, `.app-nav-switcher__kind`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
|
|
165
|
+
`.app-shell`, `.app-shell--detail`, `.app-shell--glass`, `.app-shell__nav`, `.app-shell__nav-foot`, `.app-shell__main`, `.app-shell__content`, `.app-shell__detail`, `.is-arriving`; `.app-shell--nav-open`, `.app-shell__nav-close`; `.app-brand`, `.app-brand__wordmark`; `.app-nav-heading`, `.app-nav-secondary`; `.app-nav-switcher`, `.app-nav-switcher__text`, `.app-nav-switcher__kind`; `.app-account`, `.app-account__avatar`, `.app-account__text`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alis-build/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.0",
|
|
4
4
|
"description": "The AlisX design system for coding agents: tokens, product CSS, component markup, capability marks, words and rules.",
|
|
5
5
|
"keywords": ["alisx", "design-system", "design-tokens", "css"],
|
|
6
6
|
"homepage": "https://alisx.com",
|
package/rules/anti-patterns.md
CHANGED
|
@@ -83,7 +83,8 @@ Eight questions, about a minute. **Run this before handing work back.**
|
|
|
83
83
|
the docs too; a Glass view's pane may explain freely ([glass.md](glass.md)).
|
|
84
84
|
8. **On a Glass view: does everything that moves have a live cause?** Motion with
|
|
85
85
|
nothing live behind it, more than three parts lit, a reason floating on the
|
|
86
|
-
field,
|
|
86
|
+
field, the reading anywhere but first, or the navigation pane still beside it
|
|
87
|
+
→ [glass.md](glass.md).
|
|
87
88
|
|
|
88
89
|
## The agent failure mode
|
|
89
90
|
|
package/rules/glass.md
CHANGED
|
@@ -41,6 +41,31 @@ opens is the docs, whatever it is called.
|
|
|
41
41
|
4. **The mark answers**: as you reach for the button the light slides along its
|
|
42
42
|
rim, and while what it watches is running its live part turns (§ Motion).
|
|
43
43
|
|
|
44
|
+
## It takes the window
|
|
45
|
+
|
|
46
|
+
**From 600 wide a Glass view takes the window**: the navigation pane steps away
|
|
47
|
+
(`app-shell--glass`, [AppShell](../components/AppShell.md)). Opening a Glass view
|
|
48
|
+
is leaning in on one thing, not moving between places, and the field needs the
|
|
49
|
+
room: beside the navigation pane it would have about 520 at 1280.
|
|
50
|
+
|
|
51
|
+
- **It goes and comes back on the page change**: the navigation pane goes back
|
|
52
|
+
over its leading edge as the view widens into its place, and leaving brings it
|
|
53
|
+
back the same way ([motion.md](motion.md) § Changing page).
|
|
54
|
+
- **The title bar stays**: "Glass view", back leading and named for the thing
|
|
55
|
+
("Back to Acme"). It is the way out.
|
|
56
|
+
- **Esc goes one step at a time**: it closes an open part, and with none open it
|
|
57
|
+
leaves the view, as back does.
|
|
58
|
+
- **Its address holds it** (`…/glass`, a part as `?part=`), so a refresh, a
|
|
59
|
+
shared link and the browser's back all land where they should, and leaving
|
|
60
|
+
returns to the thing as you left it ([page.md](page.md) § Where back goes).
|
|
61
|
+
- **It is a screen, not a full-size view**: back leads, not Close, because you
|
|
62
|
+
went into it ([page.md](page.md) § A full-size view).
|
|
63
|
+
- **The shortcut sheet** opens beside it as on any screen; the view narrows for
|
|
64
|
+
it.
|
|
65
|
+
- **On a phone** the screen is the content alone already, so nothing steps away.
|
|
66
|
+
- **Never a column of icons in the pane's place**: it keeps chrome the view has
|
|
67
|
+
no use for and still takes the field's room.
|
|
68
|
+
|
|
44
69
|
## The view: a pane to read, a field to look at
|
|
45
70
|
|
|
46
71
|
[AppGlassView](../components/AppGlassView.md). The pane holds the words, 420 wide
|
|
@@ -80,8 +105,8 @@ Select a part and **the pane becomes that part**: Close leads (the whole view is
|
|
|
80
105
|
still behind it, [page.md](page.md) § Close or back), then the thing and where it is
|
|
81
106
|
(eyebrow), its value or name (`text-section-title`: the bar keeps the page title),
|
|
82
107
|
its standing in a word or two in its status ink, why it is like this, what to do,
|
|
83
|
-
its facts, one outlined action, and a docs link where one helps.
|
|
84
|
-
returns to the whole. The selected part keeps its ring on the field, so the eye
|
|
108
|
+
its facts, one outlined action, and a docs link where one helps. Close, the
|
|
109
|
+
browser's back or Esc returns to the whole. The selected part keeps its ring on the field, so the eye
|
|
85
110
|
knows what the words are about: a 2px `on-surface` ring, hover 1px `primary`,
|
|
86
111
|
focus 2px `primary` ([selection.md](selection.md) § A mark whose fill is already
|
|
87
112
|
meaning).
|
|
@@ -149,7 +174,8 @@ meaning).
|
|
|
149
174
|
- **Every part with words is a link** to its view (`?part=…`), and so is every
|
|
150
175
|
sentence about it. J and K move focus through those parts on the field, in the
|
|
151
176
|
order the pane first mentions them; Enter opens one; with a part open, J and K
|
|
152
|
-
open the next and previous part's view; Esc closes it
|
|
177
|
+
open the next and previous part's view; Esc closes it, and with no part open Esc
|
|
178
|
+
leaves the view ([shortcuts.md](shortcuts.md)).
|
|
153
179
|
- **The pane is the field's text equivalent**: every lit part has a sentence, and
|
|
154
180
|
the drawing itself (bands, links, guides, particles) is `aria-hidden`.
|
|
155
181
|
- **Values are real and copy in one click**: names, versions, IDs, commands.
|
|
@@ -166,6 +192,7 @@ the glass, the mark and the motion, never a dark ground of its own.
|
|
|
166
192
|
- A Glass view of a thing with nothing running behind it.
|
|
167
193
|
- Motion with no live cause, or more than three parts lit at once.
|
|
168
194
|
- A reason card floating on the field: the reason is in the pane.
|
|
195
|
+
- A Glass view beside the navigation pane, or with a column of icons in its place.
|
|
169
196
|
- Glass anywhere but on a Glass view's field.
|
|
170
197
|
|
|
171
198
|
## What checks it
|
|
@@ -184,4 +211,5 @@ the glass, the mark and the motion, never a dark ground of its own.
|
|
|
184
211
|
label is common English, so it is advice only, and the review's to catch.
|
|
185
212
|
- **At hand-back**: [anti-patterns.md](anti-patterns.md) § Smell test, question 8,
|
|
186
213
|
covers what no check can see: a Glass view of a thing with nothing running, the
|
|
187
|
-
reading not first, a reason floating on the field
|
|
214
|
+
reading not first, a reason floating on the field, the navigation pane still
|
|
215
|
+
beside it.
|
package/rules/motion.md
CHANGED
|
@@ -126,6 +126,7 @@ needs nothing from the site.
|
|
|
126
126
|
| A list that changes | A row that arrives opens its space and is tinted for a moment; one that leaves folds away | `is-arriving` on a row that arrives while the list is open; `is-leaving`, then remove it once it has gone ([AppListRow](../components/AppListRow.md)) |
|
|
127
127
|
| The detail pane | Comes in from the right while the content narrows; slides over the content below 840, and on a phone, where it fills the screen, on the slow spring | Open it with `is-arriving` on the pane; to close, drop `app-shell--detail`, then remove the pane once it has gone ([AppShell](../components/AppShell.md)) |
|
|
128
128
|
| The phone's navigation pane | Comes in from the left on slow spatial | Nothing |
|
|
129
|
+
| The navigation pane, into a Glass view | Goes back over its leading edge as the content widens, and comes back the same way on leaving | `app-shell--glass` on the Glass view's page, changed to through § Changing page ([AppGlassView](../components/AppGlassView.md)) |
|
|
129
130
|
| Changing page | The content fades out, then in; forward it comes 24px from the end, back from the start | Run the route change in a view transition (below) |
|
|
130
131
|
|
|
131
132
|
`is-arriving` is for what arrives while someone is watching. Never on what a page
|
|
@@ -157,8 +158,10 @@ the move turns round from where it is.
|
|
|
157
158
|
## Changing page
|
|
158
159
|
|
|
159
160
|
The browser's view transitions do it. `.app-shell__content` is named
|
|
160
|
-
`app-content
|
|
161
|
-
bar included, changes in place
|
|
161
|
+
`app-content`, `.app-dock` is named `app-dock` and `.app-shell__nav` is named
|
|
162
|
+
`app-nav`; the rest of the shell, the title bar included, changes in place, and so
|
|
163
|
+
does the navigation pane, except into and out of a Glass view, where it goes over
|
|
164
|
+
its edge and back. Give no other element those names.
|
|
162
165
|
|
|
163
166
|
```js
|
|
164
167
|
// type: 'forward' going deeper (a list to one of its things), 'back' returning to
|
package/rules/page.md
CHANGED
|
@@ -116,6 +116,8 @@ or a video, a diagram, a document, a field expanded to edit at length.
|
|
|
116
116
|
("Collapse") leads instead of close, and what was typed stays.
|
|
117
117
|
- **A file Alis made** opens beside the conversation instead
|
|
118
118
|
([AppFilePane](../components/AppFilePane.md)), and expands from there.
|
|
119
|
+
- **A Glass view** takes the window too, but it is a screen you went into, at its
|
|
120
|
+
own address: back leads, not Close ([glass.md](glass.md) § It takes the window).
|
|
119
121
|
|
|
120
122
|
## Where back goes
|
|
121
123
|
|
package/rules/shortcuts.md
CHANGED
|
@@ -69,7 +69,7 @@ nothing here is left out, not dimmed.
|
|
|
69
69
|
| Keys | Does |
|
|
70
70
|
| --- | --- |
|
|
71
71
|
| ? | Opens or closes the sheet |
|
|
72
|
-
| Esc | Closes what is open (a menu, a dialog, the sheet). In a field it does the field's own job first (clears a search's query, closes a `/` or `@` band, cancels a rename), and otherwise leaves the field. One step at a time: an expanded file goes back beside the conversation before it closes. Inside a page's frame (AppFilePane) keys are the page's, so Esc doesn't reach the app; the pane's bar still works |
|
|
72
|
+
| Esc | Closes what is open (a menu, a dialog, the sheet). In a field it does the field's own job first (clears a search's query, closes a `/` or `@` band, cancels a rename), and otherwise leaves the field. One step at a time: an expanded file goes back beside the conversation before it closes, and a Glass view closes an open part before Esc leaves the view. Inside a page's frame (AppFilePane) keys are the page's, so Esc doesn't reach the app; the pane's bar still works |
|
|
73
73
|
| / | Puts you in the screen's search field |
|
|
74
74
|
| ⌘ K | Reserved for finding anything across the product ([known-gaps.md](known-gaps.md)); bind nothing to it |
|
|
75
75
|
|