@neetechs/ui 0.1.0 → 0.2.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/CHANGELOG.md +35 -0
- package/dist/components/alert/alert.css +6 -0
- package/dist/components/avatar/avatar.css +78 -0
- package/dist/components/badge/badge.css +9 -3
- package/dist/components/button/button.css +40 -0
- package/dist/components/card/card.css +19 -0
- package/dist/components/choice-card/choice-card.css +244 -0
- package/dist/components/disclosure/disclosure.css +154 -0
- package/dist/components/index.css +2 -0
- package/dist/components/progress/progress.css +12 -0
- package/dist/components/stat/stat.css +30 -0
- package/dist/domain/billing/index.css +6 -6
- package/dist/patterns/document-preview/document-preview.css +169 -0
- package/dist/patterns/editor-workspace/editor-workspace.css +276 -0
- package/dist/patterns/index.css +4 -0
- package/dist/patterns/profile-header/profile-header.css +205 -0
- package/dist/patterns/resource-card/resource-card.css +258 -0
- package/dist/patterns/settings-layout/settings-layout.css +133 -0
- package/dist/shell/navbar/navbar.css +28 -1
- package/dist/styles/themes/dark.css +8 -0
- package/dist/styles/themes/high-contrast.css +8 -0
- package/dist/styles/themes/light.css +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/NEETECHS_UI_UPGRADE_PLAN.md +121 -1
- package/docs/components.md +148 -0
- package/docs/page-patterns-and-workflows.md +27 -1
- package/docs/site-chrome.md +4 -0
- package/package.json +1 -1
- package/src/components/alert/alert.css +6 -0
- package/src/components/avatar/avatar.css +78 -0
- package/src/components/badge/badge.css +9 -3
- package/src/components/button/button.css +40 -0
- package/src/components/card/card.css +19 -0
- package/src/components/choice-card/choice-card.css +244 -0
- package/src/components/disclosure/disclosure.css +154 -0
- package/src/components/index.css +2 -0
- package/src/components/progress/progress.css +12 -0
- package/src/components/stat/stat.css +30 -0
- package/src/domain/billing/index.css +6 -6
- package/src/patterns/document-preview/document-preview.css +169 -0
- package/src/patterns/editor-workspace/editor-workspace.css +276 -0
- package/src/patterns/index.css +4 -0
- package/src/patterns/profile-header/profile-header.css +205 -0
- package/src/patterns/resource-card/resource-card.css +258 -0
- package/src/patterns/settings-layout/settings-layout.css +133 -0
- package/src/shell/navbar/navbar.css +28 -1
- package/src/styles/themes/dark.css +8 -0
- package/src/styles/themes/high-contrast.css +8 -0
- package/src/styles/themes/light.css +8 -0
- package/src/version.ts +1 -1
|
@@ -188,6 +188,36 @@ button.nt-stat {
|
|
|
188
188
|
border-inline-start: var(--nt-space-1) solid var(--nt-stat-tone);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
/* Split: headline figure in __body beside supporting facts in __aside
|
|
192
|
+
* (balances, quotas). Wraps intrinsically; any other child, such as an
|
|
193
|
+
* alert, takes a full row. */
|
|
194
|
+
.nt-stat--split {
|
|
195
|
+
flex-direction: row;
|
|
196
|
+
flex-wrap: wrap;
|
|
197
|
+
align-items: flex-start;
|
|
198
|
+
gap: var(--nt-space-4);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.nt-stat__body,
|
|
202
|
+
.nt-stat__aside {
|
|
203
|
+
display: flex;
|
|
204
|
+
flex-direction: column;
|
|
205
|
+
gap: var(--nt-space-2);
|
|
206
|
+
min-width: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.nt-stat__body {
|
|
210
|
+
flex: 999 1 16rem;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.nt-stat__aside {
|
|
214
|
+
flex: 1 1 12rem;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.nt-stat--split > :not(.nt-stat__body, .nt-stat__aside) {
|
|
218
|
+
flex: 1 0 100%;
|
|
219
|
+
}
|
|
220
|
+
|
|
191
221
|
/* Wide: spans every column of a stat grid (featured figure). */
|
|
192
222
|
.nt-stat--wide {
|
|
193
223
|
grid-column: 1 / -1;
|
|
@@ -231,10 +231,10 @@
|
|
|
231
231
|
gap: var(--nt-space-1);
|
|
232
232
|
min-height: 1.5rem;
|
|
233
233
|
padding: 0 var(--nt-space-2);
|
|
234
|
-
border: 1px solid var(--nt-border
|
|
234
|
+
border: 1px solid var(--nt-neutral-border);
|
|
235
235
|
border-radius: var(--nt-radius-pill);
|
|
236
|
-
background: var(--nt-bg
|
|
237
|
-
color: var(--nt-text
|
|
236
|
+
background: var(--nt-neutral-bg);
|
|
237
|
+
color: var(--nt-neutral-text);
|
|
238
238
|
font: var(--nt-text-label-xs);
|
|
239
239
|
letter-spacing: var(--nt-letter-spacing-label);
|
|
240
240
|
white-space: nowrap;
|
|
@@ -249,9 +249,9 @@
|
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
.nt-billing-status--draft {
|
|
252
|
-
border-color: var(--nt-border
|
|
253
|
-
background: var(--nt-bg
|
|
254
|
-
color: var(--nt-text
|
|
252
|
+
border-color: var(--nt-neutral-border);
|
|
253
|
+
background: var(--nt-neutral-bg);
|
|
254
|
+
color: var(--nt-neutral-text);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
.nt-billing-status--sent,
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Document preview: a printable page shown at true size on a canvas
|
|
3
|
+
* (résumés, invoices, offers, contracts, letters). Distilled from
|
|
4
|
+
* MyAccount's Resume Studio: the sheet keeps its real paper width so lines
|
|
5
|
+
* wrap exactly as in the exported PDF, and narrow screens scroll the
|
|
6
|
+
* canvas horizontally instead of squeezing the page. Paper and ink use the
|
|
7
|
+
* --nt-document-* tokens, which stay paper-colored in every theme.
|
|
8
|
+
*
|
|
9
|
+
* The page content's own typography (résumé or invoice layout) belongs to
|
|
10
|
+
* the application; this pattern provides the canvas, sheet, margins, page
|
|
11
|
+
* breaks, and print geometry.
|
|
12
|
+
*
|
|
13
|
+
* Markup: <div class="nt-document-preview">
|
|
14
|
+
* <div class="nt-document-preview__viewport" tabindex="0" role="region" aria-label="Preview">
|
|
15
|
+
* <article class="nt-document-preview__page">…</article>
|
|
16
|
+
* </div>
|
|
17
|
+
* <p class="nt-document-preview__caption">…</p>
|
|
18
|
+
* </div>
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
.nt-document-preview {
|
|
22
|
+
--nt-document-page-width: 210mm;
|
|
23
|
+
--nt-document-page-height: 297mm;
|
|
24
|
+
--nt-document-margin-block: 13mm;
|
|
25
|
+
--nt-document-margin-inline: 14mm;
|
|
26
|
+
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: var(--nt-space-3);
|
|
30
|
+
min-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.nt-document-preview__viewport {
|
|
34
|
+
min-width: 0;
|
|
35
|
+
padding: var(--nt-space-6) var(--nt-space-4);
|
|
36
|
+
overflow-x: auto;
|
|
37
|
+
border-radius: inherit;
|
|
38
|
+
background: var(--nt-document-canvas);
|
|
39
|
+
scrollbar-gutter: stable;
|
|
40
|
+
overscroll-behavior-inline: contain;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.nt-document-preview__viewport:focus-visible {
|
|
44
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
45
|
+
outline-offset: calc(var(--nt-focus-ring-width) * -1);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.nt-document-preview__page {
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
width: var(--nt-document-page-width);
|
|
51
|
+
min-width: var(--nt-document-page-width);
|
|
52
|
+
min-height: var(--nt-document-page-height);
|
|
53
|
+
margin-inline: auto;
|
|
54
|
+
padding: var(--nt-document-margin-block) var(--nt-document-margin-inline);
|
|
55
|
+
background: var(--nt-document-paper);
|
|
56
|
+
color: var(--nt-document-ink);
|
|
57
|
+
box-shadow: var(--nt-elevation-raised);
|
|
58
|
+
overflow-wrap: break-word;
|
|
59
|
+
color-scheme: light;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.nt-document-preview__page + .nt-document-preview__page {
|
|
63
|
+
margin-block-start: var(--nt-space-6);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Page sizes */
|
|
67
|
+
|
|
68
|
+
.nt-document-preview--letter {
|
|
69
|
+
--nt-document-page-width: 215.9mm;
|
|
70
|
+
--nt-document-page-height: 279.4mm;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Fluid: on-screen documents that are never printed at a fixed size. */
|
|
74
|
+
.nt-document-preview--fluid .nt-document-preview__page {
|
|
75
|
+
width: 100%;
|
|
76
|
+
min-width: 0;
|
|
77
|
+
max-width: var(--nt-document-page-width);
|
|
78
|
+
min-height: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Margins */
|
|
82
|
+
|
|
83
|
+
.nt-document-preview--margin-narrow {
|
|
84
|
+
--nt-document-margin-block: 10mm;
|
|
85
|
+
--nt-document-margin-inline: 10mm;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.nt-document-preview--margin-wide {
|
|
89
|
+
--nt-document-margin-block: 17mm;
|
|
90
|
+
--nt-document-margin-inline: 18mm;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Variants */
|
|
94
|
+
|
|
95
|
+
/* Flush: the canvas fills its container edge to edge (inside an editor
|
|
96
|
+
* pane). */
|
|
97
|
+
.nt-document-preview--flush .nt-document-preview__viewport {
|
|
98
|
+
border-radius: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Internals */
|
|
102
|
+
|
|
103
|
+
/* Visible page-break marker on screen; a real page break in print. */
|
|
104
|
+
.nt-document-preview__page-break {
|
|
105
|
+
position: relative;
|
|
106
|
+
height: 1px;
|
|
107
|
+
margin-block: var(--nt-space-5);
|
|
108
|
+
border-block-start: 1px dashed var(--nt-document-rule);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.nt-document-preview__page-break[data-label]::after {
|
|
112
|
+
position: absolute;
|
|
113
|
+
inset-block-start: calc(var(--nt-space-4) * -1);
|
|
114
|
+
inset-inline-end: 0;
|
|
115
|
+
padding: var(--nt-space-0-5) var(--nt-space-1-5);
|
|
116
|
+
background: var(--nt-document-paper);
|
|
117
|
+
color: var(--nt-document-ink-muted);
|
|
118
|
+
font: var(--nt-text-caption);
|
|
119
|
+
content: attr(data-label);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.nt-document-preview__caption {
|
|
123
|
+
margin: 0;
|
|
124
|
+
color: var(--nt-text-muted);
|
|
125
|
+
font: var(--nt-text-caption);
|
|
126
|
+
text-align: center;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media (max-width: 40rem) {
|
|
130
|
+
.nt-document-preview__viewport {
|
|
131
|
+
padding: var(--nt-space-2);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@media print {
|
|
136
|
+
.nt-document-preview,
|
|
137
|
+
.nt-document-preview__viewport {
|
|
138
|
+
display: block;
|
|
139
|
+
padding: 0;
|
|
140
|
+
overflow: visible;
|
|
141
|
+
background: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.nt-document-preview__page {
|
|
145
|
+
width: auto;
|
|
146
|
+
min-width: 0;
|
|
147
|
+
min-height: 0;
|
|
148
|
+
margin: 0;
|
|
149
|
+
padding: 0;
|
|
150
|
+
box-shadow: none;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.nt-document-preview__page + .nt-document-preview__page {
|
|
154
|
+
margin-block-start: 0;
|
|
155
|
+
break-before: page;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.nt-document-preview__page-break {
|
|
159
|
+
height: 0;
|
|
160
|
+
margin: 0;
|
|
161
|
+
border: 0;
|
|
162
|
+
break-before: page;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.nt-document-preview__page-break::after,
|
|
166
|
+
.nt-document-preview__caption {
|
|
167
|
+
display: none;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Editor workspace: a source editor beside a live preview (Markdown résumés,
|
|
3
|
+
* invoice and contract templates, email templates, AI drafts). Distilled
|
|
4
|
+
* from MyAccount's Resume Studio: page header and formatting toolbar above,
|
|
5
|
+
* two bordered panes with headings and a status footer, the preview pane
|
|
6
|
+
* optionally sticky while the source scrolls, and a print mode that keeps
|
|
7
|
+
* only the preview. Panes stack when the workspace is narrower than 64rem.
|
|
8
|
+
*
|
|
9
|
+
* Compose the header with .nt-page-header--compact and the formatting row
|
|
10
|
+
* with .nt-page-toolbar--surface; render the preview with
|
|
11
|
+
* .nt-document-preview.
|
|
12
|
+
*
|
|
13
|
+
* Markup: <div class="nt-editor-workspace">
|
|
14
|
+
* …header, toolbar…
|
|
15
|
+
* <div class="nt-editor-workspace__panes">
|
|
16
|
+
* <section class="nt-editor-pane" aria-labelledby="src-title">
|
|
17
|
+
* <div class="nt-editor-pane__header">
|
|
18
|
+
* <h2 class="nt-editor-pane__title" id="src-title">Markdown</h2>
|
|
19
|
+
* </div>
|
|
20
|
+
* <textarea class="nt-editor-pane__source" aria-labelledby="src-title"></textarea>
|
|
21
|
+
* <div class="nt-editor-pane__footer">
|
|
22
|
+
* <span class="nt-editor-status" data-state="saved" role="status">Saved</span>
|
|
23
|
+
* </div>
|
|
24
|
+
* </section>
|
|
25
|
+
* <section class="nt-editor-pane nt-editor-pane--preview">…</section>
|
|
26
|
+
* </div>
|
|
27
|
+
* </div>
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
.nt-editor-workspace {
|
|
31
|
+
--nt-editor-sticky-offset: var(--nt-space-3);
|
|
32
|
+
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
gap: var(--nt-space-4);
|
|
36
|
+
min-width: 0;
|
|
37
|
+
container-type: inline-size;
|
|
38
|
+
container-name: nt-editor-workspace;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.nt-editor-workspace__panes {
|
|
42
|
+
display: grid;
|
|
43
|
+
grid-template-columns: minmax(18rem, 2fr) minmax(0, 3fr);
|
|
44
|
+
align-items: start;
|
|
45
|
+
gap: var(--nt-space-4);
|
|
46
|
+
min-width: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.nt-editor-workspace--balanced .nt-editor-workspace__panes {
|
|
50
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* The preview follows the reader while a long source scrolls. */
|
|
54
|
+
.nt-editor-workspace--sticky-preview .nt-editor-pane--preview {
|
|
55
|
+
position: sticky;
|
|
56
|
+
top: var(--nt-editor-sticky-offset);
|
|
57
|
+
max-height: calc(100vh - 2 * var(--nt-editor-sticky-offset));
|
|
58
|
+
max-height: calc(100dvh - 2 * var(--nt-editor-sticky-offset));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.nt-editor-workspace--sticky-preview .nt-editor-pane--preview > .nt-editor-pane__body {
|
|
62
|
+
overflow: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@container nt-editor-workspace (max-width: 64rem) {
|
|
66
|
+
.nt-editor-workspace__panes,
|
|
67
|
+
.nt-editor-workspace--balanced .nt-editor-workspace__panes {
|
|
68
|
+
grid-template-columns: minmax(0, 1fr);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.nt-editor-workspace--sticky-preview .nt-editor-pane--preview {
|
|
72
|
+
position: static;
|
|
73
|
+
max-height: none;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Pane */
|
|
78
|
+
|
|
79
|
+
.nt-editor-pane {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
min-width: 0;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
border: 1px solid var(--nt-border-subtle);
|
|
85
|
+
border-radius: var(--nt-radius-panel);
|
|
86
|
+
background: var(--nt-bg-surface);
|
|
87
|
+
transition: border-color var(--nt-duration-fast) var(--nt-ease-standard);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* The pane being edited is marked without moving anything. */
|
|
91
|
+
.nt-editor-pane:focus-within {
|
|
92
|
+
border-color: var(--nt-border-interactive);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.nt-editor-pane__header {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex-wrap: wrap;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
gap: var(--nt-space-2) var(--nt-space-3);
|
|
101
|
+
min-height: var(--nt-control-height-lg);
|
|
102
|
+
padding: var(--nt-space-2) var(--nt-space-4);
|
|
103
|
+
border-block-end: 1px solid var(--nt-border-subtle);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.nt-editor-pane__title {
|
|
107
|
+
margin: 0;
|
|
108
|
+
color: var(--nt-text-primary);
|
|
109
|
+
font: var(--nt-text-label-lg);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.nt-editor-pane__meta {
|
|
113
|
+
color: var(--nt-text-muted);
|
|
114
|
+
font: var(--nt-text-caption);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.nt-editor-pane__actions {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-wrap: wrap;
|
|
120
|
+
align-items: center;
|
|
121
|
+
gap: var(--nt-space-1);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.nt-editor-pane__body {
|
|
125
|
+
min-width: 0;
|
|
126
|
+
min-height: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Full-bleed source editor: monospace, generous line height, inset focus
|
|
130
|
+
* ring because the pane edge is the control edge. */
|
|
131
|
+
.nt-editor-pane__source {
|
|
132
|
+
display: block;
|
|
133
|
+
width: 100%;
|
|
134
|
+
min-height: 60vh;
|
|
135
|
+
min-height: 60dvh;
|
|
136
|
+
margin: 0;
|
|
137
|
+
padding: var(--nt-space-4);
|
|
138
|
+
border: 0;
|
|
139
|
+
border-radius: 0;
|
|
140
|
+
background: var(--nt-bg-surface-sunken);
|
|
141
|
+
color: var(--nt-text-primary);
|
|
142
|
+
font: var(--nt-text-mono-sm);
|
|
143
|
+
line-height: var(--nt-line-height-body-lg);
|
|
144
|
+
tab-size: 2;
|
|
145
|
+
resize: vertical;
|
|
146
|
+
unicode-bidi: plaintext;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.nt-editor-pane__source:focus,
|
|
150
|
+
.nt-editor-pane__source:focus-visible {
|
|
151
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
152
|
+
outline-offset: calc(var(--nt-focus-ring-width) * -1);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.nt-editor-pane__footer {
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-wrap: wrap;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: space-between;
|
|
160
|
+
gap: var(--nt-space-2) var(--nt-space-4);
|
|
161
|
+
padding: var(--nt-space-2) var(--nt-space-4);
|
|
162
|
+
border-block-start: 1px solid var(--nt-border-subtle);
|
|
163
|
+
color: var(--nt-text-muted);
|
|
164
|
+
font: var(--nt-text-caption);
|
|
165
|
+
font-variant-numeric: tabular-nums;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.nt-editor-pane__footer:empty {
|
|
169
|
+
display: none;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@container nt-editor-workspace (max-width: 64rem) {
|
|
173
|
+
.nt-editor-pane__source {
|
|
174
|
+
min-height: 40vh;
|
|
175
|
+
min-height: 40dvh;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Save status: idle / saving / saved / error. Always a word plus a dot; the
|
|
180
|
+
* dot pulses while saving and pops once when saved. Announce changes with
|
|
181
|
+
* role="status" on the element. */
|
|
182
|
+
.nt-editor-status {
|
|
183
|
+
--nt-editor-status-color: var(--nt-text-muted);
|
|
184
|
+
|
|
185
|
+
display: inline-flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
gap: var(--nt-space-1-5);
|
|
188
|
+
color: var(--nt-text-muted);
|
|
189
|
+
font: var(--nt-text-label-sm);
|
|
190
|
+
white-space: nowrap;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.nt-editor-status::before {
|
|
194
|
+
display: inline-block;
|
|
195
|
+
flex: 0 0 auto;
|
|
196
|
+
width: var(--nt-space-2);
|
|
197
|
+
height: var(--nt-space-2);
|
|
198
|
+
border-radius: var(--nt-radius-pill);
|
|
199
|
+
background: var(--nt-editor-status-color);
|
|
200
|
+
content: '';
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.nt-editor-status[data-state='saving'] {
|
|
204
|
+
--nt-editor-status-color: var(--nt-info);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.nt-editor-status[data-state='saving']::before {
|
|
208
|
+
animation: nt-skeleton-pulse var(--nt-duration-slower) var(--nt-ease-standard) infinite alternate;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.nt-editor-status[data-state='saved'] {
|
|
212
|
+
--nt-editor-status-color: var(--nt-success);
|
|
213
|
+
|
|
214
|
+
color: var(--nt-success-text);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.nt-editor-status[data-state='saved']::before {
|
|
218
|
+
animation: nt-editor-status-pop var(--nt-duration-slow) var(--nt-ease-emphasized);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.nt-editor-status[data-state='error'] {
|
|
222
|
+
--nt-editor-status-color: var(--nt-danger);
|
|
223
|
+
|
|
224
|
+
color: var(--nt-danger-text);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.nt-editor-status[data-state='unsaved'] {
|
|
228
|
+
--nt-editor-status-color: var(--nt-warning);
|
|
229
|
+
|
|
230
|
+
color: var(--nt-warning-text);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@keyframes nt-editor-status-pop {
|
|
234
|
+
0% {
|
|
235
|
+
transform: scale(0.4);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
60% {
|
|
239
|
+
transform: scale(1.35);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
100% {
|
|
243
|
+
transform: scale(1);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Print only the document. */
|
|
248
|
+
@media print {
|
|
249
|
+
.nt-editor-workspace > :not(.nt-editor-workspace__panes),
|
|
250
|
+
.nt-editor-pane:not(.nt-editor-pane--preview),
|
|
251
|
+
.nt-editor-pane__header,
|
|
252
|
+
.nt-editor-pane__footer {
|
|
253
|
+
display: none !important;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.nt-editor-workspace__panes {
|
|
257
|
+
display: block;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.nt-editor-pane--preview,
|
|
261
|
+
.nt-editor-workspace--sticky-preview .nt-editor-pane--preview {
|
|
262
|
+
position: static;
|
|
263
|
+
max-height: none;
|
|
264
|
+
overflow: visible;
|
|
265
|
+
border: 0;
|
|
266
|
+
background: none;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@media (prefers-reduced-motion: reduce) {
|
|
271
|
+
.nt-editor-pane,
|
|
272
|
+
.nt-editor-status::before {
|
|
273
|
+
transition: none !important;
|
|
274
|
+
animation: none !important;
|
|
275
|
+
}
|
|
276
|
+
}
|
package/dist/patterns/index.css
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
@import './page/page.css';
|
|
2
2
|
@import './record-list/record-list.css';
|
|
3
|
+
@import './profile-header/profile-header.css';
|
|
4
|
+
@import './resource-card/resource-card.css';
|
|
5
|
+
@import './editor-workspace/editor-workspace.css';
|
|
6
|
+
@import './document-preview/document-preview.css';
|
|
3
7
|
@import './form-layout/form-layout.css';
|
|
4
8
|
@import './settings-layout/settings-layout.css';
|
|
5
9
|
@import './master-detail/master-detail.css';
|