@sovereignfs/ui 0.106.0 → 0.107.3
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/CHANGELOG.md +44 -0
- package/dist/AppFrame.module.css +93 -0
- package/dist/AppSidebar.module.css +197 -0
- package/dist/Barcode.module.css +31 -0
- package/dist/Dialog.module.css +9 -0
- package/dist/SettingsDialog.module.css +205 -0
- package/dist/index.d.ts +310 -11
- package/dist/index.js +2605 -1231
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,50 @@ versions follow [semver](https://semver.org/). A version's section is written in
|
|
|
5
5
|
and becomes the release notes when the version is published. This file starts at 0.96.0; earlier versions are in the repository's
|
|
6
6
|
history and tags.
|
|
7
7
|
|
|
8
|
+
## [0.107.3] - 2026-11-25
|
|
9
|
+
|
|
10
|
+
This version carries 0.107.1 and 0.107.2, which were set on `develop` and never published.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- `IconPicker`'s panel is no longer cut off when the picker is at the left of a page. It opened leftwards from its trigger always, which
|
|
15
|
+
a scrolling page beside a sidebar clips; it now opens on the side with room, rightwards from a trigger at the left. `Popover`'s `align`
|
|
16
|
+
takes `auto` for this (`right`, its default side, where the panel fits, else `left`, counting as room only what is visible: the
|
|
17
|
+
viewport less what a scrolling ancestor would clip), and `IconPicker` has an `align` that defaults to `auto`. An explicit `left` or
|
|
18
|
+
`right` is unchanged, and so is every `Popover` that has one.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- `AppFrame`: the header's menu button draws its icon at 24px with a heavier stroke, in place of the 20px icon at the default weight, so it
|
|
23
|
+
stands beside an app's wordmark and reads as a button. Nothing else changes.
|
|
24
|
+
- `SettingsDialog`'s title row is compact: 49px on a desktop in place of 69, with the title at 18px in place of 20 and a 2rem close button (the × is where it was). A phone keeps the 44px
|
|
25
|
+
touch target and is 61px in place of 69. Only this dialog's header changes: `Dialog`, `Drawer` and `Sheet` have the shared one as before.
|
|
26
|
+
|
|
27
|
+
## [0.107.0] - 2026-11-23
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- `SettingsDialog`: settings as one dialog with a side navigation, the same in core and every app. Sections in groups with a divider
|
|
32
|
+
between them, each with an icon; an optional search; the section scrolling in a frame that never changes size; on a phone, the
|
|
33
|
+
sections, then one with a back arrow. Controlled (`active`, `onSelect`), so that an app gives each section an address.
|
|
34
|
+
- `Dialog`'s `flush`: a body with no padding and no scrolling of its own, for content that scrolls its own regions.
|
|
35
|
+
- Twenty icons for lists, categories and cards beyond groceries: `square-pen`, `shopping-cart`, `store`, `hammer`, `wrench`, `plug`,
|
|
36
|
+
`laptop`, `headphones`, `shirt`, `gift`, `sprout`, `flower-2`, `briefcase`, `paperclip`, `pill`, `baby`, `dog`, `sofa`,
|
|
37
|
+
`wallet-cards` and `scan-barcode`.
|
|
38
|
+
- `MobileFooter`'s `launcherLabel`: the centered button's name, "Apps" by default, for an app whose middle button opens its own
|
|
39
|
+
drawer.
|
|
40
|
+
- `Header`'s `brand`: an app's own wordmark in place of the badge, which stays core's default.
|
|
41
|
+
- `AppSidebar` and `useAppSidebar`: the sidebar every app has, full, a rail of icons or hidden, kept on the device per app and per
|
|
42
|
+
kind of page; blocks of rows with an optional heading, an icon in a colour, a count and a trailing _+ New …_ row. The rules are
|
|
43
|
+
exported (`sidebarStateFor`, `toggleSidebarHidden`, `toggleSidebarRail`, `parseSidebarStored`).
|
|
44
|
+
- `AppFrame`: the frame of an app's signed-in page, wired once. `Header`, `AppSidebar`, the content and a right column on a wide
|
|
45
|
+
screen; `MobileHeader`, `MobileFooter` and a `Drawer` with the same blocks on a phone; the shell root, publishing the header's and
|
|
46
|
+
the footer's heights for overlays. `AppSidebar`'s `placement="drawer"` fills a phone's drawer.
|
|
47
|
+
- `appsLauncherItems`: the apps the Core API's `listMyApps` answers, as `AppsLauncher`'s items, each with its icon or its first letter,
|
|
48
|
+
leaving out the app the launcher is in.
|
|
49
|
+
- `Barcode` and `encodeBarcode`: EAN-13, EAN-8, UPC-A, Code 128 and Code 39 as an SVG, black on white in every theme, with no
|
|
50
|
+
dependency; check digits added or checked.
|
|
51
|
+
|
|
8
52
|
## [0.106.0] - 2026-11-22
|
|
9
53
|
|
|
10
54
|
### Added
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* AppFrame — the shell root: a header row, the main area (sidebar, content, right column) and, on a phone, the footer. The main
|
|
2
|
+
* area is as tall as what is left of the viewport and does not scroll itself: its columns do. Tokens only. */
|
|
3
|
+
|
|
4
|
+
.shell {
|
|
5
|
+
/* Until the header has been measured: the design system's Header's height. Overlays stop below it. */
|
|
6
|
+
--sv-shell-header-height: 48px;
|
|
7
|
+
--sv-dialog-inset-top: var(--sv-shell-header-height);
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
height: 100vh;
|
|
11
|
+
height: 100dvh;
|
|
12
|
+
background-color: var(--sv-color-surface);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.headerRow,
|
|
16
|
+
.mobileHeader {
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.lead {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: var(--sv-space-2);
|
|
24
|
+
min-width: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* The header's sidebar button: drawn in line with the rail's icons beneath it. */
|
|
28
|
+
.toggle {
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
width: 2.5rem;
|
|
34
|
+
height: 2.5rem;
|
|
35
|
+
padding: 0;
|
|
36
|
+
margin-left: calc(-1 * var(--sv-space-2));
|
|
37
|
+
color: var(--sv-color-text-primary);
|
|
38
|
+
background: transparent;
|
|
39
|
+
border: 0;
|
|
40
|
+
border-radius: var(--sv-radius-md);
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* The menu icon is the heaviest control in the header's corner, so it is drawn bolder than the icons around it (the Icon's stroke is 2),
|
|
45
|
+
* to stand beside the wordmark and to read as a button. Its size is the Icon's `lg`, set in the component. */
|
|
46
|
+
.toggle svg {
|
|
47
|
+
stroke-width: 2.5;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (hover: hover) {
|
|
51
|
+
.toggle:hover {
|
|
52
|
+
background: var(--sv-color-surface-sunken);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.toggle:focus-visible {
|
|
57
|
+
outline: 2px solid var(--sv-color-focus-ring);
|
|
58
|
+
outline-offset: 2px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.main {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex: 1;
|
|
64
|
+
min-height: 0;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.content {
|
|
69
|
+
flex: 1;
|
|
70
|
+
min-width: 0;
|
|
71
|
+
min-height: 0;
|
|
72
|
+
overflow-y: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.detail {
|
|
76
|
+
flex: 0 0 22.5rem;
|
|
77
|
+
min-height: 0;
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
background: var(--sv-color-surface);
|
|
80
|
+
border-left: var(--sv-border-width-hairline) solid var(--sv-color-border);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* On a phone the right column is the screen: the content stays mounted under it, so that nothing it holds is lost. */
|
|
84
|
+
@media (max-width: 768px) {
|
|
85
|
+
.covered {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.detail {
|
|
90
|
+
flex: 1 1 auto;
|
|
91
|
+
border-left: 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/* AppSidebar — full (a fixed width) or a rail of icons; hidden draws nothing. It sits on the raised surface; the current row and
|
|
2
|
+
* the hovered one are tints of the accent, which show in either theme (as `NavList`'s do). Tokens only. */
|
|
3
|
+
|
|
4
|
+
.sidebar {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
gap: var(--sv-space-3);
|
|
9
|
+
width: 17.5rem;
|
|
10
|
+
height: 100%;
|
|
11
|
+
padding: var(--sv-space-3);
|
|
12
|
+
overflow-y: auto;
|
|
13
|
+
background: var(--sv-color-surface-raised);
|
|
14
|
+
border-right: var(--sv-border-width-hairline) solid var(--sv-color-border);
|
|
15
|
+
scrollbar-width: thin;
|
|
16
|
+
scrollbar-color: var(--sv-color-border-strong) transparent;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.rail {
|
|
20
|
+
align-items: center;
|
|
21
|
+
width: 3.5rem;
|
|
22
|
+
padding-right: var(--sv-space-1);
|
|
23
|
+
padding-left: var(--sv-space-1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.blocks {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex: 1 1 auto;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: var(--sv-space-4);
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.block {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: var(--sv-space-1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.heading {
|
|
41
|
+
margin: 0;
|
|
42
|
+
padding: var(--sv-space-1) var(--sv-space-3);
|
|
43
|
+
color: var(--sv-color-text-muted);
|
|
44
|
+
font-size: var(--sv-font-size-xs);
|
|
45
|
+
font-weight: var(--sv-font-weight-semibold);
|
|
46
|
+
letter-spacing: 0.04em;
|
|
47
|
+
text-transform: uppercase;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.rows {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: 2px;
|
|
54
|
+
margin: 0;
|
|
55
|
+
padding: 0;
|
|
56
|
+
list-style: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.row,
|
|
60
|
+
.action {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: var(--sv-space-3);
|
|
64
|
+
width: 100%;
|
|
65
|
+
min-height: 2.25rem;
|
|
66
|
+
padding: var(--sv-space-2) var(--sv-space-3);
|
|
67
|
+
color: var(--sv-color-text-primary);
|
|
68
|
+
font: inherit;
|
|
69
|
+
font-size: var(--sv-font-size-sm);
|
|
70
|
+
text-align: start;
|
|
71
|
+
text-decoration: none;
|
|
72
|
+
background: transparent;
|
|
73
|
+
border: 0;
|
|
74
|
+
border-radius: var(--sv-radius-md);
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.action {
|
|
79
|
+
color: var(--sv-color-text-muted);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (hover: hover) {
|
|
83
|
+
.row:hover,
|
|
84
|
+
.action:hover {
|
|
85
|
+
color: var(--sv-color-text-primary);
|
|
86
|
+
background-color: color-mix(in srgb, var(--sv-color-accent) 6%, transparent);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.row:focus-visible,
|
|
91
|
+
.action:focus-visible,
|
|
92
|
+
.railButton:focus-visible {
|
|
93
|
+
outline: 2px solid var(--sv-color-focus-ring);
|
|
94
|
+
outline-offset: -2px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.rowActive {
|
|
98
|
+
font-weight: var(--sv-font-weight-semibold);
|
|
99
|
+
background-color: var(--sv-color-accent-subtle);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.icon {
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
flex-shrink: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.initial {
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
flex-shrink: 0;
|
|
110
|
+
align-items: center;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
width: 1rem;
|
|
113
|
+
font-weight: var(--sv-font-weight-semibold);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.label {
|
|
117
|
+
display: flex;
|
|
118
|
+
flex: 1;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
min-width: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.name,
|
|
124
|
+
.description {
|
|
125
|
+
min-width: 0;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
text-overflow: ellipsis;
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.description {
|
|
132
|
+
color: var(--sv-color-text-muted);
|
|
133
|
+
font-size: var(--sv-font-size-xs);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Counts in tabular figures, so that a column of them lines up. */
|
|
137
|
+
.count {
|
|
138
|
+
flex-shrink: 0;
|
|
139
|
+
color: var(--sv-color-text-muted);
|
|
140
|
+
font-variant-numeric: tabular-nums;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.railButton {
|
|
144
|
+
display: inline-flex;
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
align-items: center;
|
|
147
|
+
align-self: flex-end;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
width: 2rem;
|
|
150
|
+
height: 2rem;
|
|
151
|
+
padding: 0;
|
|
152
|
+
color: var(--sv-color-text-muted);
|
|
153
|
+
background: transparent;
|
|
154
|
+
border: 0;
|
|
155
|
+
border-radius: var(--sv-radius-md);
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@media (hover: hover) {
|
|
160
|
+
.railButton:hover {
|
|
161
|
+
color: var(--sv-color-text-primary);
|
|
162
|
+
background: var(--sv-color-surface-sunken);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* The rail: the icons alone, centred; headings, labels and counts are left out, and each row is named by its label. */
|
|
167
|
+
.rail .heading,
|
|
168
|
+
.rail .label,
|
|
169
|
+
.rail .count {
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.rail .row,
|
|
174
|
+
.rail .action {
|
|
175
|
+
justify-content: center;
|
|
176
|
+
width: 2.5rem;
|
|
177
|
+
padding: var(--sv-space-2);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.rail .railButton {
|
|
181
|
+
align-self: center;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* In a phone's drawer: the drawer is the surface, the width is the drawer's, and every row is a touch target. */
|
|
185
|
+
.drawer {
|
|
186
|
+
width: 100%;
|
|
187
|
+
height: auto;
|
|
188
|
+
padding: var(--sv-space-2) var(--sv-space-3) var(--sv-space-6);
|
|
189
|
+
overflow: visible;
|
|
190
|
+
background: transparent;
|
|
191
|
+
border-right: 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.drawer .row,
|
|
195
|
+
.drawer .action {
|
|
196
|
+
min-height: var(--sv-touch-target-min);
|
|
197
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* A barcode is black on white in every theme: a scanner reads contrast, not a theme (as QrCode). The white is the quiet zone too. */
|
|
2
|
+
.barcode {
|
|
3
|
+
display: block;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: var(--sv-space-2) 0;
|
|
7
|
+
background: var(--sv-white);
|
|
8
|
+
border-radius: var(--sv-radius-sm);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.barcode svg {
|
|
12
|
+
display: block;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: auto;
|
|
15
|
+
fill: var(--sv-black);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.text {
|
|
19
|
+
margin-top: var(--sv-space-1);
|
|
20
|
+
color: var(--sv-black);
|
|
21
|
+
font-family: var(--sv-font-family-mono);
|
|
22
|
+
font-size: var(--sv-font-size-sm);
|
|
23
|
+
letter-spacing: 0.08em;
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.invalid {
|
|
28
|
+
margin: 0;
|
|
29
|
+
color: var(--sv-color-text-muted);
|
|
30
|
+
font-size: var(--sv-font-size-sm);
|
|
31
|
+
}
|
package/dist/Dialog.module.css
CHANGED
|
@@ -128,6 +128,15 @@
|
|
|
128
128
|
overscroll-behavior: none;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
/* `flush`: the body is a frame for content that lays out and scrolls its own regions. */
|
|
132
|
+
.flush {
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
min-height: 0;
|
|
136
|
+
padding: 0;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
}
|
|
139
|
+
|
|
131
140
|
.content::-webkit-scrollbar {
|
|
132
141
|
width: 8px;
|
|
133
142
|
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/* SettingsDialog — a side navigation and a section, inside a flush `Dialog`. The frame never changes size: the
|
|
2
|
+
* navigation and the section each scroll on their own. Tokens only. */
|
|
3
|
+
|
|
4
|
+
/* The title row, compact. In a dialog that is all navigation and content the title only names it, so the row is as tall as its close button and no
|
|
5
|
+
* more: the shared header's own is a 44px touch target with a row's padding round it, and the title a size larger. Through `Dialog`'s `rowClassName` and
|
|
6
|
+
* `titleClassName`, so that no other dialog, drawer or sheet changes. Where the pointer is a mouse the button is 2rem, its × as far from the edge as it
|
|
7
|
+
* was; where it is a finger it keeps the touch target. */
|
|
8
|
+
.headerRow {
|
|
9
|
+
padding-block: var(--sv-space-2);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.headerTitle {
|
|
13
|
+
font-size: var(--sv-font-size-lg);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (pointer: fine) {
|
|
17
|
+
.headerRow button {
|
|
18
|
+
width: 2rem;
|
|
19
|
+
height: 2rem;
|
|
20
|
+
margin-right: calc(-1 * (2rem - var(--sv-icon-size-sm)) / 2);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.frame {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex: 1 1 auto;
|
|
27
|
+
min-height: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.sidebar {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
flex: 0 0 15rem;
|
|
34
|
+
min-height: 0;
|
|
35
|
+
border-right: var(--sv-border-width-hairline) solid var(--sv-color-border);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.search {
|
|
39
|
+
padding: var(--sv-space-4) var(--sv-space-4) 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.nav {
|
|
43
|
+
flex: 1 1 auto;
|
|
44
|
+
overflow-y: auto;
|
|
45
|
+
padding: var(--sv-space-3);
|
|
46
|
+
scrollbar-width: thin;
|
|
47
|
+
scrollbar-color: var(--sv-color-border-strong) transparent;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.group {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
gap: 2px;
|
|
54
|
+
margin: 0;
|
|
55
|
+
padding: 0;
|
|
56
|
+
list-style: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.group + .group {
|
|
60
|
+
margin-top: var(--sv-space-3);
|
|
61
|
+
padding-top: var(--sv-space-3);
|
|
62
|
+
border-top: var(--sv-border-width-hairline) solid var(--sv-color-border);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.row {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: var(--sv-space-3);
|
|
69
|
+
width: 100%;
|
|
70
|
+
min-height: var(--sv-touch-target-min);
|
|
71
|
+
padding: var(--sv-space-2) var(--sv-space-3);
|
|
72
|
+
border: none;
|
|
73
|
+
border-radius: var(--sv-radius-md);
|
|
74
|
+
background: transparent;
|
|
75
|
+
color: var(--sv-color-text-muted);
|
|
76
|
+
font: inherit;
|
|
77
|
+
font-size: var(--sv-font-size-sm);
|
|
78
|
+
font-weight: var(--sv-font-weight-medium);
|
|
79
|
+
text-align: start;
|
|
80
|
+
text-decoration: none;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (hover: hover) {
|
|
85
|
+
.row:hover {
|
|
86
|
+
background-color: color-mix(in srgb, var(--sv-color-accent) 6%, transparent);
|
|
87
|
+
color: var(--sv-color-text-primary);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.row:focus-visible {
|
|
92
|
+
outline: 2px solid var(--sv-color-focus-ring);
|
|
93
|
+
outline-offset: -2px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.rowActive {
|
|
97
|
+
background-color: var(--sv-color-accent-subtle);
|
|
98
|
+
color: var(--sv-color-text-primary);
|
|
99
|
+
font-weight: var(--sv-font-weight-semibold);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.icon {
|
|
103
|
+
flex-shrink: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.label {
|
|
107
|
+
flex: 1;
|
|
108
|
+
min-width: 0;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
text-overflow: ellipsis;
|
|
111
|
+
white-space: nowrap;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* The chevron says "opens a section", which only a phone's list of sections needs. */
|
|
115
|
+
.chevron {
|
|
116
|
+
display: none;
|
|
117
|
+
flex-shrink: 0;
|
|
118
|
+
color: var(--sv-color-text-muted);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.section {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
flex: 1 1 auto;
|
|
125
|
+
min-width: 0;
|
|
126
|
+
min-height: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.body {
|
|
130
|
+
flex: 1 1 auto;
|
|
131
|
+
overflow-y: auto;
|
|
132
|
+
overscroll-behavior: none;
|
|
133
|
+
padding: var(--sv-space-6);
|
|
134
|
+
scrollbar-width: thin;
|
|
135
|
+
scrollbar-color: var(--sv-color-border-strong) transparent;
|
|
136
|
+
--sv-page-gutter: 0px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* The back row is a phone's alone. */
|
|
140
|
+
.back {
|
|
141
|
+
display: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@media (max-width: 768px) {
|
|
145
|
+
.sidebar {
|
|
146
|
+
flex: 1 1 auto;
|
|
147
|
+
border-right: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.row {
|
|
151
|
+
color: var(--sv-color-text-primary);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.rowActive {
|
|
155
|
+
background-color: transparent;
|
|
156
|
+
font-weight: var(--sv-font-weight-medium);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.chevron {
|
|
160
|
+
display: inline-flex;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.frame[data-view='sections'] .section {
|
|
164
|
+
display: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.frame[data-view='section'] .sidebar {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.back {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
gap: var(--sv-space-2);
|
|
175
|
+
flex-shrink: 0;
|
|
176
|
+
padding: var(--sv-space-2) var(--sv-space-3);
|
|
177
|
+
border-bottom: var(--sv-border-width-hairline) solid var(--sv-color-border);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.backButton {
|
|
181
|
+
display: inline-flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
justify-content: center;
|
|
184
|
+
width: var(--sv-touch-target-min);
|
|
185
|
+
height: var(--sv-touch-target-min);
|
|
186
|
+
border: none;
|
|
187
|
+
border-radius: var(--sv-radius-md);
|
|
188
|
+
background: transparent;
|
|
189
|
+
color: var(--sv-color-text-primary);
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.backButton:focus-visible {
|
|
194
|
+
outline: 2px solid var(--sv-color-focus-ring);
|
|
195
|
+
outline-offset: -2px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.backTitle {
|
|
199
|
+
font-weight: var(--sv-font-weight-semibold);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.body {
|
|
203
|
+
padding: var(--sv-space-4);
|
|
204
|
+
}
|
|
205
|
+
}
|