@jetzeroaero/design-system 1.2.0 → 1.4.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 +14 -4
- package/dist/components.css +205 -0
- package/dist/index.cjs +429 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +191 -2
- package/dist/index.d.ts +191 -2
- package/dist/index.js +408 -65
- package/dist/index.js.map +1 -1
- package/dist/logos/AWG4-black.svg +14 -0
- package/dist/logos/AWG4-white.svg +14 -0
- package/dist/logos/JZ-Factory1-logo-grey-night.svg +20 -0
- package/dist/logos/JZ-Factory1-logo-night.svg +20 -0
- package/dist/logos/JZ-Factory1-logo-white-night.svg +20 -0
- package/dist/logos/JZ-Factory1-logo-white.svg +20 -0
- package/dist/logos/JZ-Jet1-grey-night.svg +19 -0
- package/dist/logos/JZ-Jet1-night-white.svg +19 -0
- package/dist/logos/JZ-Jet1-night.svg +19 -0
- package/dist/logos/JZ-Jet1-white-night.svg +19 -0
- package/dist/logos/JZ-Jet1-white.svg +19 -0
- package/dist/logos/JZ-Z4-night.svg +15 -0
- package/dist/logos/JZ-Z4-white.svg +17 -0
- package/dist/logos/Z-square-fire-white.svg +15 -0
- package/dist/logos/Z-square-night-white.svg +15 -0
- package/dist/logos/Z-square-white-fire.svg +15 -0
- package/dist/logos/Z-square-white-night.svg +15 -0
- package/dist/tokens.css +30 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -98,15 +98,25 @@ assertValidLogoBackground('fire-night', 'night'); // throws in dev
|
|
|
98
98
|
|
|
99
99
|
## Logos
|
|
100
100
|
|
|
101
|
-
SVG
|
|
101
|
+
SVG logos and brand marks ship in `dist/logos/` and are reachable via the `./logos/*` export:
|
|
102
102
|
|
|
103
103
|
```ts
|
|
104
104
|
import wordmarkUrl from '@jetzeroaero/design-system/logos/JZ-wordmk-fire-night.svg';
|
|
105
|
+
import jetMark from '@jetzeroaero/design-system/logos/JZ-Jet1-night.svg';
|
|
105
106
|
```
|
|
106
107
|
|
|
107
|
-
|
|
108
|
-
- `JZ-wordmk-fire-night.svg`, `JZ-wordmk-fire-white.svg`, `JZ-wordmk-white-night.svg` — current
|
|
109
|
-
- `JZ-wordmk-LEGACY-*.svg` — legacy
|
|
108
|
+
**Wordmark**
|
|
109
|
+
- `JZ-wordmk-fire-night.svg`, `JZ-wordmk-fire-white.svg`, `JZ-wordmk-white-night.svg` — current wordmark
|
|
110
|
+
- `JZ-wordmk-LEGACY-*.svg` — legacy wordmark for migration
|
|
111
|
+
|
|
112
|
+
**Brand marks** (added in 1.3.0)
|
|
113
|
+
- `JZ-Jet1-{night,white,night-white,white-night,grey-night}.svg` — Jet1 aircraft mark
|
|
114
|
+
- `JZ-Z4-{night,white}.svg` — Z4 aircraft mark
|
|
115
|
+
- `JZ-Factory1-logo-{night,white,white-night,grey-night}.svg` — Factory1 mark
|
|
116
|
+
- `AWG4-{black,white}.svg` — AWG4 mark
|
|
117
|
+
- `Z-square-{fire-white,night-white,white-fire,white-night}.svg` — Z-square symbol
|
|
118
|
+
|
|
119
|
+
The tone suffix names ink-on-background (e.g. `white-night` = white mark on a night background). Follow the same background-tone discipline as the wordmark.
|
|
110
120
|
|
|
111
121
|
## Build
|
|
112
122
|
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
JetZero components.css — styles for @jetzeroaero/design-system primitives.
|
|
3
|
+
Import after tokens.css: import '@jetzeroaero/design-system/components.css';
|
|
4
|
+
RULES: only var(--token) values here. No raw hex. Every background pairs
|
|
5
|
+
with its on-* foreground. Fire is an accent (primary button, focus, active
|
|
6
|
+
nav rule) — never headings or large fills.
|
|
7
|
+
========================================================================== */
|
|
8
|
+
|
|
9
|
+
/* Shared UI type sizes — page title/text in the shell and title/text in a modal use the SAME values. */
|
|
10
|
+
:root { --jz-ui-title: var(--fs-h3); --jz-ui-title-lh: var(--lh-h3); --jz-ui-text: 1rem; }
|
|
11
|
+
|
|
12
|
+
.jz-root, .jz-root * { box-sizing: border-box; }
|
|
13
|
+
|
|
14
|
+
/* ---------- Theme toggle ----------
|
|
15
|
+
A real button: it is rendered with .jz-btn .jz-btn--ghost .jz-btn--icon so it inherits size, radius and focus
|
|
16
|
+
from Button. This only makes it borderless/quiet and sizes the glyph (Map-Tools sun/moon pattern). */
|
|
17
|
+
.jz-btn.jz-theme-toggle { color: var(--page-fg-3); border-color: transparent; }
|
|
18
|
+
.jz-btn.jz-theme-toggle:hover:not(:disabled) { color: var(--page-fg); }
|
|
19
|
+
.jz-theme-toggle svg { width: 14px; height: 14px; }
|
|
20
|
+
|
|
21
|
+
/* ---------- Focus ---------- */
|
|
22
|
+
.jz-btn:focus-visible, .jz-input:focus-visible, .jz-select:focus-visible,
|
|
23
|
+
.jz-textarea:focus-visible, .jz-check input:focus-visible + .jz-check__box,
|
|
24
|
+
.jz-switch input:focus-visible + .jz-switch__track, .jz-tab:focus-visible,
|
|
25
|
+
.jz-nav__item:focus-visible, .jz-modal__close:focus-visible, .jz-th--sortable:focus-visible {
|
|
26
|
+
outline: var(--bw-accent) solid var(--input-focus);
|
|
27
|
+
outline-offset: 2px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* ---------- Button ---------- */
|
|
31
|
+
.jz-btn:focus-visible { outline-offset: 0; }
|
|
32
|
+
.jz-btn {
|
|
33
|
+
display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
|
|
34
|
+
font-family: var(--font-primary); font-weight: var(--fw-semibold); font-size: 14px; line-height: 1;
|
|
35
|
+
padding: 0 var(--sp-4); height: 40px;
|
|
36
|
+
border: var(--bw-thin) solid transparent; border-radius: var(--r-md);
|
|
37
|
+
cursor: pointer; text-decoration: none; white-space: nowrap;
|
|
38
|
+
transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), opacity var(--dur-fast);
|
|
39
|
+
}
|
|
40
|
+
.jz-btn--sm { height: 32px; padding: 0 var(--sp-3); font-size: 13px; }
|
|
41
|
+
.jz-btn--lg { height: 48px; padding: 0 var(--sp-5); font-size: 16px; }
|
|
42
|
+
.jz-btn--block { display: flex; width: 100%; }
|
|
43
|
+
.jz-btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
|
|
44
|
+
.jz-btn--primary:hover:not(:disabled) { opacity: 0.9; }
|
|
45
|
+
.jz-btn--secondary { background: var(--surface-bg-2); color: var(--page-fg); border-color: var(--page-border-2); }
|
|
46
|
+
.jz-btn--secondary:hover:not(:disabled) { background: var(--surface-bg-3); }
|
|
47
|
+
.jz-btn--ghost { background: transparent; color: var(--btn-ghost-fg); border-color: var(--btn-ghost-border); }
|
|
48
|
+
.jz-btn--ghost:hover:not(:disabled) { background: var(--surface-bg-2); }
|
|
49
|
+
.jz-btn--danger { background: var(--alert-error-fg); color: var(--alert-error-on-fg); }
|
|
50
|
+
.jz-btn--danger:hover:not(:disabled) { opacity: 0.9; }
|
|
51
|
+
.jz-btn:disabled, .jz-btn[aria-disabled="true"] { background: var(--surface-bg-3); color: var(--page-fg-3); border-color: transparent; cursor: not-allowed; }
|
|
52
|
+
/* Loading keeps the variant's own colours at full strength — it is busy, not disabled. */
|
|
53
|
+
.jz-btn[aria-busy="true"]:disabled { cursor: progress; }
|
|
54
|
+
.jz-btn--primary[aria-busy="true"]:disabled { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
|
|
55
|
+
.jz-btn--secondary[aria-busy="true"]:disabled { background: var(--surface-bg-2); color: var(--page-fg); border-color: var(--page-border-2); }
|
|
56
|
+
.jz-btn--ghost[aria-busy="true"]:disabled { background: transparent; color: var(--btn-ghost-fg); border-color: var(--btn-ghost-border); }
|
|
57
|
+
.jz-btn--danger[aria-busy="true"]:disabled { background: var(--alert-error-fg); color: var(--alert-error-on-fg); }
|
|
58
|
+
.jz-btn--icon { width: 40px; padding: 0; }
|
|
59
|
+
.jz-btn--icon.jz-btn--sm { width: 32px; }
|
|
60
|
+
|
|
61
|
+
/* ---------- Spinner ---------- */
|
|
62
|
+
.jz-spinner {
|
|
63
|
+
display: inline-block; width: 16px; height: 16px; flex: none;
|
|
64
|
+
border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
|
|
65
|
+
animation: jz-spin 700ms linear infinite;
|
|
66
|
+
}
|
|
67
|
+
.jz-spinner--lg { width: 32px; height: 32px; border-width: 3px; }
|
|
68
|
+
@keyframes jz-spin { to { transform: rotate(360deg); } }
|
|
69
|
+
@media (prefers-reduced-motion: reduce) { .jz-spinner { animation-duration: 2s; } }
|
|
70
|
+
|
|
71
|
+
/* ---------- Form ---------- */
|
|
72
|
+
.jz-field { display: flex; flex-direction: column; gap: var(--sp-1); font-family: var(--font-primary); }
|
|
73
|
+
.jz-field__label {
|
|
74
|
+
font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: 0.08em;
|
|
75
|
+
text-transform: uppercase; color: var(--page-fg-2);
|
|
76
|
+
}
|
|
77
|
+
.jz-field__req { color: var(--page-fg-2); margin-left: 2px; }
|
|
78
|
+
.jz-field__hint { font-size: 12px; color: var(--page-fg-3); }
|
|
79
|
+
.jz-field__error { font-size: 12px; color: var(--alert-error-text); display: flex; gap: var(--sp-1); align-items: center; }
|
|
80
|
+
.jz-field__error::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--alert-error-fg); flex: none; }
|
|
81
|
+
.jz-field--invalid .jz-input, .jz-field--invalid .jz-select, .jz-field--invalid .jz-textarea { border-color: var(--alert-error-fg); }
|
|
82
|
+
|
|
83
|
+
.jz-input, .jz-select, .jz-textarea {
|
|
84
|
+
width: 100%; font-family: var(--font-primary); font-size: 14px;
|
|
85
|
+
background: var(--input-bg); color: var(--input-fg);
|
|
86
|
+
border: var(--bw-thin) solid var(--input-border); border-radius: var(--r-md);
|
|
87
|
+
padding: 0 var(--sp-3); height: 40px;
|
|
88
|
+
transition: border-color var(--dur-fast) var(--ease-standard);
|
|
89
|
+
}
|
|
90
|
+
.jz-textarea { height: auto; min-height: 88px; padding: var(--sp-2) var(--sp-3); resize: vertical; }
|
|
91
|
+
.jz-input::placeholder, .jz-textarea::placeholder { color: var(--input-placeholder); }
|
|
92
|
+
.jz-input:hover:not(:disabled), .jz-select:hover:not(:disabled), .jz-textarea:hover:not(:disabled) { border-color: var(--page-fg-3); }
|
|
93
|
+
.jz-input:disabled, .jz-select:disabled, .jz-textarea:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
94
|
+
.jz-select { appearance: none; padding-right: var(--sp-6);
|
|
95
|
+
background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
|
|
96
|
+
background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
|
|
97
|
+
|
|
98
|
+
.jz-check, .jz-switch { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-primary); font-size: 14px; color: var(--page-fg); cursor: pointer; }
|
|
99
|
+
.jz-check input, .jz-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
|
|
100
|
+
.jz-check__box { width: 18px; height: 18px; border: var(--bw-thin) solid var(--input-border); border-radius: var(--r-sm); background: var(--input-bg); display: grid; place-items: center; flex: none; }
|
|
101
|
+
.jz-check input:checked + .jz-check__box { background: var(--page-fg); border-color: var(--page-fg); }
|
|
102
|
+
.jz-check input:checked + .jz-check__box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--page-bg); border-bottom: 2px solid var(--page-bg); transform: translateY(-1px) rotate(-45deg); }
|
|
103
|
+
.jz-check input[type="radio"] + .jz-check__box { border-radius: 50%; }
|
|
104
|
+
.jz-check input[type="radio"]:checked + .jz-check__box::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--page-bg); transform: none; }
|
|
105
|
+
.jz-switch__track { width: 36px; height: 20px; border-radius: var(--r-pill); background: var(--surface-bg-3); border: var(--bw-thin) solid var(--input-border); position: relative; flex: none; transition: background var(--dur-fast); }
|
|
106
|
+
.jz-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--page-fg); transition: transform var(--dur-fast) var(--ease-standard); }
|
|
107
|
+
.jz-switch input:checked + .jz-switch__track { background: var(--page-fg-2); }
|
|
108
|
+
.jz-switch input:checked + .jz-switch__track::after { transform: translateX(16px); background: var(--page-bg); }
|
|
109
|
+
.jz-check input:disabled ~ *, .jz-switch input:disabled ~ * { opacity: 0.5; }
|
|
110
|
+
|
|
111
|
+
/* ---------- Badge ---------- */
|
|
112
|
+
.jz-badge {
|
|
113
|
+
display: inline-flex; align-items: center; gap: var(--sp-1); height: 20px; padding: 0 var(--sp-2);
|
|
114
|
+
font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.06em; text-transform: uppercase;
|
|
115
|
+
border-radius: var(--r-sm); white-space: nowrap;
|
|
116
|
+
}
|
|
117
|
+
.jz-badge--neutral { background: var(--surface-bg-3); color: var(--page-fg); }
|
|
118
|
+
.jz-badge--info { background: var(--alert-info-bg); color: var(--alert-info-on-bg); }
|
|
119
|
+
.jz-badge--success { background: var(--alert-success-bg); color: var(--alert-success-on-bg); }
|
|
120
|
+
.jz-badge--warning { background: var(--alert-warn-bg); color: var(--alert-warn-on-bg); }
|
|
121
|
+
.jz-badge--danger { background: var(--alert-error-bg); color: var(--alert-error-on-bg); }
|
|
122
|
+
|
|
123
|
+
/* ---------- Empty state ---------- */
|
|
124
|
+
.jz-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-3); padding: var(--sp-7) var(--sp-5); color: var(--page-fg-2); font-family: var(--font-primary); }
|
|
125
|
+
.jz-empty__title { font-size: var(--fs-h4); font-weight: var(--fw-semibold); color: var(--page-fg); margin: 0; }
|
|
126
|
+
.jz-empty__desc { margin: 0; max-width: 44ch; font-size: 14px; color: var(--page-fg-2); }
|
|
127
|
+
|
|
128
|
+
/* ---------- Table ---------- */
|
|
129
|
+
.jz-table-wrap { overflow-x: auto; border: var(--bw-thin) solid var(--surface-border); border-radius: var(--r-md); background: var(--card-bg); }
|
|
130
|
+
.jz-table { width: 100%; border-collapse: collapse; font-family: var(--font-primary); font-size: 14px; font-weight: var(--fw-light); color: var(--card-fg); }
|
|
131
|
+
.jz-table caption { text-align: left; padding: var(--sp-3) var(--sp-4); color: var(--card-fg-2); font-size: 13px; }
|
|
132
|
+
.jz-th, .jz-td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: var(--bw-thin) solid var(--page-divider); }
|
|
133
|
+
.jz-th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: var(--fw-semibold); color: var(--card-fg-2); background: var(--surface-bg); white-space: nowrap; }
|
|
134
|
+
.jz-th--sortable { cursor: pointer; user-select: none; }
|
|
135
|
+
.jz-th--sortable:hover { color: var(--card-fg); }
|
|
136
|
+
.jz-th--right, .jz-td--right { text-align: right; }
|
|
137
|
+
.jz-td--mono { font-family: var(--font-mono); font-size: 13px; }
|
|
138
|
+
.jz-table tbody tr:last-child .jz-td { border-bottom: 0; }
|
|
139
|
+
.jz-table--hover tbody tr:hover { background: var(--surface-bg); }
|
|
140
|
+
.jz-table tbody tr[data-clickable] { cursor: pointer; }
|
|
141
|
+
|
|
142
|
+
/* ---------- Tabs ---------- */
|
|
143
|
+
.jz-tabs__list { display: flex; gap: 0; border-bottom: var(--bw-thin) solid var(--surface-border); overflow-x: auto; }
|
|
144
|
+
.jz-tab {
|
|
145
|
+
font-family: var(--font-primary); font-size: 14px; font-weight: var(--fw-regular); color: var(--page-fg-2);
|
|
146
|
+
background: none; border: 0; border-bottom: calc(var(--bw-accent) + 1px) solid transparent; margin-bottom: -1px;
|
|
147
|
+
padding: var(--sp-3) var(--sp-4); cursor: pointer; white-space: nowrap;
|
|
148
|
+
}
|
|
149
|
+
.jz-tab { transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
|
|
150
|
+
.jz-tab:hover:not([aria-selected="true"]) { background: var(--surface-bg-2); color: var(--page-fg); }
|
|
151
|
+
.jz-tab[aria-selected="true"] { color: var(--page-fg); font-weight: var(--fw-semibold); border-bottom-color: var(--jz-fire); }
|
|
152
|
+
.jz-tabs__panel { padding-top: var(--sp-4); }
|
|
153
|
+
|
|
154
|
+
/* ---------- Modal ---------- */
|
|
155
|
+
.jz-modal { padding: 0; border: var(--bw-thin) solid var(--page-border-2); border-radius: var(--r-lg); background: var(--surface-bg); color: var(--page-fg); box-shadow: var(--shadow-lg); width: min(520px, calc(100vw - var(--sp-5))); max-height: calc(100vh - var(--sp-6)); font-family: var(--font-primary); }
|
|
156
|
+
.jz-modal--lg { width: min(760px, calc(100vw - var(--sp-5))); }
|
|
157
|
+
.jz-modal::backdrop { background: rgba(13,25,33,0.6); }
|
|
158
|
+
.jz-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-5); border-bottom: var(--bw-thin) solid var(--page-divider); }
|
|
159
|
+
.jz-modal__title { margin: 1px 0 0; font-size: var(--jz-ui-title); line-height: var(--jz-ui-title-lh); font-weight: var(--fw-bold); }
|
|
160
|
+
/* Close: same 28px square / 18px icon as the toast close; equal head padding top/right keeps the X equidistant from both edges. */
|
|
161
|
+
.jz-modal__close { flex: none; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-sm); color: var(--page-fg-2); cursor: pointer; }
|
|
162
|
+
.jz-modal__close:hover { color: var(--page-fg); background: var(--surface-bg-3); }
|
|
163
|
+
.jz-modal__close:focus-visible { outline-offset: 0; }
|
|
164
|
+
.jz-modal__body { padding: var(--sp-5); overflow: auto; font-size: var(--jz-ui-text); font-weight: var(--fw-light); color: var(--page-fg-2); }
|
|
165
|
+
.jz-modal__foot { display: flex; justify-content: flex-end; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5) var(--sp-4); }
|
|
166
|
+
|
|
167
|
+
/* ---------- Toast ---------- */
|
|
168
|
+
.jz-toasts { position: fixed; right: var(--sp-4); bottom: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); z-index: 1000; max-width: min(380px, calc(100vw - var(--sp-5))); }
|
|
169
|
+
.jz-toast { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); background: var(--surface-bg-2); color: var(--page-fg); border: var(--bw-thin) solid var(--page-border-2); border-left: calc(var(--bw-accent) + 1px) solid var(--page-fg-3); border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: var(--shadow-md); font-family: var(--font-primary); font-size: 14px; }
|
|
170
|
+
.jz-toast--success { border-left-color: var(--alert-success-fg); }
|
|
171
|
+
.jz-toast--warning { border-left-color: var(--alert-warn-fg); }
|
|
172
|
+
.jz-toast--danger { border-left-color: var(--alert-error-fg); }
|
|
173
|
+
.jz-toast--info { border-left-color: var(--alert-info-fg); }
|
|
174
|
+
.jz-toast__title { font-weight: var(--fw-semibold); }
|
|
175
|
+
.jz-toast__desc { color: var(--page-fg-2); font-size: 13px; }
|
|
176
|
+
/* Close: a 28px square with the glyph centred, so with equal toast padding top/right the X sits equidistant from both edges. */
|
|
177
|
+
.jz-toast__x { margin-left: auto; flex: none; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-sm); color: var(--page-fg-2); cursor: pointer; }
|
|
178
|
+
.jz-toast__x:hover { color: var(--page-fg); background: var(--surface-bg-3); }
|
|
179
|
+
.jz-toast__x:focus-visible { outline: var(--bw-accent) solid var(--input-focus); outline-offset: 0; }
|
|
180
|
+
|
|
181
|
+
/* ---------- App shell ---------- */
|
|
182
|
+
.jz-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: var(--page-bg); color: var(--page-fg); font-family: var(--font-primary); }
|
|
183
|
+
.jz-shell__side { background: var(--surface-bg); border-right: var(--bw-thin) solid var(--surface-border); padding: var(--sp-4) 0; display: flex; flex-direction: column; }
|
|
184
|
+
.jz-shell__brand { padding: 0 var(--sp-4) var(--sp-4); border-bottom: var(--bw-thin) solid var(--surface-border); }
|
|
185
|
+
.jz-shell__app { margin-top: var(--sp-2); font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--page-fg-3); }
|
|
186
|
+
.jz-nav__group { padding: var(--sp-4) 0 var(--sp-2); }
|
|
187
|
+
.jz-nav__label { padding: 0 var(--sp-4) var(--sp-2); font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--page-fg-3); }
|
|
188
|
+
.jz-nav__item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); border-left: calc(var(--bw-accent) + 1px) solid transparent; font-size: 13px; color: var(--page-fg-2); text-decoration: none; cursor: pointer; background: none; border-top: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; font-family: inherit; }
|
|
189
|
+
.jz-nav__item:hover { background: var(--surface-bg-2); color: var(--page-fg); }
|
|
190
|
+
.jz-nav__item[aria-current="page"] { border-left-color: var(--jz-fire); color: var(--page-fg); font-weight: var(--fw-semibold); background: var(--surface-bg-2); }
|
|
191
|
+
.jz-shell__main { display: flex; flex-direction: column; min-width: 0; }
|
|
192
|
+
.jz-shell__bar { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-5); border-bottom: var(--bw-thin) solid var(--surface-border); min-height: 56px; }
|
|
193
|
+
.jz-shell__title { margin: 0; font-size: var(--jz-ui-title); line-height: var(--jz-ui-title-lh); font-weight: var(--fw-bold); }
|
|
194
|
+
.jz-shell__spacer { flex: 1; }
|
|
195
|
+
.jz-shell__content { font-size: var(--jz-ui-text); font-weight: var(--fw-light); padding: var(--sp-5); width: 100%; max-width: var(--maxw-content); margin: 0 auto; flex: 1; }
|
|
196
|
+
.jz-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-bg-3); color: var(--page-fg); font-size: 12px; font-weight: var(--fw-semibold); border: var(--bw-thin) solid var(--page-border-2); }
|
|
197
|
+
.jz-shell__menu { display: none; }
|
|
198
|
+
.jz-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
199
|
+
@media (max-width: 800px) {
|
|
200
|
+
.jz-shell { grid-template-columns: 1fr; }
|
|
201
|
+
.jz-shell__side { display: none; }
|
|
202
|
+
.jz-shell[data-nav-open="true"] .jz-shell__side { display: flex; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; box-shadow: var(--shadow-lg); }
|
|
203
|
+
.jz-shell__menu { display: inline-flex; }
|
|
204
|
+
.jz-shell__bar, .jz-shell__content { padding-left: var(--sp-4); padding-right: var(--sp-4); }
|
|
205
|
+
}
|