@codingsteve01/ember 0.0.0-stage → 1.7.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Steffen Lüling
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/PRINCIPLES.md ADDED
@@ -0,0 +1,69 @@
1
+ # Ember: design principles
2
+
3
+ Ember is a calm, editorial look for tools that stay open all day: warm graphite in dark mode, parchment in
4
+ light mode, a single terracotta accent. The values live in `css/tokens.css`, the rules here.
5
+
6
+ ## Rules
7
+
8
+ 1. **Tokens, not values.** Colours, font sizes, spacing and radii only as `var(--…)`. If a value is missing,
9
+ a token is added to Ember, not to the product. `ember-check-tokens` enforces this.
10
+ 2. **Red means act.** Only what needs attention is red (`--error`). Good and neutral figures use the text
11
+ colour, hints are grey. Green only for a change of state that has to be reported.
12
+ 3. **One accent.** `--accent` marks the primary action, focus and the brand. No second brand colour, no
13
+ category colours for navigation.
14
+ 4. **The data palette is for categories, never for meaning.** `--d1` … `--d6` colour series and figures. A
15
+ figure has the same colour everywhere, catch-all buckets are grey (`--d6`).
16
+ 5. **Sentence case** for headings, column headers and labels. Capitals only in badges.
17
+ 6. **One serif heading per page** (`h1`, `--font-serif`), then the filter row, then the content.
18
+ 7. **The topbar is at the top and fixed**: the back button at the far left, then the brand, filters in the
19
+ middle, and on the right sync, status and light/dark. None of these belong in the sidebar or at the foot
20
+ of the page. The topbar stays put while scrolling (`position: sticky`, no scroll container of its own);
21
+ whatever else sticks (table headers, day headings, side columns) stops beneath it:
22
+ `top: var(--sticky-top, 0px)`, set by `js/sticky-offsets.js`.
23
+ 8. **Back to the calling page.** Whoever drills down returns with the back button at the top left (not the
24
+ browser's), level by level, to exactly where they came from, with filters and scroll target. A click in
25
+ the navigation starts a new trail. That is why filters live in the address (`js/back-nav.js`).
26
+ 9. **Breadcrumbs on every detail page**: above the title the path to the lists above it, the current level
27
+ bold and without a link; below it the object itself as the `h1` (`js/crumbs.js`).
28
+ 10. **Cards**: hairline border, 12 px radius, no shadow. Shadows only for overlays (menu, dialog).
29
+ 11. **Figures with a trend**: a figure that changes is shown as a tile with a sparkline and its usual value
30
+ ("usually …"), not as a bare number. Every tile and every row leads to its detail.
31
+ 12. **Charts**: one height (`--chart-h`), thin straight lines, horizontal grid lines only, legend at the
32
+ bottom left, no entry animation (`js/chart-theme.js`).
33
+ 13. **Light and dark**: the operating system decides, the toggle overrides until the next system change or
34
+ reload (`js/theme.js`). Both modes are designed as equals.
35
+ 14. **System fonts only.** Nothing is fetched from third parties on load.
36
+ 15. **Loading placeholders** have a tone of their own (`--sk-base`, `--sk-sheen`), empty states say in one
37
+ sentence what is missing.
38
+ 16. **No accordions, no emojis**, no animation as decoration.
39
+ 17. **A collapsed navigation does not lose its sub views.** When the sidebar is folded to a rail of icons,
40
+ a main item (hover, click, tap, keyboard) opens its sub views in a flyout beside it, above the content,
41
+ without shifting the layout (`js/nav-flyout.js`). Esc, a click elsewhere or a selection closes it. The
42
+ parts of a sub view (third level) are indented beneath it in groups; Tab moves from main item to main
43
+ item, the arrow keys through the sub views. Without entries the flyout says why ("Loading …",
44
+ "No …").
45
+
46
+ ## Tokens
47
+
48
+ | Token | Dark | Light | Purpose |
49
+ |---|---|---|---|
50
+ | `--bg` | `#1a1918` | `#faf9f5` | page, topbar |
51
+ | `--bg-card` / `--bg-elev` | `#252422` / `#2a2927` | `#ffffff` | cards / overlays |
52
+ | `--bg-hover` / `--bg-active` | `#2e2d2a` / `#383632` | `#f2f0e9` / `#e9e6dc` | hover, active, fields |
53
+ | `--border` / `--border-strong` | `#33312d` / `#423f3a` | `#e7e4da` / `#d7d3c6` | hairlines |
54
+ | `--text` / `--text-muted` / `--text-light` | `#ece9e2` / `#a29e94` / `#76726a` | `#1f1e1b` / `#6b675e` / `#9a968b` | text |
55
+ | `--accent` (+ `-hover`, `-dim`) | `#d97757` | `#c6613f` | the only accent |
56
+ | `--error` / `--warning` / `--success` / `--info` (+ `-dim`) | | | semantics, used sparingly |
57
+ | `--d1` … `--d6` | terracotta, blue, ochre, teal, violet, grey | | data palette |
58
+ | `--fs-2xs` … `--fs-3xl` | 11 … 28 px | | font sizes |
59
+ | `--gap-xs` … `--gap-xl` | 4 … 32 px | | spacing |
60
+ | `--r-sm` / `--r` / `--r-card` / `--r-pill` | 6 / 8 / 12 / 999 px | | radii |
61
+ | `--chart-h` / `--chart-h-sm` | 260 / 180 px | | chart heights |
62
+ | `--z-sticky` / `--z-topbar` / `--z-overlay` | 2 / 30 / 40 | | layers: table header, topbar, overlays |
63
+
64
+ ## Components (`css/components.css`)
65
+
66
+ `.nav-flyout` (`-sub`, `-group`, `-empty`; `js/nav-flyout.js`), `.topbar` (`.topbar-back`, `.topbar-brand`, `.topbar-spacer`, `.topbar-actions`, `.topbar-status`, `.status-dot`),
67
+ `.breadcrumbs` (`js/crumbs.js`), `.page`, `.page-head`, `.btn` (`-primary`, `-icon`), `.input`, `.select`, `.field`, `.card`, `.grid`,
68
+ `.stat` (`js/viz.js` → `statTile()`), `.sparkline`, `.split`, `.table`, `.badge`, `.chip`, `.empty`,
69
+ `.skeleton`, `.chart-box`. The example page `example/index.html` shows all of them.
package/README.md CHANGED
@@ -1,3 +1,66 @@
1
- # Temporary Holding Version
1
+ # Ember
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A shared look for calm dashboards: design tokens, base CSS, components, a light/dark theme toggle, a Chart.js
4
+ theme, small figures (sparkline, split bar, stat tile) and a token check. Framework-free; runs in Nuxt as well
5
+ as in plain JavaScript without a bundler. Design rules: [PRINCIPLES.md](PRINCIPLES.md).
6
+
7
+ ## Install
8
+
9
+ The package `@codingsteve01/ember` is public on npmjs and needs neither a registry setting nor a token:
10
+
11
+ ```bash
12
+ npm install @codingsteve01/ember
13
+ ```
14
+
15
+ ### Nuxt / Vite
16
+
17
+ ```ts
18
+ // nuxt.config.ts
19
+ css: ['@codingsteve01/ember/ember.css'],
20
+ ```
21
+
22
+ ```ts
23
+ import { initThemeToggle } from '@codingsteve01/ember/theme';
24
+ import { statTile } from '@codingsteve01/ember/viz';
25
+ ```
26
+
27
+ ### Without a bundler (e.g. ASP.NET `wwwroot`)
28
+
29
+ Copy the files from `node_modules/@codingsteve01/ember/{css,js}` to `wwwroot/vendor/ember/` (an npm script, run
30
+ at build time) and include `vendor/ember/css/ember.css`. The JS files are native ES modules without
31
+ dependencies.
32
+
33
+ ### Step by step in an existing product
34
+
35
+ Start with `css/tokens.css` only, then replace your own rules with single components from `css/components/`
36
+ (e.g. `back.css`, `breadcrumbs.css`). Whatever the product needs differently stays beside it as a thin product
37
+ layer.
38
+
39
+ ### Token check in a product
40
+
41
+ ```bash
42
+ npx ember-check-tokens app/ # Nuxt: app/**/*.css and <style> in .vue
43
+ npx ember-check-tokens --js wwwroot/ # plain JS: also colour literals in the code
44
+ ```
45
+
46
+ ## Release
47
+
48
+ Releases are automatic. A merge to `main` runs the tests, and `semantic-release` derives the next version from
49
+ the commit messages since the last tag: `fix:` raises the patch version, `feat:` the minor version, and a `!`
50
+ after the type (or a `BREAKING CHANGE:` footer) the major version. Other types (`docs`, `chore`, `ci`, ...)
51
+ publish nothing. The package goes to npmjs with provenance, the tag `v<version>` is created and the release
52
+ notes appear under GitHub Releases. The `version` in `package.json` stays as committed; the workflow sets it
53
+ only while publishing, so nobody tags or bumps by hand. The workflow needs the repository secret `NPM_TOKEN`
54
+ (a granular npmjs access token with publish rights, which expires and has to be renewed).
55
+
56
+ ## Develop
57
+
58
+ ```bash
59
+ npm ci
60
+ npm test # node --test
61
+ open example/index.html
62
+ ```
63
+
64
+ ## License
65
+
66
+ [MIT](LICENSE)
@@ -0,0 +1 @@
1
+ export function findTokenViolations(paths: string[], options?: { js?: boolean }): string[];
@@ -0,0 +1,69 @@
1
+ #!/usr/bin/env node
2
+ // check-tokens.mjs <dir|file>... - Ember's token rule for a product: no literal colour or font size outside
3
+ // tokens.css, and balanced braces in every stylesheet (an unbalanced brace silently drops the next rule).
4
+ // Reads *.css (except tokens.css) and the <style> blocks of *.vue; with --js also colour literals in *.js/*.ts.
5
+ // Output `BLOCK|file: message`, exit 1 on any. Usable from node --test via `findTokenViolations`.
6
+ import { readdirSync, readFileSync, statSync } from 'node:fs';
7
+ import { join } from 'node:path';
8
+ import { fileURLToPath } from 'node:url';
9
+
10
+ const COLOUR = /#[0-9a-fA-F]{3,8}\b|\brgba?\(|\bhsla?\(/;
11
+ const FONT_SIZE = /font-size:\s*[0-9.]+(px|rem|em|pt)\b/;
12
+ const SKIP = new Set(['node_modules', '.nuxt', '.output', 'dist', 'coverage', '.git', 'bin', 'obj']);
13
+
14
+ const withoutComments = css => css.replace(/\/\*[\s\S]*?\*\//g, '').replace(/"[^"]*"|'[^']*'/g, '""');
15
+
16
+ function* files(path) {
17
+ if (statSync(path).isFile()) return yield path;
18
+ for (const entry of readdirSync(path)) if (!SKIP.has(entry)) yield* files(join(path, entry));
19
+ }
20
+
21
+ function styleOf(path) {
22
+ if (path.endsWith('tokens.css')) return null;
23
+ if (path.endsWith('.css')) return readFileSync(path, 'utf8');
24
+ if (path.endsWith('.vue'))
25
+ return [...readFileSync(path, 'utf8').matchAll(/<style[^>]*>([\s\S]*?)<\/style>/g)].map(m => m[1]).join('\n');
26
+ return null;
27
+ }
28
+
29
+ function braceProblem(css) {
30
+ let depth = 0;
31
+ for (const ch of css) {
32
+ depth += ch === '{' ? 1 : ch === '}' ? -1 : 0;
33
+ if (depth < 0) return 'closing brace without opening';
34
+ }
35
+ return depth ? 'unclosed brace' : null;
36
+ }
37
+
38
+ /** Every violation under `paths` as `file: message`. */
39
+ export function findTokenViolations(paths, { js = false } = {}) {
40
+ const found = [];
41
+ for (const root of paths) {
42
+ for (const path of files(root)) {
43
+ const style = styleOf(path);
44
+ if (style) {
45
+ const css = withoutComments(style);
46
+ if (COLOUR.test(css)) found.push(`${path}: literal colour, use a token from tokens.css`);
47
+ if (FONT_SIZE.test(css)) found.push(`${path}: literal font size, use var(--fs-…)`);
48
+ const brace = braceProblem(css);
49
+ if (brace) found.push(`${path}: ${brace}`);
50
+ } else if (js && /\.(js|mjs|ts)$/.test(path) && !/\.(test|spec)\./.test(path)) {
51
+ const code = readFileSync(path, 'utf8').replace(/\/\/.*$|\/\*[\s\S]*?\*\//gm, '');
52
+ if (COLOUR.test(code)) found.push(`${path}: literal colour in code, resolve a token (themeColor)`);
53
+ }
54
+ }
55
+ }
56
+ return found;
57
+ }
58
+
59
+ if (process.argv[1] === fileURLToPath(import.meta.url)) {
60
+ const args = process.argv.slice(2);
61
+ const paths = args.filter(a => !a.startsWith('--'));
62
+ if (!paths.length) {
63
+ console.error('usage: check-tokens.mjs [--js] <dir|file>...');
64
+ process.exit(2);
65
+ }
66
+ const found = findTokenViolations(paths, { js: args.includes('--js') });
67
+ console.log(found.length ? found.map(f => `BLOCK|${f}`).join('\n') : 'tokens: ok');
68
+ process.exit(found.length ? 1 : 0);
69
+ }
package/css/base.css ADDED
@@ -0,0 +1,77 @@
1
+ /* Ember base: reset, body, typography. Uses tokens only. */
2
+ *,
3
+ *::before,
4
+ *::after {
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ body {
9
+ margin: 0;
10
+ font-family: var(--font-sans);
11
+ font-size: var(--fs-base);
12
+ line-height: var(--lh);
13
+ background: var(--bg);
14
+ color: var(--text);
15
+ font-feature-settings: 'tnum' 1;
16
+ -webkit-font-smoothing: antialiased;
17
+ text-rendering: optimizeLegibility;
18
+ }
19
+
20
+ /* One serif title per page; everything else is sans, sentence case. */
21
+ h1,
22
+ h2 {
23
+ margin: 0;
24
+ font-family: var(--font-serif);
25
+ font-weight: 500;
26
+ letter-spacing: -0.01em;
27
+ line-height: var(--lh-tight);
28
+ }
29
+
30
+ h1 {
31
+ font-size: var(--fs-2xl);
32
+ }
33
+
34
+ h2 {
35
+ font-size: var(--fs-xl);
36
+ }
37
+
38
+ h3 {
39
+ margin: 0;
40
+ font-size: var(--fs-lg);
41
+ font-weight: 500;
42
+ }
43
+
44
+ a {
45
+ color: inherit;
46
+ text-decoration-color: var(--border-strong);
47
+ text-underline-offset: 2px;
48
+ }
49
+
50
+ a:hover {
51
+ color: var(--accent);
52
+ }
53
+
54
+ code,
55
+ pre,
56
+ .mono {
57
+ font-family: var(--font-mono);
58
+ font-size: var(--fs-sm);
59
+ }
60
+
61
+ :focus-visible {
62
+ outline: none;
63
+ box-shadow: var(--ring);
64
+ }
65
+
66
+ ::selection {
67
+ background: var(--accent-dim);
68
+ }
69
+
70
+ @media (prefers-reduced-motion: reduce) {
71
+ *,
72
+ *::before,
73
+ *::after {
74
+ transition: none !important;
75
+ animation: none !important;
76
+ }
77
+ }
@@ -0,0 +1,39 @@
1
+ /* Back button at the far left: returns to the exact caller page (js/back-nav.js), hidden while there is no way back. */
2
+ .topbar-back {
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ flex-shrink: 0;
7
+ width: 28px;
8
+ height: 28px;
9
+ padding: 0;
10
+ background: none;
11
+ border: 1px solid var(--border);
12
+ border-radius: var(--r);
13
+ color: var(--text-muted);
14
+ cursor: pointer;
15
+ transition:
16
+ color var(--t) var(--ease),
17
+ border-color var(--t) var(--ease),
18
+ background var(--t) var(--ease);
19
+ }
20
+
21
+ .topbar-back[hidden] {
22
+ display: none;
23
+ }
24
+
25
+ .topbar-back:hover {
26
+ color: var(--accent);
27
+ border-color: var(--accent);
28
+ background: var(--bg-hover);
29
+ }
30
+
31
+ .topbar-back svg {
32
+ width: 18px;
33
+ height: 18px;
34
+ fill: none;
35
+ stroke: currentColor;
36
+ stroke-width: 2;
37
+ stroke-linecap: round;
38
+ stroke-linejoin: round;
39
+ }
@@ -0,0 +1,50 @@
1
+ /* ----- Badges (caps) and chips (sentence case) ----- */
2
+ .badge {
3
+ display: inline-block;
4
+ padding: 1px var(--gap-sm);
5
+ border-radius: var(--r-pill);
6
+ font-size: var(--fs-2xs);
7
+ font-weight: 600;
8
+ text-transform: uppercase;
9
+ letter-spacing: 0.03em;
10
+ background: var(--bg-active);
11
+ color: var(--text-muted);
12
+ }
13
+
14
+ .badge-error {
15
+ background: var(--error-dim);
16
+ color: var(--error);
17
+ }
18
+
19
+ .badge-warning {
20
+ background: var(--warning-dim);
21
+ color: var(--warning);
22
+ }
23
+
24
+ .badge-success {
25
+ background: var(--success-dim);
26
+ color: var(--success);
27
+ }
28
+
29
+ .badge-info {
30
+ background: var(--info-dim);
31
+ color: var(--info);
32
+ }
33
+
34
+ .chip {
35
+ display: inline-flex;
36
+ align-items: center;
37
+ gap: var(--gap-xs);
38
+ height: 26px;
39
+ padding: 0 var(--gap);
40
+ border: 1px solid var(--border);
41
+ border-radius: var(--r-pill);
42
+ font-size: var(--fs-xs);
43
+ color: var(--text-muted);
44
+ background: var(--bg-card);
45
+ }
46
+
47
+ .chip.is-active {
48
+ background: var(--bg-active);
49
+ color: var(--text);
50
+ }
@@ -0,0 +1,27 @@
1
+ /* ----- Breadcrumbs (js/crumbs.js): above the page title on every drill-down page ----- */
2
+ .breadcrumbs {
3
+ display: flex;
4
+ align-items: center;
5
+ flex-wrap: wrap;
6
+ gap: var(--gap-sm);
7
+ margin: 0 0 var(--gap-sm);
8
+ font-size: var(--fs-xs);
9
+ }
10
+
11
+ .breadcrumbs .crumb {
12
+ color: var(--text-muted);
13
+ text-decoration: none;
14
+ }
15
+
16
+ .breadcrumbs .crumb:hover {
17
+ color: var(--accent);
18
+ }
19
+
20
+ .breadcrumbs .crumb.current {
21
+ color: var(--text);
22
+ font-weight: 600;
23
+ }
24
+
25
+ .breadcrumbs .crumb-sep {
26
+ color: var(--text-light);
27
+ }
@@ -0,0 +1,22 @@
1
+ /* ----- Cards: hairline, 12 px radius, no shadow ----- */
2
+ .card {
3
+ background: var(--bg-card);
4
+ border: 1px solid var(--border);
5
+ border-radius: var(--r-card);
6
+ padding: var(--gap-md);
7
+ display: grid;
8
+ gap: var(--gap);
9
+ }
10
+
11
+ .card-head {
12
+ display: flex;
13
+ align-items: baseline;
14
+ justify-content: space-between;
15
+ gap: var(--gap);
16
+ }
17
+
18
+ .grid {
19
+ display: grid;
20
+ gap: var(--gap-md);
21
+ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
22
+ }
@@ -0,0 +1,9 @@
1
+ /* ----- Charts: one height, the canvas fills it ----- */
2
+ .chart-box {
3
+ position: relative;
4
+ height: var(--chart-h);
5
+ }
6
+
7
+ .chart-box.sm {
8
+ height: var(--chart-h-sm);
9
+ }
@@ -0,0 +1,60 @@
1
+ /* ----- Controls ----- */
2
+ .btn,
3
+ .input,
4
+ .select {
5
+ font: inherit;
6
+ font-size: var(--fs-sm);
7
+ height: 32px;
8
+ padding: 0 var(--gap);
9
+ border: 1px solid var(--border);
10
+ border-radius: var(--r);
11
+ background: var(--bg-card);
12
+ color: var(--text);
13
+ transition:
14
+ background var(--t) var(--ease),
15
+ border-color var(--t) var(--ease);
16
+ }
17
+
18
+ .btn {
19
+ display: inline-flex;
20
+ align-items: center;
21
+ gap: var(--gap-xs);
22
+ cursor: pointer;
23
+ }
24
+
25
+ .btn:hover {
26
+ background: var(--bg-hover);
27
+ }
28
+
29
+ .btn-primary {
30
+ background: var(--accent);
31
+ border-color: var(--accent);
32
+ color: var(--on-accent);
33
+ }
34
+
35
+ .btn-primary:hover {
36
+ background: var(--accent-hover);
37
+ }
38
+
39
+ .btn-icon {
40
+ width: 32px;
41
+ justify-content: center;
42
+ padding: 0;
43
+ }
44
+
45
+ textarea.input {
46
+ height: auto;
47
+ padding: var(--gap-sm) var(--gap);
48
+ }
49
+
50
+ .field {
51
+ display: grid;
52
+ gap: var(--gap-xs);
53
+ font-size: var(--fs-sm);
54
+ color: var(--text-muted);
55
+ }
56
+
57
+ .field-error {
58
+ color: var(--error);
59
+ font-size: var(--fs-xs);
60
+ }
@@ -0,0 +1,133 @@
1
+ /* Sub views of a main item, floating beside the navigation folded to a rail of icons (js/nav-flyout.js).
2
+ Fixed over the content, so the layout does not move; an overlay, hence the shadow. Shown as a popover (top layer),
3
+ so inset and margin undo the browser's centring of popovers. */
4
+ .nav-flyout {
5
+ position: fixed;
6
+ inset: auto;
7
+ z-index: var(--z-overlay);
8
+ margin: 0;
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: 1px;
12
+ min-width: 180px;
13
+ max-width: 280px;
14
+ max-height: calc(100vh - 2 * var(--gap-sm));
15
+ overflow-y: auto;
16
+ overscroll-behavior: contain;
17
+ /* Arrow keys scroll a focused sub view into view below the sticky title, not under it. */
18
+ scroll-padding-top: calc(var(--fs-xs) * var(--lh) + 3 * var(--gap-xs));
19
+ padding: var(--gap-xs);
20
+ background: var(--bg-elev);
21
+ border: 1px solid var(--border-strong);
22
+ border-radius: var(--r);
23
+ box-shadow: var(--shadow);
24
+ color: var(--text);
25
+ font-family: var(--font-sans);
26
+ }
27
+
28
+ .nav-flyout[hidden] {
29
+ display: none;
30
+ }
31
+
32
+ /* Many sub views scroll inside the flyout; the main item's name stays on top, flush with the frame. */
33
+ .nav-flyout-title {
34
+ position: sticky;
35
+ top: calc(-1 * var(--gap-xs));
36
+ z-index: var(--z-sticky);
37
+ margin: calc(-1 * var(--gap-xs)) calc(-1 * var(--gap-xs)) 0;
38
+ padding: var(--gap-sm) calc(var(--gap-sm) + var(--gap-xs)) var(--gap-xs);
39
+ background: var(--bg-elev);
40
+ color: var(--text-light);
41
+ font-size: var(--fs-xs);
42
+ font-weight: 600;
43
+ white-space: nowrap;
44
+ }
45
+
46
+ .nav-flyout .nav-flyout-item {
47
+ display: flex;
48
+ align-items: center;
49
+ gap: var(--gap-md);
50
+ padding: 7px var(--gap-sm);
51
+ border-radius: var(--r-sm);
52
+ color: var(--text-muted);
53
+ font-size: var(--fs-sm);
54
+ font-weight: 400;
55
+ line-height: var(--lh-tight);
56
+ text-decoration: none;
57
+ white-space: nowrap;
58
+ transition:
59
+ background var(--t-fast) var(--ease),
60
+ color var(--t-fast) var(--ease);
61
+ }
62
+
63
+ /* A long label ends in an ellipsis; the full one is the link's tooltip. */
64
+ .nav-flyout-label {
65
+ min-width: 0;
66
+ overflow: hidden;
67
+ text-overflow: ellipsis;
68
+ }
69
+
70
+ /* Parts of a sub view (third level), indented beneath it with a hairline, in groups whose names are no stops. */
71
+ .nav-flyout-sub {
72
+ display: flex;
73
+ flex-direction: column;
74
+ gap: 1px;
75
+ margin: 2px 0 var(--gap-xs) var(--gap-sm);
76
+ padding-left: var(--gap-xs);
77
+ border-left: 1px solid var(--border);
78
+ }
79
+
80
+ .nav-flyout-group {
81
+ padding: var(--gap-xs) var(--gap-sm) 2px;
82
+ color: var(--text-muted);
83
+ font-size: var(--fs-xs);
84
+ white-space: nowrap;
85
+ }
86
+
87
+ .nav-flyout .nav-flyout-item.is-sub {
88
+ padding-top: 5px;
89
+ padding-bottom: 5px;
90
+ }
91
+
92
+ .nav-flyout-empty {
93
+ margin: 0;
94
+ padding: 7px var(--gap-sm);
95
+ color: var(--text-light);
96
+ font-size: var(--fs-sm);
97
+ }
98
+
99
+ .nav-flyout .nav-flyout-item:hover {
100
+ background: var(--bg-hover);
101
+ color: var(--text);
102
+ }
103
+
104
+ .nav-flyout .nav-flyout-item[aria-current='page'] {
105
+ background: var(--bg-active);
106
+ color: var(--text);
107
+ }
108
+
109
+ .nav-flyout .nav-flyout-item:focus-visible {
110
+ outline: none;
111
+ box-shadow: var(--ring);
112
+ }
113
+
114
+ /* Count of a sub view, as in the unfolded navigation: grey, red only where it waits for action. */
115
+ .nav-flyout-count {
116
+ margin-left: auto;
117
+ min-width: 16px;
118
+ padding: 0 var(--gap-xs);
119
+ border-radius: var(--r-pill);
120
+ background: var(--bg-hover);
121
+ color: var(--text-muted);
122
+ font-family: var(--font-mono);
123
+ font-size: var(--fs-2xs);
124
+ font-weight: 700;
125
+ font-variant-numeric: tabular-nums;
126
+ line-height: 16px;
127
+ text-align: center;
128
+ }
129
+
130
+ .nav-flyout-count.is-alert {
131
+ background: var(--error-dim);
132
+ color: var(--error);
133
+ }
@@ -0,0 +1,20 @@
1
+ /* ----- Page ----- */
2
+ .page {
3
+ max-width: var(--content-max);
4
+ margin: 0 auto;
5
+ padding: var(--gap-lg);
6
+ display: grid;
7
+ gap: var(--gap-lg);
8
+ }
9
+
10
+ .page-head {
11
+ display: flex;
12
+ align-items: baseline;
13
+ gap: var(--gap-md);
14
+ flex-wrap: wrap;
15
+ }
16
+
17
+ .page-head p {
18
+ margin: 0;
19
+ color: var(--text-muted);
20
+ }