@whity/ui 0.5.0 → 1.0.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 +107 -107
- package/package.json +221 -192
- package/src/access-denied.stories.tsx +179 -179
- package/src/access-denied.tsx +305 -305
- package/src/action-proposal.tsx +338 -302
- package/src/actor-chip.tsx +71 -71
- package/src/agent-activity.tsx +163 -163
- package/src/agent-collaboration.stories.tsx +156 -156
- package/src/agent-run-status.tsx +196 -196
- package/src/alert-dialog.stories.tsx +45 -45
- package/src/alert-dialog.tsx +147 -147
- package/src/alert.stories.tsx +91 -91
- package/src/alert.tsx +89 -89
- package/src/app-sidebar.stories.tsx +195 -195
- package/src/app-sidebar.tsx +604 -500
- package/src/approval-queue.tsx +109 -108
- package/src/audience-group-picker.stories.tsx +198 -198
- package/src/audience-group-picker.tsx +362 -362
- package/src/audience-people-picker.stories.tsx +102 -102
- package/src/audience-people-picker.tsx +279 -279
- package/src/avatar-pattern.ts +138 -0
- package/src/avatar.tsx +125 -83
- package/src/badge.stories.tsx +105 -105
- package/src/badge.tsx +68 -68
- package/src/beta-warning.stories.tsx +79 -79
- package/src/beta-warning.tsx +189 -189
- package/src/bilingual-input.stories.tsx +82 -82
- package/src/bilingual-input.tsx +188 -183
- package/src/board.tsx +216 -0
- package/src/breadcrumb.stories.tsx +51 -51
- package/src/breadcrumb.tsx +90 -90
- package/src/built-on-whity.tsx +52 -0
- package/src/button.stories.tsx +87 -87
- package/src/button.tsx +123 -118
- package/src/card.stories.tsx +423 -423
- package/src/card.tsx +180 -180
- package/src/chart.stories.tsx +66 -66
- package/src/chart.tsx +228 -228
- package/src/checkbox.stories.tsx +62 -62
- package/src/checkbox.tsx +54 -54
- package/src/collapsible.stories.tsx +48 -48
- package/src/collapsible.tsx +34 -34
- package/src/color-card.stories.tsx +61 -61
- package/src/color-card.tsx +270 -270
- package/src/color-picker.stories.tsx +65 -65
- package/src/color-picker.tsx +425 -425
- package/src/column-matcher.tsx +84 -0
- package/src/command-palette.tsx +398 -306
- package/src/confirm-action.tsx +98 -0
- package/src/copy-block.stories.tsx +38 -38
- package/src/copy-block.tsx +85 -85
- package/src/data-table.stories.tsx +200 -200
- package/src/data-table.tsx +1686 -1106
- package/src/date-picker.stories.tsx +61 -61
- package/src/date-picker.tsx +456 -422
- package/src/design-cards.stories.tsx +551 -458
- package/src/dialog.stories.tsx +48 -48
- package/src/dialog.tsx +179 -166
- package/src/display-preferences.tsx +50 -0
- package/src/documents/barcode-svg.stories.tsx +72 -72
- package/src/documents/barcode-svg.tsx +79 -79
- package/src/dropdown-menu.stories.tsx +77 -77
- package/src/dropdown-menu.tsx +271 -271
- package/src/editor/agent-panel.tsx +222 -0
- package/src/editor/agents.stories.tsx +81 -0
- package/src/editor/agents.ts +55 -0
- package/src/editor/behaviour.ts +279 -279
- package/src/editor/block-ids.ts +44 -44
- package/src/editor/block-list.tsx +104 -101
- package/src/editor/block-toolbar.tsx +490 -477
- package/src/editor/bubble.tsx +119 -93
- package/src/editor/catalogue.ts +169 -103
- package/src/editor/collab-rail.tsx +746 -746
- package/src/editor/collab.stories.tsx +207 -207
- package/src/editor/collab.ts +87 -87
- package/src/editor/contract.ts +476 -408
- package/src/editor/convert.ts +414 -362
- package/src/editor/doc-editor.stories.tsx +98 -98
- package/src/editor/doc-editor.tsx +1492 -1287
- package/src/editor/editor.css +636 -536
- package/src/editor/extensions.ts +86 -86
- package/src/editor/field-bar.tsx +154 -0
- package/src/editor/field-picker.tsx +109 -107
- package/src/editor/fields.ts +100 -100
- package/src/editor/gutter.tsx +443 -367
- package/src/editor/index.ts +23 -22
- package/src/editor/label-sheet.tsx +289 -289
- package/src/editor/labels.ts +394 -310
- package/src/editor/link-tools.tsx +141 -141
- package/src/editor/node-views.tsx +461 -450
- package/src/editor/page-view.tsx +372 -353
- package/src/editor/phone.tsx +310 -0
- package/src/editor/plugin-block-view.tsx +230 -0
- package/src/editor/plugin-blocks.stories.tsx +96 -0
- package/src/editor/plugin-blocks.ts +52 -0
- package/src/editor/publish-check.tsx +201 -182
- package/src/editor/rich-blocks.stories.tsx +146 -146
- package/src/editor/sample.ts +40 -40
- package/src/editor/save-block-dialog.tsx +141 -0
- package/src/editor/saved-block-view.tsx +205 -0
- package/src/editor/saved-blocks.stories.tsx +105 -0
- package/src/editor/saved-parts.ts +192 -0
- package/src/editor/schema-rich.ts +156 -150
- package/src/editor/schema.ts +368 -315
- package/src/editor/services.tsx +205 -127
- package/src/editor/slash.ts +64 -64
- package/src/editor/suggesting.ts +372 -372
- package/src/editor/suggestions.ts +763 -763
- package/src/editor/table-keys.ts +66 -66
- package/src/editor/templates.stories.tsx +324 -324
- package/src/editor/toolbar.tsx +364 -358
- package/src/empty-state.stories.tsx +51 -51
- package/src/empty-state.tsx +126 -100
- package/src/empty-state.usage-notes.md +30 -30
- package/src/form.stories.tsx +112 -112
- package/src/form.tsx +176 -176
- package/src/globals.css +20 -20
- package/src/icon-button.tsx +85 -85
- package/src/icon-map.ts +335 -244
- package/src/icon.tsx +41 -41
- package/src/index.ts +90 -67
- package/src/input.stories.tsx +157 -157
- package/src/input.tsx +768 -759
- package/src/kpi-strip.tsx +47 -0
- package/src/localized-text.ts +76 -0
- package/src/locked-screen.stories.tsx +29 -29
- package/src/locked-screen.tsx +75 -61
- package/src/lockup.tsx +42 -0
- package/src/lottie.tsx +441 -0
- package/src/mark.tsx +62 -62
- package/src/math-text.stories.tsx +33 -33
- package/src/math-text.tsx +43 -43
- package/src/menu-bar.stories.tsx +198 -198
- package/src/menu-bar.tsx +373 -373
- package/src/message-thread.tsx +181 -0
- package/src/money/currency.ts +244 -230
- package/src/money/money-input.tsx +131 -0
- package/src/money/money.tsx +33 -0
- package/src/open-on-computer.tsx +150 -0
- package/src/otp-input.tsx +161 -0
- package/src/page-header.stories.tsx +95 -95
- package/src/page-header.tsx +122 -122
- package/src/page-shell.stories.tsx +42 -42
- package/src/page-shell.tsx +32 -32
- package/src/page-states.tsx +277 -0
- package/src/pagination.stories.tsx +45 -45
- package/src/pagination.tsx +98 -98
- package/src/paper-sheet.stories.tsx +88 -0
- package/src/paper-sheet.tsx +85 -0
- package/src/phone-tab-bar.tsx +152 -0
- package/src/plugin-card.stories.tsx +208 -180
- package/src/plugin-card.tsx +931 -848
- package/src/popover.stories.tsx +48 -48
- package/src/popover.tsx +55 -55
- package/src/radio-group.stories.tsx +26 -26
- package/src/radio-group.tsx +44 -44
- package/src/route-flow/editor.tsx +1087 -1014
- package/src/route-flow/model.ts +771 -716
- package/src/save-bar.tsx +94 -0
- package/src/scope-grant.tsx +139 -139
- package/src/screen-too-small.stories.tsx +61 -61
- package/src/screen-too-small.tsx +104 -104
- package/src/search-field.tsx +65 -0
- package/src/select.stories.tsx +44 -44
- package/src/select.tsx +197 -197
- package/src/separator.stories.tsx +34 -34
- package/src/separator.tsx +34 -34
- package/src/sheet.stories.tsx +49 -49
- package/src/sheet.tsx +168 -168
- package/src/skeleton.stories.tsx +28 -28
- package/src/skeleton.tsx +19 -19
- package/src/slider.stories.tsx +78 -78
- package/src/slider.tsx +300 -300
- package/src/spinner.stories.tsx +33 -33
- package/src/spinner.tsx +55 -55
- package/src/stepper.tsx +85 -0
- package/src/switch.stories.tsx +42 -42
- package/src/switch.tsx +41 -41
- package/src/switcher.stories.tsx +111 -111
- package/src/switcher.tsx +131 -131
- package/src/system-state.tsx +55 -0
- package/src/table.stories.tsx +48 -48
- package/src/table.tsx +121 -121
- package/src/tabs.stories.tsx +74 -74
- package/src/tabs.tsx +90 -90
- package/src/tag-input.stories.tsx +67 -67
- package/src/tag-input.tsx +117 -117
- package/src/tenant-logo.tsx +63 -63
- package/src/tenant-switcher.stories.tsx +38 -38
- package/src/tenant-switcher.tsx +164 -164
- package/src/textarea.stories.tsx +27 -27
- package/src/textarea.tsx +18 -18
- package/src/theme-mode.ts +52 -52
- package/src/time-grid.tsx +163 -0
- package/src/time-picker.stories.tsx +62 -62
- package/src/time-picker.tsx +615 -615
- package/src/toggle-group.tsx +138 -138
- package/src/tooltip.stories.tsx +43 -43
- package/src/tooltip.tsx +73 -73
- package/src/top-nav.stories.tsx +58 -58
- package/src/top-nav.tsx +324 -324
- package/src/undo-bar.tsx +107 -107
- package/src/utils.ts +45 -45
- package/src/view-toggle.stories.tsx +84 -84
- package/src/view-toggle.tsx +110 -110
package/src/editor/editor.css
CHANGED
|
@@ -1,536 +1,636 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* The document editor's content styles (docs/design/components/Editor*,
|
|
3
|
-
* bundle.css `.wy-blk`). Tokens only, sizes included (--doc-text-*, from the
|
|
4
|
-
* `document` group in base.json). The sheet's text is 16px at line height
|
|
5
|
-
* 1.5 (Arabic 1.7); headings are Noto Sans 600 at 24, 20 and 18px (E.33);
|
|
6
|
-
* bold is 600 (3.6); one highlight colour, the sky series at 40% (E.25).
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
.wy-doc {
|
|
10
|
-
font-family: var(--font-sans);
|
|
11
|
-
font-size: var(--doc-text-sheet-body);
|
|
12
|
-
line-height: var(--doc-leading-body);
|
|
13
|
-
color: var(--foreground);
|
|
14
|
-
outline: none;
|
|
15
|
-
overflow-wrap: break-word;
|
|
16
|
-
}
|
|
17
|
-
.wy-doc:lang(ar),
|
|
18
|
-
[dir="rtl"] .wy-doc {
|
|
19
|
-
font-family: var(--font-arabic);
|
|
20
|
-
line-height: var(--doc-leading-body-arabic);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.wy-doc > * {
|
|
24
|
-
position: relative;
|
|
25
|
-
margin: 0;
|
|
26
|
-
padding-block: 3px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.wy-doc p,
|
|
30
|
-
.wy-doc h2,
|
|
31
|
-
.wy-doc h3,
|
|
32
|
-
.wy-doc h4 {
|
|
33
|
-
unicode-bidi: plaintext; /* each block follows its own text's direction */
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.wy-doc h2 { padding-top: 24px; font-size: var(--doc-text-sheet-h1); font-weight: 600; line-height: var(--doc-leading-h1); }
|
|
37
|
-
.wy-doc h3 { padding-top: 18px; font-size: var(--doc-text-sheet-h2); font-weight: 600; line-height: var(--doc-leading-h2); }
|
|
38
|
-
.wy-doc h4 { padding-top: 12px; font-size: var(--doc-text-sheet-h3); font-weight: 600; line-height: var(--doc-leading-h3); }
|
|
39
|
-
|
|
40
|
-
.wy-doc blockquote {
|
|
41
|
-
border-inline-start: 3px solid var(--foreground);
|
|
42
|
-
padding-inline-start: 14px;
|
|
43
|
-
margin-block: 3px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.wy-doc pre {
|
|
47
|
-
margin-block: 3px;
|
|
48
|
-
padding: 12px 14px;
|
|
49
|
-
border-radius: var(--radius-control-lg);
|
|
50
|
-
background: var(--muted);
|
|
51
|
-
font-family: var(--font-mono);
|
|
52
|
-
font-size: 0.8125rem;
|
|
53
|
-
line-height: 1.6;
|
|
54
|
-
overflow-x: auto;
|
|
55
|
-
white-space: pre;
|
|
56
|
-
direction: ltr;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Flat list items: the marker is a decoration (behaviour.ts `listMarkers`). */
|
|
60
|
-
.wy-doc [data-type="list-item"] {
|
|
61
|
-
display: flex;
|
|
62
|
-
gap: 8px;
|
|
63
|
-
padding-inline-start: 4px;
|
|
64
|
-
}
|
|
65
|
-
.wy-doc [data-type="list-item"]::before {
|
|
66
|
-
content: attr(data-marker);
|
|
67
|
-
flex: none;
|
|
68
|
-
min-width: 18px;
|
|
69
|
-
color: var(--muted-foreground);
|
|
70
|
-
font-variant-numeric: tabular-nums;
|
|
71
|
-
text-align: end;
|
|
72
|
-
}
|
|
73
|
-
.wy-doc [data-type="list-item"][data-level="1"],
|
|
74
|
-
.wy-doc [data-type="check-item"][data-level="1"] { padding-inline-start: 28px; }
|
|
75
|
-
.wy-doc [data-type="list-item"][data-level="2"],
|
|
76
|
-
.wy-doc [data-type="check-item"][data-level="2"] { padding-inline-start: 52px; }
|
|
77
|
-
|
|
78
|
-
.wy-doc [data-type="check-item"] {
|
|
79
|
-
display: flex;
|
|
80
|
-
gap: 10px;
|
|
81
|
-
align-items: flex-start;
|
|
82
|
-
}
|
|
83
|
-
.wy-doc .wy-check {
|
|
84
|
-
flex: none;
|
|
85
|
-
width: 16px;
|
|
86
|
-
height: 16px;
|
|
87
|
-
margin-top: 4px;
|
|
88
|
-
padding: 0;
|
|
89
|
-
border: 1.5px solid var(--input);
|
|
90
|
-
border-radius: 4px;
|
|
91
|
-
background: var(--card);
|
|
92
|
-
cursor: pointer;
|
|
93
|
-
display: grid;
|
|
94
|
-
place-items: center;
|
|
95
|
-
}
|
|
96
|
-
.wy-doc .wy-check:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
97
|
-
.wy-doc [data-checked="true"] > .wy-check {
|
|
98
|
-
background: var(--primary);
|
|
99
|
-
border-color: var(--primary);
|
|
100
|
-
}
|
|
101
|
-
.wy-doc [data-checked="true"] > .wy-check::after {
|
|
102
|
-
content: "";
|
|
103
|
-
width: 8px;
|
|
104
|
-
height: 4px;
|
|
105
|
-
margin-top: -2px;
|
|
106
|
-
border-inline-start: 2px solid var(--primary-foreground);
|
|
107
|
-
border-bottom: 2px solid var(--primary-foreground);
|
|
108
|
-
rotate: -45deg;
|
|
109
|
-
}
|
|
110
|
-
.wy-doc [data-checked="true"] > .wy-check-text {
|
|
111
|
-
color: var(--muted-foreground);
|
|
112
|
-
text-decoration: line-through;
|
|
113
|
-
}
|
|
114
|
-
.wy-doc .wy-check-text { flex: 1; min-width: 0; }
|
|
115
|
-
|
|
116
|
-
.wy-doc hr {
|
|
117
|
-
border: 0;
|
|
118
|
-
border-top: 1px solid var(--border);
|
|
119
|
-
margin: 12px 0;
|
|
120
|
-
padding: 0;
|
|
121
|
-
}
|
|
122
|
-
.wy-doc hr.ProseMirror-selectednode { outline: 2px solid var(--ring); outline-offset: 4px; }
|
|
123
|
-
|
|
124
|
-
/* A block a later milestone edits: kept whole, shown as a quiet placeholder. */
|
|
125
|
-
.wy-doc [data-type="unknown-block"] {
|
|
126
|
-
margin-block: 3px;
|
|
127
|
-
padding: 10px 12px;
|
|
128
|
-
border: 1px dashed var(--input);
|
|
129
|
-
border-radius: var(--radius-control-lg);
|
|
130
|
-
color: var(--muted-foreground);
|
|
131
|
-
font-size: 0.875rem;
|
|
132
|
-
}
|
|
133
|
-
.wy-doc [data-type="unknown-block"]::before { content: attr(data-label); }
|
|
134
|
-
|
|
135
|
-
/* Inline */
|
|
136
|
-
.wy-doc strong { font-weight: 600; }
|
|
137
|
-
.wy-doc code {
|
|
138
|
-
font-family: var(--font-mono);
|
|
139
|
-
font-size: 0.875em;
|
|
140
|
-
padding: 1px 4px;
|
|
141
|
-
border-radius: 4px;
|
|
142
|
-
background: var(--muted);
|
|
143
|
-
}
|
|
144
|
-
.wy-doc pre code { padding: 0; background: none; font-size: inherit; }
|
|
145
|
-
.wy-doc a {
|
|
146
|
-
color: var(--primary);
|
|
147
|
-
text-decoration: underline;
|
|
148
|
-
text-underline-offset: 2px;
|
|
149
|
-
cursor: text;
|
|
150
|
-
}
|
|
151
|
-
.wy-doc mark[data-type="highlight"] {
|
|
152
|
-
color: inherit;
|
|
153
|
-
background: color-mix(in oklab, var(--chart-3) 40%, transparent);
|
|
154
|
-
border-radius: 2px;
|
|
155
|
-
}
|
|
156
|
-
/* E.26: a merge field, a chip with braces on the tint (EditorInline). */
|
|
157
|
-
.wy-mf {
|
|
158
|
-
display: inline-block;
|
|
159
|
-
padding: 0 5px;
|
|
160
|
-
margin: 0 1px;
|
|
161
|
-
border-radius: 4px;
|
|
162
|
-
background: var(--primary-tint);
|
|
163
|
-
color: var(--primary-tint-foreground);
|
|
164
|
-
font-size: 0.9em;
|
|
165
|
-
font-weight: 500;
|
|
166
|
-
line-height: 1.45;
|
|
167
|
-
white-space: nowrap;
|
|
168
|
-
}
|
|
169
|
-
.wy-mf::before { content: "{"; opacity: 0.55; margin-inline-end: 2px; }
|
|
170
|
-
.wy-mf::after { content: "}"; opacity: 0.55; margin-inline-start: 2px; }
|
|
171
|
-
.wy-mf:hover { outline: 1px solid var(--primary); }
|
|
172
|
-
.wy-mf.is-selected, .wy-doc .ProseMirror-selectednode.wy-mf { background: var(--primary); color: var(--primary-foreground); }
|
|
173
|
-
/* E.12: in preview, the record's value with a dotted underline. */
|
|
174
|
-
.wy-mf.is-preview { background: none; color: inherit; font-size: inherit; font-weight: inherit; padding: 0; margin: 0; border-bottom: 1px dotted var(--primary); border-radius: 0; }
|
|
175
|
-
.wy-mf.is-preview:hover { outline: 0; }
|
|
176
|
-
/* E.27: no value for this record. */
|
|
177
|
-
.wy-mf.is-missing { display: inline-flex; align-items: center; gap: 3px; background: var(--error-tint); color: var(--error-text); }
|
|
178
|
-
.wy-mf.is-preview::before, .wy-mf.is-preview::after, .wy-mf.is-missing::before, .wy-mf.is-missing::after { content: none; }
|
|
179
|
-
|
|
180
|
-
/* The field picker ({{ or Field ▾). */
|
|
181
|
-
.wy-fpick__it .wy-mf { pointer-events: none; }
|
|
182
|
-
|
|
183
|
-
/* The focused empty line says what it takes (EditorInsert). */
|
|
184
|
-
.wy-doc p.is-empty::before {
|
|
185
|
-
content: attr(data-placeholder);
|
|
186
|
-
float: inline-start;
|
|
187
|
-
height: 0;
|
|
188
|
-
pointer-events: none;
|
|
189
|
-
color: var(--muted-foreground);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/* A whole block selected from the keyboard (Esc) or the gutter: a 2px focus ring. */
|
|
193
|
-
.wy-doc > .ProseMirror-selectednode:not(hr) {
|
|
194
|
-
outline: 2px solid var(--ring);
|
|
195
|
-
outline-offset: 4px;
|
|
196
|
-
border-radius: 4px;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/* Dragging: the block fades in place while its copy follows the pointer. */
|
|
200
|
-
.wy-doc > .is-dragging { opacity: 0.4; }
|
|
201
|
-
|
|
202
|
-
/* Viewing mode: no caret, no placeholder. */
|
|
203
|
-
.wy-doc[contenteditable="false"] p.is-empty::before { content: none; }
|
|
204
|
-
|
|
205
|
-
/* ---------------------------------------------------- Rich blocks (M3) */
|
|
206
|
-
|
|
207
|
-
.wy-doc .wy-rich { position: relative; margin-block: 3px; }
|
|
208
|
-
.wy-doc .wy-rich.is-selected,
|
|
209
|
-
.wy-doc .ProseMirror-selectednode > .wy-rich { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 4px; }
|
|
210
|
-
|
|
211
|
-
/* Callout (E.14): Note on the muted grey, Important on the warning tint. */
|
|
212
|
-
.wy-doc [data-type="callout"] {
|
|
213
|
-
display: flex;
|
|
214
|
-
gap: 10px;
|
|
215
|
-
padding: 12px 14px;
|
|
216
|
-
border-radius: var(--radius-control-lg);
|
|
217
|
-
background: var(--muted);
|
|
218
|
-
}
|
|
219
|
-
.wy-doc [data-type="callout"][data-kind="important"] { background: var(--warning-tint); }
|
|
220
|
-
.wy-doc .wy-callout-icon { flex: none; margin-top: 3px; color: var(--muted-foreground); }
|
|
221
|
-
.wy-doc [data-kind="important"] .wy-callout-icon { color: var(--warning-text); }
|
|
222
|
-
.wy-doc .wy-callout-text { flex: 1; min-width: 0; unicode-bidi: plaintext; }
|
|
223
|
-
|
|
224
|
-
/*
|
|
225
|
-
|
|
226
|
-
.wy-doc .wy-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
231
|
-
.wy-doc .wy-
|
|
232
|
-
.wy-doc .wy-
|
|
233
|
-
.wy-doc
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
.wy-doc .wy-
|
|
256
|
-
.wy-doc .wy-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
.wy-doc .wy-
|
|
260
|
-
.wy-doc .wy-
|
|
261
|
-
|
|
262
|
-
.
|
|
263
|
-
.wy-doc .wy-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
.wy-doc .
|
|
267
|
-
.wy-doc .wy-
|
|
268
|
-
|
|
269
|
-
.wy-doc .wy-
|
|
270
|
-
.wy-doc .
|
|
271
|
-
.wy-doc .wy-
|
|
272
|
-
.wy-doc .wy-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
/*
|
|
285
|
-
.wy-doc .wy-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
.wy-doc
|
|
298
|
-
.wy-doc .wy-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
.wy-
|
|
322
|
-
.wy-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
.wy-
|
|
330
|
-
.wy-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
.wy-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}
|
|
353
|
-
.wy-
|
|
354
|
-
.wy-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
}
|
|
364
|
-
.wy-
|
|
365
|
-
.wy-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
/*
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
.wy-
|
|
372
|
-
.wy-
|
|
373
|
-
.wy-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
.wy-
|
|
377
|
-
|
|
378
|
-
.wy-
|
|
379
|
-
|
|
380
|
-
.wy-
|
|
381
|
-
.wy-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
}
|
|
394
|
-
.wy-
|
|
395
|
-
|
|
396
|
-
/*
|
|
397
|
-
.wy-
|
|
398
|
-
.wy-
|
|
399
|
-
.wy-
|
|
400
|
-
.wy-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}
|
|
459
|
-
.
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.wy-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
}
|
|
470
|
-
.wy-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
.wy-
|
|
477
|
-
.
|
|
478
|
-
.wy-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
.wy-
|
|
493
|
-
.wy-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
.wy-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
.wy-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
.wy-
|
|
534
|
-
|
|
535
|
-
.wy-
|
|
536
|
-
.
|
|
1
|
+
/*
|
|
2
|
+
* The document editor's content styles (docs/design/components/Editor*,
|
|
3
|
+
* bundle.css `.wy-blk`). Tokens only, sizes included (--doc-text-*, from the
|
|
4
|
+
* `document` group in base.json). The sheet's text is 16px at line height
|
|
5
|
+
* 1.5 (Arabic 1.7); headings are Noto Sans 600 at 24, 20 and 18px (E.33);
|
|
6
|
+
* bold is 600 (3.6); one highlight colour, the sky series at 40% (E.25).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.wy-doc {
|
|
10
|
+
font-family: var(--font-sans);
|
|
11
|
+
font-size: var(--doc-text-sheet-body);
|
|
12
|
+
line-height: var(--doc-leading-body);
|
|
13
|
+
color: var(--foreground);
|
|
14
|
+
outline: none;
|
|
15
|
+
overflow-wrap: break-word;
|
|
16
|
+
}
|
|
17
|
+
.wy-doc:lang(ar),
|
|
18
|
+
[dir="rtl"] .wy-doc {
|
|
19
|
+
font-family: var(--font-arabic);
|
|
20
|
+
line-height: var(--doc-leading-body-arabic);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.wy-doc > * {
|
|
24
|
+
position: relative;
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding-block: 3px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.wy-doc p,
|
|
30
|
+
.wy-doc h2,
|
|
31
|
+
.wy-doc h3,
|
|
32
|
+
.wy-doc h4 {
|
|
33
|
+
unicode-bidi: plaintext; /* each block follows its own text's direction */
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.wy-doc h2 { padding-top: 24px; font-size: var(--doc-text-sheet-h1); font-weight: 600; line-height: var(--doc-leading-h1); }
|
|
37
|
+
.wy-doc h3 { padding-top: 18px; font-size: var(--doc-text-sheet-h2); font-weight: 600; line-height: var(--doc-leading-h2); }
|
|
38
|
+
.wy-doc h4 { padding-top: 12px; font-size: var(--doc-text-sheet-h3); font-weight: 600; line-height: var(--doc-leading-h3); }
|
|
39
|
+
|
|
40
|
+
.wy-doc blockquote {
|
|
41
|
+
border-inline-start: 3px solid var(--foreground);
|
|
42
|
+
padding-inline-start: 14px;
|
|
43
|
+
margin-block: 3px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.wy-doc pre {
|
|
47
|
+
margin-block: 3px;
|
|
48
|
+
padding: 12px 14px;
|
|
49
|
+
border-radius: var(--radius-control-lg);
|
|
50
|
+
background: var(--muted);
|
|
51
|
+
font-family: var(--font-mono);
|
|
52
|
+
font-size: 0.8125rem;
|
|
53
|
+
line-height: 1.6;
|
|
54
|
+
overflow-x: auto;
|
|
55
|
+
white-space: pre;
|
|
56
|
+
direction: ltr;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Flat list items: the marker is a decoration (behaviour.ts `listMarkers`). */
|
|
60
|
+
.wy-doc [data-type="list-item"] {
|
|
61
|
+
display: flex;
|
|
62
|
+
gap: 8px;
|
|
63
|
+
padding-inline-start: 4px;
|
|
64
|
+
}
|
|
65
|
+
.wy-doc [data-type="list-item"]::before {
|
|
66
|
+
content: attr(data-marker);
|
|
67
|
+
flex: none;
|
|
68
|
+
min-width: 18px;
|
|
69
|
+
color: var(--muted-foreground);
|
|
70
|
+
font-variant-numeric: tabular-nums;
|
|
71
|
+
text-align: end;
|
|
72
|
+
}
|
|
73
|
+
.wy-doc [data-type="list-item"][data-level="1"],
|
|
74
|
+
.wy-doc [data-type="check-item"][data-level="1"] { padding-inline-start: 28px; }
|
|
75
|
+
.wy-doc [data-type="list-item"][data-level="2"],
|
|
76
|
+
.wy-doc [data-type="check-item"][data-level="2"] { padding-inline-start: 52px; }
|
|
77
|
+
|
|
78
|
+
.wy-doc [data-type="check-item"] {
|
|
79
|
+
display: flex;
|
|
80
|
+
gap: 10px;
|
|
81
|
+
align-items: flex-start;
|
|
82
|
+
}
|
|
83
|
+
.wy-doc .wy-check {
|
|
84
|
+
flex: none;
|
|
85
|
+
width: 16px;
|
|
86
|
+
height: 16px;
|
|
87
|
+
margin-top: 4px;
|
|
88
|
+
padding: 0;
|
|
89
|
+
border: 1.5px solid var(--input);
|
|
90
|
+
border-radius: 4px;
|
|
91
|
+
background: var(--card);
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
display: grid;
|
|
94
|
+
place-items: center;
|
|
95
|
+
}
|
|
96
|
+
.wy-doc .wy-check:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
97
|
+
.wy-doc [data-checked="true"] > .wy-check {
|
|
98
|
+
background: var(--primary);
|
|
99
|
+
border-color: var(--primary);
|
|
100
|
+
}
|
|
101
|
+
.wy-doc [data-checked="true"] > .wy-check::after {
|
|
102
|
+
content: "";
|
|
103
|
+
width: 8px;
|
|
104
|
+
height: 4px;
|
|
105
|
+
margin-top: -2px;
|
|
106
|
+
border-inline-start: 2px solid var(--primary-foreground);
|
|
107
|
+
border-bottom: 2px solid var(--primary-foreground);
|
|
108
|
+
rotate: -45deg;
|
|
109
|
+
}
|
|
110
|
+
.wy-doc [data-checked="true"] > .wy-check-text {
|
|
111
|
+
color: var(--muted-foreground);
|
|
112
|
+
text-decoration: line-through;
|
|
113
|
+
}
|
|
114
|
+
.wy-doc .wy-check-text { flex: 1; min-width: 0; }
|
|
115
|
+
|
|
116
|
+
.wy-doc hr {
|
|
117
|
+
border: 0;
|
|
118
|
+
border-top: 1px solid var(--border);
|
|
119
|
+
margin: 12px 0;
|
|
120
|
+
padding: 0;
|
|
121
|
+
}
|
|
122
|
+
.wy-doc hr.ProseMirror-selectednode { outline: 2px solid var(--ring); outline-offset: 4px; }
|
|
123
|
+
|
|
124
|
+
/* A block a later milestone edits: kept whole, shown as a quiet placeholder. */
|
|
125
|
+
.wy-doc [data-type="unknown-block"] {
|
|
126
|
+
margin-block: 3px;
|
|
127
|
+
padding: 10px 12px;
|
|
128
|
+
border: 1px dashed var(--input);
|
|
129
|
+
border-radius: var(--radius-control-lg);
|
|
130
|
+
color: var(--muted-foreground);
|
|
131
|
+
font-size: 0.875rem;
|
|
132
|
+
}
|
|
133
|
+
.wy-doc [data-type="unknown-block"]::before { content: attr(data-label); }
|
|
134
|
+
|
|
135
|
+
/* Inline */
|
|
136
|
+
.wy-doc strong { font-weight: 600; }
|
|
137
|
+
.wy-doc code {
|
|
138
|
+
font-family: var(--font-mono);
|
|
139
|
+
font-size: 0.875em;
|
|
140
|
+
padding: 1px 4px;
|
|
141
|
+
border-radius: 4px;
|
|
142
|
+
background: var(--muted);
|
|
143
|
+
}
|
|
144
|
+
.wy-doc pre code { padding: 0; background: none; font-size: inherit; }
|
|
145
|
+
.wy-doc a {
|
|
146
|
+
color: var(--primary);
|
|
147
|
+
text-decoration: underline;
|
|
148
|
+
text-underline-offset: 2px;
|
|
149
|
+
cursor: text;
|
|
150
|
+
}
|
|
151
|
+
.wy-doc mark[data-type="highlight"] {
|
|
152
|
+
color: inherit;
|
|
153
|
+
background: color-mix(in oklab, var(--chart-3) 40%, transparent);
|
|
154
|
+
border-radius: 2px;
|
|
155
|
+
}
|
|
156
|
+
/* E.26: a merge field, a chip with braces on the tint (EditorInline). */
|
|
157
|
+
.wy-mf {
|
|
158
|
+
display: inline-block;
|
|
159
|
+
padding: 0 5px;
|
|
160
|
+
margin: 0 1px;
|
|
161
|
+
border-radius: 4px;
|
|
162
|
+
background: var(--primary-tint);
|
|
163
|
+
color: var(--primary-tint-foreground);
|
|
164
|
+
font-size: 0.9em;
|
|
165
|
+
font-weight: 500;
|
|
166
|
+
line-height: 1.45;
|
|
167
|
+
white-space: nowrap;
|
|
168
|
+
}
|
|
169
|
+
.wy-mf::before { content: "{"; opacity: 0.55; margin-inline-end: 2px; }
|
|
170
|
+
.wy-mf::after { content: "}"; opacity: 0.55; margin-inline-start: 2px; }
|
|
171
|
+
.wy-mf:hover { outline: 1px solid var(--primary); }
|
|
172
|
+
.wy-mf.is-selected, .wy-doc .ProseMirror-selectednode.wy-mf { background: var(--primary); color: var(--primary-foreground); }
|
|
173
|
+
/* E.12: in preview, the record's value with a dotted underline. */
|
|
174
|
+
.wy-mf.is-preview { background: none; color: inherit; font-size: inherit; font-weight: inherit; padding: 0; margin: 0; border-bottom: 1px dotted var(--primary); border-radius: 0; }
|
|
175
|
+
.wy-mf.is-preview:hover { outline: 0; }
|
|
176
|
+
/* E.27: no value for this record. */
|
|
177
|
+
.wy-mf.is-missing { display: inline-flex; align-items: center; gap: 3px; background: var(--error-tint); color: var(--error-text); }
|
|
178
|
+
.wy-mf.is-preview::before, .wy-mf.is-preview::after, .wy-mf.is-missing::before, .wy-mf.is-missing::after { content: none; }
|
|
179
|
+
|
|
180
|
+
/* The field picker ({{ or Field ▾). */
|
|
181
|
+
.wy-fpick__it .wy-mf { pointer-events: none; }
|
|
182
|
+
|
|
183
|
+
/* The focused empty line says what it takes (EditorInsert). */
|
|
184
|
+
.wy-doc p.is-empty::before {
|
|
185
|
+
content: attr(data-placeholder);
|
|
186
|
+
float: inline-start;
|
|
187
|
+
height: 0;
|
|
188
|
+
pointer-events: none;
|
|
189
|
+
color: var(--muted-foreground);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* A whole block selected from the keyboard (Esc) or the gutter: a 2px focus ring. */
|
|
193
|
+
.wy-doc > .ProseMirror-selectednode:not(hr) {
|
|
194
|
+
outline: 2px solid var(--ring);
|
|
195
|
+
outline-offset: 4px;
|
|
196
|
+
border-radius: 4px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Dragging: the block fades in place while its copy follows the pointer. */
|
|
200
|
+
.wy-doc > .is-dragging { opacity: 0.4; }
|
|
201
|
+
|
|
202
|
+
/* Viewing mode: no caret, no placeholder. */
|
|
203
|
+
.wy-doc[contenteditable="false"] p.is-empty::before { content: none; }
|
|
204
|
+
|
|
205
|
+
/* ---------------------------------------------------- Rich blocks (M3) */
|
|
206
|
+
|
|
207
|
+
.wy-doc .wy-rich { position: relative; margin-block: 3px; }
|
|
208
|
+
.wy-doc .wy-rich.is-selected,
|
|
209
|
+
.wy-doc .ProseMirror-selectednode > .wy-rich { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 4px; }
|
|
210
|
+
|
|
211
|
+
/* Callout (E.14): Note on the muted grey, Important on the warning tint. */
|
|
212
|
+
.wy-doc [data-type="callout"] {
|
|
213
|
+
display: flex;
|
|
214
|
+
gap: 10px;
|
|
215
|
+
padding: 12px 14px;
|
|
216
|
+
border-radius: var(--radius-control-lg);
|
|
217
|
+
background: var(--muted);
|
|
218
|
+
}
|
|
219
|
+
.wy-doc [data-type="callout"][data-kind="important"] { background: var(--warning-tint); }
|
|
220
|
+
.wy-doc .wy-callout-icon { flex: none; margin-top: 3px; color: var(--muted-foreground); }
|
|
221
|
+
.wy-doc [data-kind="important"] .wy-callout-icon { color: var(--warning-text); }
|
|
222
|
+
.wy-doc .wy-callout-text { flex: 1; min-width: 0; unicode-bidi: plaintext; }
|
|
223
|
+
|
|
224
|
+
/* A synced saved block (E.21, EditorCustomBlocks): a light outline in the main
|
|
225
|
+
colour, its source label above it when selected or hovered. */
|
|
226
|
+
.wy-doc .wy-saved { outline: 1.5px solid color-mix(in oklab, var(--primary) 55%, transparent); outline-offset: 6px; border-radius: 4px; margin-block: 8px; }
|
|
227
|
+
/* Selected, the block's ring is the one every selected block has. */
|
|
228
|
+
.wy-doc .wy-saved.is-selected,
|
|
229
|
+
.wy-doc .ProseMirror-selectednode > .wy-saved { outline: none; }
|
|
230
|
+
.wy-doc .wy-saved-body > * { margin: 0; padding-block: 3px; }
|
|
231
|
+
.wy-doc .wy-saved-callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-control-lg); background: var(--muted); }
|
|
232
|
+
.wy-doc .wy-saved-callout p { flex: 1; min-width: 0; margin: 0; unicode-bidi: plaintext; }
|
|
233
|
+
.wy-doc .wy-saved-callout[data-kind="important"] { background: var(--warning-tint); }
|
|
234
|
+
.wy-doc .wy-saved-src {
|
|
235
|
+
position: absolute;
|
|
236
|
+
bottom: calc(100% + 6px);
|
|
237
|
+
inset-inline-start: 0;
|
|
238
|
+
z-index: 3;
|
|
239
|
+
display: none;
|
|
240
|
+
align-items: center;
|
|
241
|
+
gap: 6px;
|
|
242
|
+
min-height: 24px;
|
|
243
|
+
padding: 0 8px 0 4px;
|
|
244
|
+
border: 1px solid var(--border);
|
|
245
|
+
border-radius: 6px;
|
|
246
|
+
background: var(--popover);
|
|
247
|
+
box-shadow: var(--shadow-float);
|
|
248
|
+
color: var(--muted-foreground);
|
|
249
|
+
font-size: 0.8125rem;
|
|
250
|
+
line-height: 1.4;
|
|
251
|
+
white-space: nowrap;
|
|
252
|
+
}
|
|
253
|
+
.wy-doc .wy-saved.is-selected .wy-saved-src,
|
|
254
|
+
.wy-doc .ProseMirror-selectednode > .wy-saved .wy-saved-src,
|
|
255
|
+
.wy-doc .wy-saved:hover .wy-saved-src,
|
|
256
|
+
.wy-doc .wy-saved:focus-within .wy-saved-src { display: inline-flex; }
|
|
257
|
+
.wy-doc .wy-saved-src b { color: var(--foreground); font-weight: 500; }
|
|
258
|
+
.wy-doc .wy-saved-sep { width: 1px; height: 16px; margin: 0 2px; background: var(--border); }
|
|
259
|
+
.wy-doc .wy-saved-action { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; border-radius: 4px; }
|
|
260
|
+
.wy-doc .wy-saved-action:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
261
|
+
|
|
262
|
+
/* E.17: a plugin's block, drawn by Whity; its source label is the saved block's (`.wy-saved-src`). */
|
|
263
|
+
.wy-doc .wy-plugin:hover .wy-saved-src,
|
|
264
|
+
.wy-doc .wy-plugin:focus-within .wy-saved-src,
|
|
265
|
+
.wy-doc .wy-plugin.is-selected .wy-saved-src,
|
|
266
|
+
.wy-doc .ProseMirror-selectednode > .wy-plugin .wy-saved-src { display: inline-flex; }
|
|
267
|
+
.wy-doc .wy-plugin { margin-block: 8px; }
|
|
268
|
+
/* Selected, the ring is the one every selected block has. */
|
|
269
|
+
.wy-doc .wy-plugin.is-selected,
|
|
270
|
+
.wy-doc .ProseMirror-selectednode > .wy-plugin { outline: none; }
|
|
271
|
+
.wy-doc .wy-plugin-body { font-size: 0.9375rem; }
|
|
272
|
+
.wy-doc .wy-plugin-tile {
|
|
273
|
+
display: grid;
|
|
274
|
+
place-items: center;
|
|
275
|
+
width: 16px;
|
|
276
|
+
height: 16px;
|
|
277
|
+
border-radius: 4px;
|
|
278
|
+
background: var(--primary-tint);
|
|
279
|
+
color: var(--primary-tint-foreground);
|
|
280
|
+
font-size: 0.75rem;
|
|
281
|
+
font-weight: 600;
|
|
282
|
+
}
|
|
283
|
+
.wy-doc .wy-plugin-mark { display: inline-flex; align-items: center; gap: 3px; color: var(--success-text); }
|
|
284
|
+
/* E.19: a block whose plugin is off; its data is kept. */
|
|
285
|
+
.wy-doc .wy-plugin-off {
|
|
286
|
+
display: flex;
|
|
287
|
+
align-items: center;
|
|
288
|
+
gap: 12px;
|
|
289
|
+
padding: 12px 14px;
|
|
290
|
+
border: 1px solid var(--border);
|
|
291
|
+
border-radius: var(--radius-card);
|
|
292
|
+
background: var(--muted);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* E.23: a part filled per document. In the original, marked text; in a
|
|
296
|
+
document, the field it fills (EditorCustomBlocks `.wy-fill`). */
|
|
297
|
+
.wy-doc [data-per-document],
|
|
298
|
+
.wy-doc .wy-part {
|
|
299
|
+
outline: 1px dotted var(--input);
|
|
300
|
+
outline-offset: 2px;
|
|
301
|
+
border-radius: 3px;
|
|
302
|
+
background: var(--muted);
|
|
303
|
+
padding: 0 3px;
|
|
304
|
+
}
|
|
305
|
+
.wy-doc input.wy-part {
|
|
306
|
+
border: 0;
|
|
307
|
+
color: inherit;
|
|
308
|
+
font: inherit;
|
|
309
|
+
max-width: 100%;
|
|
310
|
+
}
|
|
311
|
+
.wy-doc input.wy-part::placeholder { color: var(--muted-foreground); }
|
|
312
|
+
.wy-doc input.wy-part:focus-visible { outline: 2px solid var(--ring); }
|
|
313
|
+
|
|
314
|
+
/* Toggle: the summary line, and the blocks it hides. */
|
|
315
|
+
.wy-doc [data-type="toggle"] { display: flex; gap: 4px; align-items: flex-start; }
|
|
316
|
+
.wy-doc .wy-toggle-button {
|
|
317
|
+
flex: none; margin-top: 2px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px;
|
|
318
|
+
display: grid; place-items: center; background: none; color: var(--muted-foreground); cursor: pointer;
|
|
319
|
+
transition: rotate var(--dur-fast) var(--ease-out);
|
|
320
|
+
}
|
|
321
|
+
.wy-doc .wy-toggle-button:hover { background: var(--muted); }
|
|
322
|
+
.wy-doc .wy-toggle-button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
|
|
323
|
+
.wy-doc [data-type="toggle"][data-open="true"] > .wy-toggle-button { rotate: 90deg; }
|
|
324
|
+
[dir="rtl"] .wy-doc [data-type="toggle"] > .wy-toggle-button { scale: -1 1; }
|
|
325
|
+
[dir="rtl"] .wy-doc [data-type="toggle"][data-open="true"] > .wy-toggle-button { rotate: -90deg; }
|
|
326
|
+
.wy-doc .wy-toggle-content { flex: 1; min-width: 0; }
|
|
327
|
+
.wy-doc .wy-toggle-content > [data-node-view-content-react] > * + *,
|
|
328
|
+
.wy-doc .wy-toggle-content > * + * { padding-inline-start: 0; }
|
|
329
|
+
.wy-doc [data-type="toggle-summary"] { unicode-bidi: plaintext; padding-block: 0; }
|
|
330
|
+
.wy-doc [data-type="toggle"][data-open="false"] [data-type="toggle-summary"] ~ * { display: none; }
|
|
331
|
+
|
|
332
|
+
/* Columns (2). */
|
|
333
|
+
.wy-doc [data-type="columns"] { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
|
|
334
|
+
.wy-doc [data-type="column"] { min-width: 0; min-height: 1.5em; }
|
|
335
|
+
@media (max-width: 640px) { .wy-doc [data-type="columns"] { grid-template-columns: 1fr; gap: 12px; } }
|
|
336
|
+
|
|
337
|
+
/* Table (E.15): a document table, hairlines, numbers end-aligned. */
|
|
338
|
+
.wy-doc table[data-type="table"] { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-block: 3px; }
|
|
339
|
+
.wy-doc table[data-type="table"] td { border: 1px solid var(--border); padding: 6px 10px; vertical-align: top; text-align: start; unicode-bidi: plaintext; }
|
|
340
|
+
/* E.15: end-aligned columns, named on the table (node-views.tsx TableWithAlign); up to 12 columns. */
|
|
341
|
+
.wy-doc table[data-end-columns~="1"] tr > td:nth-child(1), .wy-doc table[data-end-columns~="2"] tr > td:nth-child(2), .wy-doc table[data-end-columns~="3"] tr > td:nth-child(3), .wy-doc table[data-end-columns~="4"] tr > td:nth-child(4), .wy-doc table[data-end-columns~="5"] tr > td:nth-child(5), .wy-doc table[data-end-columns~="6"] tr > td:nth-child(6), .wy-doc table[data-end-columns~="7"] tr > td:nth-child(7), .wy-doc table[data-end-columns~="8"] tr > td:nth-child(8), .wy-doc table[data-end-columns~="9"] tr > td:nth-child(9), .wy-doc table[data-end-columns~="10"] tr > td:nth-child(10), .wy-doc table[data-end-columns~="11"] tr > td:nth-child(11), .wy-doc table[data-end-columns~="12"] tr > td:nth-child(12) { text-align: end; font-variant-numeric: tabular-nums; }
|
|
342
|
+
.wy-doc table[data-type="table"][data-header-row="true"] tr:first-child td { background: var(--muted); font-weight: 500; }
|
|
343
|
+
.wy-doc table[data-type="table"] .selectedCell { background: var(--primary-tint); }
|
|
344
|
+
|
|
345
|
+
/* Page break: a dashed line that prints as a new page. */
|
|
346
|
+
.wy-doc .wy-pagebreak { display: flex; align-items: center; gap: 10px; color: var(--muted-foreground); font-size: 0.75rem; margin: 10px 0; }
|
|
347
|
+
.wy-doc .wy-pagebreak::before, .wy-doc .wy-pagebreak::after { content: ""; flex: 1; border-top: 1px dashed var(--input); }
|
|
348
|
+
|
|
349
|
+
/* Image: half, wide or full width, with a caption. */
|
|
350
|
+
.wy-doc .wy-figure { margin: 0; display: grid; gap: 6px; }
|
|
351
|
+
.wy-doc .wy-figure img { display: block; width: 100%; border-radius: var(--radius-control-lg); border: 1px solid var(--border); }
|
|
352
|
+
.wy-doc [data-type="image"][data-width="half"] .wy-figure { width: 50%; }
|
|
353
|
+
.wy-doc [data-type="image"][data-width="wide"] .wy-figure { margin-inline: -48px; }
|
|
354
|
+
.wy-doc .wy-figure figcaption { font-size: 0.8125rem; color: var(--muted-foreground); text-align: center; }
|
|
355
|
+
|
|
356
|
+
/* File, record and chart sit on a bordered card. */
|
|
357
|
+
.wy-doc .wy-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-control-lg); font-size: 0.875rem; }
|
|
358
|
+
.wy-doc .wy-file-meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
|
|
359
|
+
.wy-doc .wy-file-download { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-control-sm); color: var(--foreground); }
|
|
360
|
+
.wy-doc .wy-file-download:hover { background: var(--muted); }
|
|
361
|
+
.wy-doc .wy-tile { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--muted); color: var(--muted-foreground); flex: none; }
|
|
362
|
+
.wy-doc .wy-tile.is-tint { width: 36px; height: 36px; border-radius: 9px; background: var(--primary-tint); color: var(--primary-tint-foreground); }
|
|
363
|
+
.wy-doc .wy-embed { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); font-size: 0.875rem; }
|
|
364
|
+
.wy-doc .wy-embed-head { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted-foreground); }
|
|
365
|
+
.wy-doc .wy-embed-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
366
|
+
.wy-doc .wy-embed-main { display: grid; gap: 1px; flex: 1; min-width: 0; }
|
|
367
|
+
|
|
368
|
+
/* Signature and stamp (stage 6). */
|
|
369
|
+
/* Signers and the date share one row, the stamp at its end (EditorBlocks card); narrow sheets wrap. */
|
|
370
|
+
.wy-doc .wy-sign { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; padding-top: 28px; font-size: 0.8125rem; color: var(--muted-foreground); }
|
|
371
|
+
.wy-doc .wy-sign-line { flex: 1 1 0; min-width: 120px; border-top: 1px solid var(--foreground); padding-top: 6px; display: grid; gap: 2px; }
|
|
372
|
+
.wy-doc .wy-sign-line b { color: var(--foreground); font-weight: 500; }
|
|
373
|
+
.wy-doc .wy-sign-stamp { flex: none; width: 84px; height: 84px; border: 1.5px dashed var(--input); border-radius: 50%; display: grid; place-items: center; text-align: center; font-size: 0.6875rem; }
|
|
374
|
+
|
|
375
|
+
/* The chart block header and its table view (BarChart card: "Show as table" gives every value). */
|
|
376
|
+
.wy-doc .wy-chart-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
|
|
377
|
+
.wy-doc .wy-chart-title { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
|
|
378
|
+
.wy-doc .wy-chart-sub { font-size: 0.75rem; color: var(--muted-foreground); }
|
|
379
|
+
.wy-doc .wy-chart-toggle { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 4px; border-radius: 4px; font: inherit; font-size: 0.75rem; color: var(--muted-foreground); cursor: pointer; }
|
|
380
|
+
.wy-doc .wy-chart-toggle:hover { color: var(--foreground); background: var(--muted); }
|
|
381
|
+
.wy-doc .wy-chart-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
|
|
382
|
+
.wy-doc .wy-chart-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
|
|
383
|
+
.wy-doc .wy-chart-table th { text-align: start; font-weight: 500; color: var(--muted-foreground); border-bottom: 1px solid var(--border); padding: 4px 6px; }
|
|
384
|
+
.wy-doc .wy-chart-table td { border-bottom: 1px solid var(--border); padding: 4px 6px; }
|
|
385
|
+
.wy-doc .wy-chart-table td:last-child, .wy-doc .wy-chart-table th:last-child { text-align: end; font-variant-numeric: tabular-nums; }
|
|
386
|
+
|
|
387
|
+
/* Barcode, QR code and maths (E.40–E.42). Codes stay ink on white in both themes so they scan (mark-sheet is white in both). */
|
|
388
|
+
.wy-doc .wy-code { margin: 0; display: grid; gap: 6px; justify-items: start; }
|
|
389
|
+
.wy-doc .wy-code-art { background: var(--mark-sheet); padding: 6px; border-radius: 4px; }
|
|
390
|
+
.wy-doc .wy-code.is-bar .wy-code-art { width: 220px; }
|
|
391
|
+
.wy-doc .wy-code.is-qr .wy-code-art { width: 120px; }
|
|
392
|
+
.wy-doc .wy-code figcaption { font-size: 0.75rem; color: var(--muted-foreground); }
|
|
393
|
+
.wy-doc .wy-math-block { overflow-x: auto; padding-block: 4px; }
|
|
394
|
+
.wy-doc .wy-math { font-family: var(--font-mono); font-size: 0.875em; }
|
|
395
|
+
|
|
396
|
+
/* Empty and unavailable states. */
|
|
397
|
+
.wy-doc .wy-placeholder { padding: 10px 12px; border: 1px dashed var(--input); border-radius: var(--radius-control-lg); color: var(--muted-foreground); font-size: 0.875rem; }
|
|
398
|
+
.wy-doc .wy-placeholder.is-field { border-style: dotted; border-color: var(--primary); color: var(--primary-tint-foreground); background: var(--primary-tint); }
|
|
399
|
+
.wy-doc .wy-skeleton { height: 40px; border-radius: var(--radius-control); background: var(--muted); }
|
|
400
|
+
.wy-doc .wy-skeleton.is-tall { height: 170px; }
|
|
401
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
402
|
+
.wy-doc .wy-skeleton { animation: wy-pulse 1.2s ease-in-out infinite; }
|
|
403
|
+
}
|
|
404
|
+
@keyframes wy-pulse { 50% { opacity: 0.55; } }
|
|
405
|
+
|
|
406
|
+
/* ------------------------------------------------------------------
|
|
407
|
+
* The page view (E.7, EditorPageView): A4 at 96 dpi, 16mm margins. The
|
|
408
|
+
* stack carries `.light`, so the pages stay white like paper in dark mode
|
|
409
|
+
* (E.11) while the ground around them follows the theme.
|
|
410
|
+
* ------------------------------------------------------------------ */
|
|
411
|
+
.wy-pv { width: 794px; margin-inline: auto; }
|
|
412
|
+
.wy-pv__stack { position: relative; width: 794px; color: var(--foreground); --primary: var(--doc-accent, var(--brand)); }
|
|
413
|
+
.wy-pv__page {
|
|
414
|
+
position: absolute;
|
|
415
|
+
inset-inline: 0;
|
|
416
|
+
height: 1123px;
|
|
417
|
+
background: var(--card);
|
|
418
|
+
box-shadow: 0 0 0 1px var(--border), 0 1px 3px color-mix(in oklab, var(--foreground) 6%, transparent);
|
|
419
|
+
}
|
|
420
|
+
.wy-pv__margin { position: absolute; inset: 60px; border: 1px dashed transparent; pointer-events: none; }
|
|
421
|
+
.wy-pv__page.show-margins .wy-pv__margin { border-color: color-mix(in oklab, var(--ring) 35%, transparent); }
|
|
422
|
+
.wy-pv__run {
|
|
423
|
+
position: absolute;
|
|
424
|
+
top: 60px;
|
|
425
|
+
inset-inline: 60px;
|
|
426
|
+
display: flex;
|
|
427
|
+
align-items: center;
|
|
428
|
+
justify-content: space-between;
|
|
429
|
+
padding-bottom: 10px;
|
|
430
|
+
border-bottom: 1px solid var(--border);
|
|
431
|
+
font-size: 11px;
|
|
432
|
+
color: var(--muted-foreground);
|
|
433
|
+
}
|
|
434
|
+
.wy-pv__foot {
|
|
435
|
+
position: absolute;
|
|
436
|
+
inset-inline: 60px;
|
|
437
|
+
bottom: 28px;
|
|
438
|
+
display: flex;
|
|
439
|
+
justify-content: space-between;
|
|
440
|
+
font-family: var(--font-mono);
|
|
441
|
+
font-size: 11px;
|
|
442
|
+
color: var(--muted-foreground);
|
|
443
|
+
}
|
|
444
|
+
.wy-pv__column { position: relative; padding: 60px; min-height: 1123px; box-sizing: border-box; }
|
|
445
|
+
.wy-pv__lh {
|
|
446
|
+
display: flex;
|
|
447
|
+
justify-content: space-between;
|
|
448
|
+
gap: 24px;
|
|
449
|
+
padding-bottom: 14px;
|
|
450
|
+
margin-bottom: 18px;
|
|
451
|
+
border-bottom: 1px solid var(--border);
|
|
452
|
+
font-size: var(--doc-text-print-label);
|
|
453
|
+
color: var(--muted-foreground);
|
|
454
|
+
}
|
|
455
|
+
.wy-pv__lh b { color: var(--foreground); font-weight: 600; }
|
|
456
|
+
.wy-pv__lhend { text-align: end; display: grid; gap: 2px; align-content: start; }
|
|
457
|
+
/* The document title: Readex Pro 600 in the tenant's print colour. */
|
|
458
|
+
.wy-pv__title { margin: 0 0 4px; font-family: var(--doc-title-font, var(--font-display)); font-weight: 600; font-size: var(--doc-text-print-title); line-height: var(--doc-leading-title); color: var(--doc-accent, var(--brand)); }
|
|
459
|
+
/* E.45: a theme with accentUse `title-and-headings` gives H1-H3 the print colour too. */
|
|
460
|
+
.wy-pv__stack[data-accent-use="title-and-headings"] .wy-doc :is(h2, h3, h4) { color: var(--doc-accent, var(--brand)); }
|
|
461
|
+
/* Stage 6 (6.5) and E.33 on paper; at 96 dpi a pt is the same size on screen. */
|
|
462
|
+
.wy-pv .wy-doc { font-size: var(--doc-text-print-body); }
|
|
463
|
+
.wy-pv .wy-doc h2 { font-size: var(--doc-text-print-h1); padding-top: 14px; }
|
|
464
|
+
.wy-pv .wy-doc h3 { font-size: var(--doc-text-print-h2); padding-top: 10px; }
|
|
465
|
+
.wy-pv .wy-doc h4 { font-size: var(--doc-text-print-h3); padding-top: 8px; }
|
|
466
|
+
.wy-pv .wy-doc table[data-type="table"] { font-size: var(--doc-text-print-label); }
|
|
467
|
+
/* E.47 large print: the print sizes scale by the body's step, 9.5pt to 11pt (as flow.css). */
|
|
468
|
+
.wy-pv__stack[data-large-print] .wy-pv__title { font-size: calc(var(--doc-text-print-title) * 11 / 9.5); }
|
|
469
|
+
.wy-pv__stack[data-large-print] .wy-doc { font-size: calc(var(--doc-text-print-body) * 11 / 9.5); }
|
|
470
|
+
.wy-pv__stack[data-large-print] .wy-doc h2 { font-size: calc(var(--doc-text-print-h1) * 11 / 9.5); }
|
|
471
|
+
.wy-pv__stack[data-large-print] .wy-doc h3 { font-size: calc(var(--doc-text-print-h2) * 11 / 9.5); }
|
|
472
|
+
.wy-pv__stack[data-large-print] .wy-doc h4 { font-size: calc(var(--doc-text-print-h3) * 11 / 9.5); }
|
|
473
|
+
.wy-pv__stack[data-large-print] .wy-doc table[data-type="table"] { font-size: calc(var(--doc-text-print-label) * 11 / 9.5); }
|
|
474
|
+
.wy-pv .wy-doc table[data-type="table"] td { border: 0; border-bottom: 1px solid var(--border); }
|
|
475
|
+
/* On paper the header row is a rule under muted labels, not a filled row. */
|
|
476
|
+
.wy-pv .wy-doc table[data-type="table"][data-header-row="true"] tr:first-child td { background: none; border-bottom: 1.5px solid var(--foreground); color: var(--muted-foreground); }
|
|
477
|
+
/* A page break's own line is hidden: the next page shows where it falls. */
|
|
478
|
+
.wy-pv .wy-doc .wy-pagebreak { visibility: hidden; height: 0; margin: 0; }
|
|
479
|
+
.wy-pv__gap { pointer-events: none; }
|
|
480
|
+
|
|
481
|
+
/* Label sheets (E.43): one sheet of identical labels. The first is the one
|
|
482
|
+
you edit; the others repeat it. A label's outline is dashed, as on the
|
|
483
|
+
stock's backing sheet; content past it is cut off on paper. */
|
|
484
|
+
.wy-ls__label {
|
|
485
|
+
position: absolute;
|
|
486
|
+
box-sizing: border-box;
|
|
487
|
+
overflow: hidden;
|
|
488
|
+
border-radius: 4px;
|
|
489
|
+
outline: 1px dashed color-mix(in oklab, var(--border) 100%, var(--foreground) 15%);
|
|
490
|
+
outline-offset: -1px;
|
|
491
|
+
}
|
|
492
|
+
.wy-ls__label.is-first { outline: 1px solid var(--ring); overflow: visible; z-index: 1; }
|
|
493
|
+
.wy-ls__label.is-first .ProseMirror { min-height: 100%; }
|
|
494
|
+
/* What runs past the label stays readable above its neighbours while it's edited. */
|
|
495
|
+
.wy-ls__label.is-over { outline-color: var(--error); }
|
|
496
|
+
.wy-ls__label.is-over .ProseMirror { background: var(--card); box-shadow: 0 0 0 1px var(--error); border-radius: 4px; }
|
|
497
|
+
.wy-ls__label:not(.is-first) { color: var(--muted-foreground); }
|
|
498
|
+
.wy-ls__label .wy-doc > * { margin-block: 0 2px; }
|
|
499
|
+
.wy-ls__over {
|
|
500
|
+
position: absolute;
|
|
501
|
+
inset-inline-end: 4px;
|
|
502
|
+
inset-block-end: 4px;
|
|
503
|
+
display: inline-flex;
|
|
504
|
+
align-items: center;
|
|
505
|
+
gap: 4px;
|
|
506
|
+
padding: 1px 6px;
|
|
507
|
+
border-radius: 4px;
|
|
508
|
+
background: var(--error-tint);
|
|
509
|
+
color: var(--error-text);
|
|
510
|
+
font-size: 11px;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/* Preview with a record (E.12): the bar above the pages. */
|
|
514
|
+
.wy-previewbar {
|
|
515
|
+
display: flex;
|
|
516
|
+
align-items: center;
|
|
517
|
+
gap: 6px;
|
|
518
|
+
width: fit-content;
|
|
519
|
+
margin: 0 auto 16px;
|
|
520
|
+
padding: 4px 4px 4px 12px;
|
|
521
|
+
border: 1px solid var(--border);
|
|
522
|
+
border-radius: 999px;
|
|
523
|
+
background: var(--card);
|
|
524
|
+
font-size: 0.8125rem;
|
|
525
|
+
color: var(--muted-foreground);
|
|
526
|
+
}
|
|
527
|
+
.wy-previewbar b { color: var(--foreground); font-weight: 500; }
|
|
528
|
+
|
|
529
|
+
/* ------------------------------------------------------------------
|
|
530
|
+
* The continuous sheet's title (E.11): the text colour in light mode; in
|
|
531
|
+
* dark mode the theme's `accentOnDark`, which never prints.
|
|
532
|
+
* ------------------------------------------------------------------ */
|
|
533
|
+
.wy-sheet__title { color: var(--foreground); }
|
|
534
|
+
/* E.46: Readex Pro 600 unless the theme sets the title in the body face. */
|
|
535
|
+
.wy-sheet__title { font-family: var(--doc-title-font, var(--font-display)); }
|
|
536
|
+
.dark .wy-sheet__title { color: var(--doc-accent-on-dark, var(--foreground)); }
|
|
537
|
+
|
|
538
|
+
/*
|
|
539
|
+
* Comments and suggestions (editor M5, EditorCollab, E.4, E.6, E.10, E.39).
|
|
540
|
+
* Suggested text is dashed because it hasn't happened yet (4.3): an insertion
|
|
541
|
+
* in the main colour with a dashed underline; a deletion struck through in the
|
|
542
|
+
* error colour, dashed, still visible. The comment highlight is the warning
|
|
543
|
+
* tint with a warning underline, a decoration on screen only, never printed,
|
|
544
|
+
* and not the highlight colour (E.25).
|
|
545
|
+
*/
|
|
546
|
+
.wy-doc ins[data-suggestion],
|
|
547
|
+
.wy-sug-ins {
|
|
548
|
+
color: var(--primary-tint-foreground);
|
|
549
|
+
text-decoration: underline dashed var(--primary);
|
|
550
|
+
text-decoration-thickness: 1.5px;
|
|
551
|
+
text-underline-offset: 3px;
|
|
552
|
+
}
|
|
553
|
+
.wy-doc del[data-suggestion],
|
|
554
|
+
.wy-sug-del {
|
|
555
|
+
color: var(--muted-foreground);
|
|
556
|
+
text-decoration: line-through dashed var(--error-text);
|
|
557
|
+
text-decoration-thickness: 1.5px;
|
|
558
|
+
}
|
|
559
|
+
.wy-sug-fmt {
|
|
560
|
+
text-decoration: underline dashed var(--primary);
|
|
561
|
+
text-decoration-thickness: 1.5px;
|
|
562
|
+
text-underline-offset: 3px;
|
|
563
|
+
}
|
|
564
|
+
/* Suggested blocks: inserted ones dashed at the start edge, deleted ones struck. */
|
|
565
|
+
.wy-doc .wy-sug-block.is-insert {
|
|
566
|
+
border-inline-start: 2px dashed var(--primary);
|
|
567
|
+
padding-inline-start: 10px;
|
|
568
|
+
color: var(--primary-tint-foreground);
|
|
569
|
+
}
|
|
570
|
+
.wy-doc .wy-sug-block.is-delete {
|
|
571
|
+
border-inline-start: 2px dashed var(--error-text);
|
|
572
|
+
padding-inline-start: 10px;
|
|
573
|
+
color: var(--muted-foreground);
|
|
574
|
+
text-decoration: line-through dashed var(--error-text);
|
|
575
|
+
}
|
|
576
|
+
.wy-doc .wy-sug-block.is-move { border-inline-start: 2px dashed var(--input); padding-inline-start: 10px; }
|
|
577
|
+
.wy-doc ins[data-suggestion].is-active,
|
|
578
|
+
.wy-doc .wy-sug-block.is-active { background: var(--primary-tint); }
|
|
579
|
+
|
|
580
|
+
.wy-cmt { background: var(--warning-tint); color: inherit; border-bottom: 2px solid var(--warning); padding-block: 1px; }
|
|
581
|
+
.wy-cmt.is-active { background: color-mix(in oklab, var(--warning) 45%, var(--card)); }
|
|
582
|
+
|
|
583
|
+
@media print {
|
|
584
|
+
/* E.39: comments never print. Suggestions aren't in what prints either; this is the screen's print only. */
|
|
585
|
+
.wy-cmt { background: none; border-bottom: 0; padding: 0; }
|
|
586
|
+
.wy-edx__rail { display: none; }
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* The rail and its cards (E.6). */
|
|
590
|
+
.wy-edx__rail { position: relative; padding-block: 32px; padding-inline: 0 16px; min-width: 0; }
|
|
591
|
+
.wy-edx__railhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 0.75rem; color: var(--muted-foreground); }
|
|
592
|
+
.wy-edx__railnote { margin: 0; padding: 12px; border: 1px dashed var(--input); border-radius: var(--radius-control-lg); color: var(--muted-foreground); font-size: 0.8125rem; line-height: 1.45; }
|
|
593
|
+
.wy-rc {
|
|
594
|
+
--wy-lift: -8px;
|
|
595
|
+
position: absolute;
|
|
596
|
+
inset-inline: 0 16px;
|
|
597
|
+
display: grid;
|
|
598
|
+
gap: 8px;
|
|
599
|
+
padding: 12px;
|
|
600
|
+
background: var(--card);
|
|
601
|
+
border: 1px solid var(--border);
|
|
602
|
+
border-radius: var(--radius-control-lg);
|
|
603
|
+
font-size: 0.8125rem;
|
|
604
|
+
line-height: 1.45;
|
|
605
|
+
box-sizing: border-box;
|
|
606
|
+
transition: top 150ms ease, translate 150ms ease;
|
|
607
|
+
}
|
|
608
|
+
[dir="rtl"] .wy-rc { --wy-lift: 8px; }
|
|
609
|
+
.wy-rc.is-active { box-shadow: var(--shadow-float); border-color: var(--input); translate: var(--wy-lift) 0; z-index: 1; }
|
|
610
|
+
.wy-rc.is-agent, .wy-rc.is-pending { border-style: dashed; border-color: var(--input); }
|
|
611
|
+
.wy-rc--static { position: relative; inset: auto; }
|
|
612
|
+
.wy-rc--static.is-active { translate: none; }
|
|
613
|
+
.wy-rc__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
614
|
+
.wy-drawerlist .wy-rc__who { flex-wrap: wrap; }
|
|
615
|
+
.wy-rc__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
616
|
+
.wy-rc__time { color: var(--muted-foreground); font-size: 0.75rem; white-space: nowrap; }
|
|
617
|
+
.wy-rc__acts { margin-inline-start: auto; display: flex; gap: 2px; }
|
|
618
|
+
.wy-rc__what { color: var(--muted-foreground); overflow-wrap: anywhere; }
|
|
619
|
+
.wy-rc__what b { color: var(--foreground); font-weight: 500; }
|
|
620
|
+
.wy-rc__reply { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--input); border-radius: var(--radius-control-sm); background: none; color: var(--muted-foreground); font: inherit; cursor: text; }
|
|
621
|
+
.wy-rc__box { border: 1px solid var(--input); border-radius: var(--radius-control); padding: 8px 10px; min-height: 56px; color: var(--foreground); font: inherit; font-size: 0.8125rem; box-sizing: border-box; width: 100%; }
|
|
622
|
+
.wy-mention { color: var(--primary-tint-foreground); background: var(--primary-tint); border-radius: 4px; padding: 0 3px; font-weight: 500; }
|
|
623
|
+
.wy-rc__foot { display: flex; justify-content: flex-end; gap: 6px; }
|
|
624
|
+
.wy-rc__replies { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
|
|
625
|
+
.wy-rc__q { color: var(--muted-foreground); border-inline-start: 2px solid var(--warning); padding-inline-start: 8px; font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
626
|
+
.wy-rc.is-resolved { opacity: .7; }
|
|
627
|
+
.wy-rc__resolved { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--success-text); }
|
|
628
|
+
.wy-drawerlist { display: grid; gap: 10px; }
|
|
629
|
+
.wy-mentionpop { padding: 4px; }
|
|
630
|
+
|
|
631
|
+
/* The mode menu (E.10). */
|
|
632
|
+
.wy-modemenu__it { display: flex; gap: 10px; align-items: flex-start; }
|
|
633
|
+
.wy-modemenu__it .wy-modemenu__t { display: grid; gap: 1px; flex: 1; }
|
|
634
|
+
.wy-modemenu__it .wy-modemenu__t span { font-size: 0.75rem; color: var(--muted-foreground); }
|
|
635
|
+
.wy-modemenu__it.is-on { background: var(--primary-tint); color: var(--primary-tint-foreground); }
|
|
636
|
+
.wy-modemenu__it.is-on .wy-modemenu__t span { color: inherit; opacity: .8; }
|