@withmarfa/inkkit 0.0.0-stage → 0.8.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE +41 -0
- package/README.md +47 -2
- package/dist/THIRD-PARTY-NOTICES-FULL.txt +3377 -0
- package/dist/THIRD-PARTY-NOTICES.txt +3377 -0
- package/dist/chunks/core-CntI6pRW.js +71644 -0
- package/dist/chunks/highlight-B__AKLId.js +14068 -0
- package/dist/core.d.ts +7 -0
- package/dist/core.js +2 -0
- package/dist/diagnostics.d.ts +109 -0
- package/dist/editor.d.ts +550 -0
- package/dist/formats/convert.d.ts +17 -0
- package/dist/formats/index.d.ts +8 -0
- package/dist/formats/markdown.d.ts +4 -0
- package/dist/formats/rich-text-import.d.ts +11 -0
- package/dist/formats/rich-text-model.d.ts +56 -0
- package/dist/formats/rich-text-prose.d.ts +23 -0
- package/dist/formats/rich-text.d.ts +5 -0
- package/dist/formats/text.d.ts +4 -0
- package/dist/formats/types.d.ts +120 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +32793 -0
- package/dist/link-address.d.ts +11 -0
- package/dist/style.css +2195 -0
- package/dist/themes/calm.css +36 -0
- package/dist/themes/essential.css +36 -0
- package/dist/themes/standard.css +39 -0
- package/dist/types.d.ts +560 -0
- package/package.json +101 -4
package/dist/style.css
ADDED
|
@@ -0,0 +1,2195 @@
|
|
|
1
|
+
.inkkit-root {
|
|
2
|
+
--_inkkit-font-size: var(--inkkit-font-size, 15px);
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
color-scheme: var(--inkkit-color-scheme, light dark);
|
|
5
|
+
color: var(--inkkit-text-color, CanvasText);
|
|
6
|
+
background: var(--inkkit-background-color, transparent);
|
|
7
|
+
font-family: var(
|
|
8
|
+
--inkkit-font-family,
|
|
9
|
+
-apple-system,
|
|
10
|
+
BlinkMacSystemFont,
|
|
11
|
+
system-ui,
|
|
12
|
+
sans-serif
|
|
13
|
+
);
|
|
14
|
+
font-size: var(--_inkkit-font-size);
|
|
15
|
+
line-height: var(--inkkit-line-height, normal);
|
|
16
|
+
-webkit-font-smoothing: antialiased;
|
|
17
|
+
-webkit-text-size-adjust: none;
|
|
18
|
+
--_inkkit-accent: var(--inkkit-accent-color, light-dark(#0069d1, #409cff));
|
|
19
|
+
--_inkkit-text: var(--inkkit-text-color, CanvasText);
|
|
20
|
+
--_inkkit-muted: var(
|
|
21
|
+
--inkkit-muted-color,
|
|
22
|
+
color-mix(in srgb, CanvasText 55%, transparent)
|
|
23
|
+
);
|
|
24
|
+
--_inkkit-rule: var(
|
|
25
|
+
--inkkit-rule-color,
|
|
26
|
+
color-mix(in srgb, CanvasText 14%, transparent)
|
|
27
|
+
);
|
|
28
|
+
--_inkkit-code-bg: var(
|
|
29
|
+
--inkkit-code-background,
|
|
30
|
+
color-mix(in srgb, CanvasText 8%, transparent)
|
|
31
|
+
);
|
|
32
|
+
--_inkkit-mono: var(
|
|
33
|
+
--inkkit-monospace-font,
|
|
34
|
+
ui-monospace,
|
|
35
|
+
'SF Mono',
|
|
36
|
+
Menlo,
|
|
37
|
+
monospace
|
|
38
|
+
);
|
|
39
|
+
/* The percentage resolves against the containing block of the element that
|
|
40
|
+
uses the value, so both surfaces, and a host header in a container as wide
|
|
41
|
+
as the root, line up. */
|
|
42
|
+
--_inkkit-column-inset: var(
|
|
43
|
+
--inkkit-column-inset,
|
|
44
|
+
max(
|
|
45
|
+
var(--inkkit-padding-inline, 16px),
|
|
46
|
+
calc(
|
|
47
|
+
(100% - var(--inkkit-reading-width, 100%)) / 2 +
|
|
48
|
+
var(--inkkit-padding-inline, 16px)
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.inkkit-root .inkkit-plain {
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
width: 100%;
|
|
57
|
+
min-height: var(--inkkit-min-height, 100%);
|
|
58
|
+
border: 0;
|
|
59
|
+
resize: none;
|
|
60
|
+
outline: none;
|
|
61
|
+
padding: var(--inkkit-padding-top, 10px) var(--_inkkit-column-inset)
|
|
62
|
+
var(--inkkit-padding-bottom, 48px);
|
|
63
|
+
background: transparent;
|
|
64
|
+
color: var(--_inkkit-text);
|
|
65
|
+
font: calc(var(--_inkkit-font-size) * 1)/var(--inkkit-line-height, 1.5)
|
|
66
|
+
var(--_inkkit-mono);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.inkkit-root .inkkit-plain[hidden] {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Tables: the table block draws the table in a horizontal scroller, with
|
|
74
|
+
controls for the active column and row beside it. The cell and selection
|
|
75
|
+
rules are adapted from prosemirror-tables; attribution and licence are in
|
|
76
|
+
NOTICE. */
|
|
77
|
+
.inkkit-root .inkkit-table-block {
|
|
78
|
+
position: relative;
|
|
79
|
+
margin: var(--inkkit-table-spacing-before, 0) 0
|
|
80
|
+
var(--inkkit-paragraph-spacing, calc(var(--_inkkit-font-size) * 0.667));
|
|
81
|
+
}
|
|
82
|
+
.inkkit-root .inkkit-table-scroll {
|
|
83
|
+
overflow-x: auto;
|
|
84
|
+
}
|
|
85
|
+
.inkkit-root .ProseMirror table {
|
|
86
|
+
border-collapse: separate;
|
|
87
|
+
border-spacing: 0;
|
|
88
|
+
border: 1px solid var(--_inkkit-rule);
|
|
89
|
+
border-radius: var(--inkkit-table-radius, 10px);
|
|
90
|
+
width: 100%;
|
|
91
|
+
}
|
|
92
|
+
.inkkit-root .ProseMirror td,
|
|
93
|
+
.inkkit-root .ProseMirror th {
|
|
94
|
+
position: relative;
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
min-width: calc(var(--_inkkit-font-size) * 4);
|
|
97
|
+
padding: calc(var(--_inkkit-font-size) * 0.4)
|
|
98
|
+
calc(var(--_inkkit-font-size) * 0.6);
|
|
99
|
+
border: 0 solid var(--_inkkit-rule);
|
|
100
|
+
border-width: 0 1px 1px 0;
|
|
101
|
+
vertical-align: top;
|
|
102
|
+
}
|
|
103
|
+
/* Round only the perimeter; keep controls and focus rings outside the table
|
|
104
|
+
unclipped, and leave every internal cell division square. */
|
|
105
|
+
.inkkit-root .ProseMirror tr > :last-child {
|
|
106
|
+
border-right-width: 0;
|
|
107
|
+
}
|
|
108
|
+
.inkkit-root .ProseMirror tr:last-child > * {
|
|
109
|
+
border-bottom-width: 0;
|
|
110
|
+
}
|
|
111
|
+
.inkkit-root .ProseMirror tr:first-child > :first-child {
|
|
112
|
+
border-top-left-radius: max(
|
|
113
|
+
0px,
|
|
114
|
+
calc(var(--inkkit-table-radius, 10px) - 1px)
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
.inkkit-root .ProseMirror tr:first-child > :last-child {
|
|
118
|
+
border-top-right-radius: max(
|
|
119
|
+
0px,
|
|
120
|
+
calc(var(--inkkit-table-radius, 10px) - 1px)
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
.inkkit-root .ProseMirror tr:last-child > :first-child {
|
|
124
|
+
border-bottom-left-radius: max(
|
|
125
|
+
0px,
|
|
126
|
+
calc(var(--inkkit-table-radius, 10px) - 1px)
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
.inkkit-root .ProseMirror tr:last-child > :last-child {
|
|
130
|
+
border-bottom-right-radius: max(
|
|
131
|
+
0px,
|
|
132
|
+
calc(var(--inkkit-table-radius, 10px) - 1px)
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
.inkkit-root .ProseMirror th {
|
|
136
|
+
color: var(--inkkit-table-header-color, inherit);
|
|
137
|
+
background: var(--inkkit-table-header-background, var(--_inkkit-code-bg));
|
|
138
|
+
font-weight: var(--inkkit-table-header-font-weight, 600);
|
|
139
|
+
}
|
|
140
|
+
.inkkit-root .ProseMirror td p,
|
|
141
|
+
.inkkit-root .ProseMirror th p {
|
|
142
|
+
margin: 0;
|
|
143
|
+
}
|
|
144
|
+
.inkkit-root .ProseMirror .selectedCell::after,
|
|
145
|
+
.inkkit-root .ProseMirror .inkkit-table-line::after {
|
|
146
|
+
position: absolute;
|
|
147
|
+
inset: 0;
|
|
148
|
+
z-index: 2;
|
|
149
|
+
border-radius: inherit;
|
|
150
|
+
content: '';
|
|
151
|
+
background: color-mix(in srgb, var(--_inkkit-accent) 25%, transparent);
|
|
152
|
+
pointer-events: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.inkkit-root .inkkit-table-controls {
|
|
156
|
+
position: absolute;
|
|
157
|
+
inset: 0;
|
|
158
|
+
z-index: 3;
|
|
159
|
+
pointer-events: none;
|
|
160
|
+
}
|
|
161
|
+
.inkkit-root .inkkit-table-controls[hidden],
|
|
162
|
+
.inkkit-root .inkkit-table-controls [hidden],
|
|
163
|
+
.inkkit-root .ProseMirror[contenteditable='false'] .inkkit-table-controls {
|
|
164
|
+
display: none;
|
|
165
|
+
}
|
|
166
|
+
.inkkit-root .inkkit-table-controls button {
|
|
167
|
+
display: grid;
|
|
168
|
+
/* The icon is larger than the grabbers' short side, so the track itself is
|
|
169
|
+
centered; otherwise it overflows to one side. */
|
|
170
|
+
place-content: center;
|
|
171
|
+
place-items: center;
|
|
172
|
+
box-sizing: border-box;
|
|
173
|
+
margin: 0;
|
|
174
|
+
padding: 0;
|
|
175
|
+
border: 0;
|
|
176
|
+
color: var(--_inkkit-muted);
|
|
177
|
+
background: Canvas;
|
|
178
|
+
cursor: pointer;
|
|
179
|
+
pointer-events: auto;
|
|
180
|
+
user-select: none;
|
|
181
|
+
-webkit-user-select: none;
|
|
182
|
+
}
|
|
183
|
+
.inkkit-root .inkkit-table-controls button:hover:not(:disabled) {
|
|
184
|
+
color: var(--_inkkit-text);
|
|
185
|
+
}
|
|
186
|
+
.inkkit-root .inkkit-table-controls button:disabled {
|
|
187
|
+
cursor: default;
|
|
188
|
+
opacity: 0.4;
|
|
189
|
+
}
|
|
190
|
+
/* Each grip sits across the table's edge, so the pointer can reach it
|
|
191
|
+
without leaving the table. */
|
|
192
|
+
.inkkit-root .inkkit-table-grip {
|
|
193
|
+
position: absolute;
|
|
194
|
+
transform: translate(-50%, -50%);
|
|
195
|
+
border-radius: 4px;
|
|
196
|
+
box-shadow: 0 0 0 1px var(--_inkkit-rule);
|
|
197
|
+
touch-action: none;
|
|
198
|
+
}
|
|
199
|
+
.inkkit-root .inkkit-table-controls .inkkit-table-grip:not(:disabled) {
|
|
200
|
+
cursor: grab;
|
|
201
|
+
}
|
|
202
|
+
/* Before the expanded rule below, which wins at equal weight. */
|
|
203
|
+
.inkkit-root .inkkit-table-controls .inkkit-table-grip {
|
|
204
|
+
color: var(--inkkit-table-grip-color, var(--_inkkit-muted));
|
|
205
|
+
}
|
|
206
|
+
.inkkit-root .inkkit-table-grip[data-inkkit-axis='column'] {
|
|
207
|
+
width: 24px;
|
|
208
|
+
height: 14px;
|
|
209
|
+
}
|
|
210
|
+
.inkkit-root .inkkit-table-grip[data-inkkit-axis='row'] {
|
|
211
|
+
width: 14px;
|
|
212
|
+
height: 24px;
|
|
213
|
+
}
|
|
214
|
+
.inkkit-root .inkkit-table-grip[aria-expanded='true'] {
|
|
215
|
+
color: Canvas;
|
|
216
|
+
background: var(--_inkkit-accent);
|
|
217
|
+
box-shadow: none;
|
|
218
|
+
}
|
|
219
|
+
/* At the caret alone the grips wait out of sight, for the keyboard. */
|
|
220
|
+
.inkkit-root
|
|
221
|
+
.inkkit-table-controls[data-inkkit-shown='false']
|
|
222
|
+
.inkkit-table-grip:not(:focus-visible) {
|
|
223
|
+
opacity: 0;
|
|
224
|
+
}
|
|
225
|
+
@media (hover: none) {
|
|
226
|
+
.inkkit-root
|
|
227
|
+
.inkkit-table-controls[data-inkkit-shown='false']
|
|
228
|
+
.inkkit-table-grip:not(:focus-visible) {
|
|
229
|
+
opacity: 1;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
.inkkit-root .inkkit-table-menu {
|
|
233
|
+
position: absolute;
|
|
234
|
+
display: flex;
|
|
235
|
+
gap: 2px;
|
|
236
|
+
padding: 3px;
|
|
237
|
+
border-radius: 6px;
|
|
238
|
+
background: Canvas;
|
|
239
|
+
box-shadow:
|
|
240
|
+
0 0 0 1px var(--_inkkit-rule),
|
|
241
|
+
0 2px 8px color-mix(in srgb, CanvasText 12%, transparent);
|
|
242
|
+
white-space: nowrap;
|
|
243
|
+
}
|
|
244
|
+
.inkkit-root .inkkit-table-menu button {
|
|
245
|
+
width: 28px;
|
|
246
|
+
height: 28px;
|
|
247
|
+
border-radius: 4px;
|
|
248
|
+
}
|
|
249
|
+
.inkkit-root .inkkit-table-menu button:hover:not(:disabled) {
|
|
250
|
+
background: var(--_inkkit-code-bg);
|
|
251
|
+
}
|
|
252
|
+
.inkkit-root .inkkit-table-marker {
|
|
253
|
+
position: absolute;
|
|
254
|
+
background: var(--_inkkit-accent);
|
|
255
|
+
pointer-events: none;
|
|
256
|
+
}
|
|
257
|
+
.inkkit-root .inkkit-table-marker[data-inkkit-axis='column'] {
|
|
258
|
+
width: 2px;
|
|
259
|
+
transform: translateX(-1px);
|
|
260
|
+
}
|
|
261
|
+
.inkkit-root .inkkit-table-marker[data-inkkit-axis='row'] {
|
|
262
|
+
height: 2px;
|
|
263
|
+
transform: translateY(-1px);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.inkkit-root .ProseMirror .inkkit-image {
|
|
267
|
+
position: relative;
|
|
268
|
+
display: inline-block;
|
|
269
|
+
max-width: 100%;
|
|
270
|
+
vertical-align: bottom;
|
|
271
|
+
}
|
|
272
|
+
/* A standalone image is its own block; the row is full width so a click beside the card lands on it. */
|
|
273
|
+
.inkkit-root .ProseMirror .inkkit-image-block {
|
|
274
|
+
display: block;
|
|
275
|
+
margin: 0 0
|
|
276
|
+
var(--inkkit-paragraph-spacing, calc(var(--_inkkit-font-size) * 0.667));
|
|
277
|
+
line-height: 0;
|
|
278
|
+
}
|
|
279
|
+
.inkkit-root .ProseMirror .inkkit-image-block > .inkkit-image {
|
|
280
|
+
line-height: normal;
|
|
281
|
+
}
|
|
282
|
+
/* A card that shares its paragraph with text sits on its own line within it. */
|
|
283
|
+
.inkkit-root
|
|
284
|
+
.ProseMirror
|
|
285
|
+
:not(.inkkit-image-block)
|
|
286
|
+
> .inkkit-image.inkkit-file {
|
|
287
|
+
display: block;
|
|
288
|
+
width: fit-content;
|
|
289
|
+
}
|
|
290
|
+
.inkkit-root .ProseMirror .inkkit-image-block.ProseMirror-selectednode {
|
|
291
|
+
outline: none;
|
|
292
|
+
}
|
|
293
|
+
.inkkit-root
|
|
294
|
+
.ProseMirror
|
|
295
|
+
.inkkit-image-block.ProseMirror-selectednode
|
|
296
|
+
> .inkkit-image {
|
|
297
|
+
outline: 2px solid color-mix(in srgb, var(--_inkkit-accent) 60%, transparent);
|
|
298
|
+
outline-offset: 2px;
|
|
299
|
+
border-radius: 6px;
|
|
300
|
+
}
|
|
301
|
+
/* A gap or node selection draws its own indicator, not a native text caret. */
|
|
302
|
+
.inkkit-root .ProseMirror.ProseMirror-hideselection {
|
|
303
|
+
caret-color: transparent;
|
|
304
|
+
}
|
|
305
|
+
.inkkit-root .ProseMirror-gapcursor {
|
|
306
|
+
display: none;
|
|
307
|
+
pointer-events: none;
|
|
308
|
+
position: absolute;
|
|
309
|
+
}
|
|
310
|
+
.inkkit-root .ProseMirror-gapcursor::after {
|
|
311
|
+
content: '';
|
|
312
|
+
display: block;
|
|
313
|
+
position: absolute;
|
|
314
|
+
top: 0;
|
|
315
|
+
width: 2px;
|
|
316
|
+
height: 1lh;
|
|
317
|
+
background: var(--_inkkit-accent);
|
|
318
|
+
animation: inkkit-gapcursor-blink 1.1s steps(2, start) infinite;
|
|
319
|
+
}
|
|
320
|
+
@keyframes inkkit-gapcursor-blink {
|
|
321
|
+
to {
|
|
322
|
+
visibility: hidden;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
.inkkit-root .ProseMirror-focused .ProseMirror-gapcursor {
|
|
326
|
+
display: block;
|
|
327
|
+
}
|
|
328
|
+
.inkkit-root .ProseMirror .inkkit-image img {
|
|
329
|
+
display: block;
|
|
330
|
+
max-width: 100%;
|
|
331
|
+
height: auto;
|
|
332
|
+
border-radius: 6px;
|
|
333
|
+
}
|
|
334
|
+
.inkkit-root .ProseMirror .inkkit-image-preview {
|
|
335
|
+
position: relative;
|
|
336
|
+
display: block;
|
|
337
|
+
width: fit-content;
|
|
338
|
+
max-width: 100%;
|
|
339
|
+
line-height: 0;
|
|
340
|
+
}
|
|
341
|
+
.inkkit-root .ProseMirror .inkkit-image-absent {
|
|
342
|
+
color: var(--_inkkit-muted);
|
|
343
|
+
font-style: italic;
|
|
344
|
+
}
|
|
345
|
+
.inkkit-root .ProseMirror .inkkit-image-handle {
|
|
346
|
+
position: absolute;
|
|
347
|
+
right: 0;
|
|
348
|
+
top: 50%;
|
|
349
|
+
z-index: 1;
|
|
350
|
+
transform: translateY(-50%);
|
|
351
|
+
width: 20px;
|
|
352
|
+
height: 32px;
|
|
353
|
+
max-height: 100%;
|
|
354
|
+
touch-action: none;
|
|
355
|
+
cursor: col-resize;
|
|
356
|
+
opacity: 0;
|
|
357
|
+
}
|
|
358
|
+
.inkkit-root .ProseMirror .inkkit-image:hover .inkkit-image-handle,
|
|
359
|
+
.inkkit-root .ProseMirror .inkkit-image:focus-within .inkkit-image-handle,
|
|
360
|
+
.inkkit-root .ProseMirror .inkkit-image-handle:active {
|
|
361
|
+
opacity: 1;
|
|
362
|
+
}
|
|
363
|
+
.inkkit-root .ProseMirror .inkkit-image-handle::after {
|
|
364
|
+
content: '';
|
|
365
|
+
position: absolute;
|
|
366
|
+
right: 8px;
|
|
367
|
+
top: 50%;
|
|
368
|
+
transform: translateY(-50%);
|
|
369
|
+
height: 20px;
|
|
370
|
+
max-height: 100%;
|
|
371
|
+
width: 4px;
|
|
372
|
+
border-radius: 2px;
|
|
373
|
+
background: var(--_inkkit-accent);
|
|
374
|
+
}
|
|
375
|
+
.inkkit-root .ProseMirror[contenteditable='false'] .inkkit-image-handle {
|
|
376
|
+
display: none;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.inkkit-root .ProseMirror .inkkit-file {
|
|
380
|
+
box-sizing: border-box;
|
|
381
|
+
vertical-align: middle;
|
|
382
|
+
border: 1px solid var(--_inkkit-rule);
|
|
383
|
+
border-radius: 6px;
|
|
384
|
+
padding: 6px;
|
|
385
|
+
white-space: normal;
|
|
386
|
+
}
|
|
387
|
+
/* A picture that loads is drawn bare: no border, padding or caption. Any grey inside it is the
|
|
388
|
+
picture's own. A picture that is loading or has failed keeps its card. */
|
|
389
|
+
.inkkit-root
|
|
390
|
+
.ProseMirror
|
|
391
|
+
.inkkit-file[data-inkkit-file-state='resolved'][data-inkkit-file-kind='image'] {
|
|
392
|
+
border: 0;
|
|
393
|
+
padding: 0;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/* A file presentation with `layout: 'fill'` takes the column's width instead of its label's. */
|
|
397
|
+
.inkkit-root
|
|
398
|
+
.ProseMirror
|
|
399
|
+
.inkkit-image.inkkit-file[data-inkkit-file-layout='fill'] {
|
|
400
|
+
display: block;
|
|
401
|
+
width: 100%;
|
|
402
|
+
}
|
|
403
|
+
.inkkit-root .ProseMirror .inkkit-file[data-inkkit-file-activation='card'] {
|
|
404
|
+
cursor: pointer;
|
|
405
|
+
}
|
|
406
|
+
.inkkit-root
|
|
407
|
+
.ProseMirror
|
|
408
|
+
.inkkit-file[data-inkkit-file-activation='card']:hover {
|
|
409
|
+
background: var(--_inkkit-code-bg);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.inkkit-root .ProseMirror .inkkit-file-footer {
|
|
413
|
+
display: flex;
|
|
414
|
+
flex-wrap: wrap;
|
|
415
|
+
align-items: center;
|
|
416
|
+
gap: 0.25em 0.5em;
|
|
417
|
+
font-size: 0.9em;
|
|
418
|
+
line-height: 1.4;
|
|
419
|
+
color: var(--_inkkit-muted);
|
|
420
|
+
}
|
|
421
|
+
.inkkit-root .ProseMirror .inkkit-file-footer:not(:first-child) {
|
|
422
|
+
margin-block-start: 0.25em;
|
|
423
|
+
}
|
|
424
|
+
/* The name truncates and takes what the card's actions leave. A basis of zero keeps the actions on
|
|
425
|
+
the name's row however long the name is. */
|
|
426
|
+
.inkkit-root .ProseMirror .inkkit-file-name {
|
|
427
|
+
display: flex;
|
|
428
|
+
flex: 1 1 0;
|
|
429
|
+
align-items: center;
|
|
430
|
+
gap: 0.25em;
|
|
431
|
+
min-width: 0;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.inkkit-root .ProseMirror .inkkit-file audio,
|
|
435
|
+
.inkkit-root .ProseMirror .inkkit-file video,
|
|
436
|
+
.inkkit-root .ProseMirror .inkkit-file iframe {
|
|
437
|
+
display: block;
|
|
438
|
+
max-width: 100%;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.inkkit-root .ProseMirror .inkkit-file video {
|
|
442
|
+
max-height: 480px;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.inkkit-root .ProseMirror .inkkit-file iframe {
|
|
446
|
+
width: min(600px, 100%);
|
|
447
|
+
height: 360px;
|
|
448
|
+
border: 0;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.inkkit-root .ProseMirror .inkkit-file-label {
|
|
452
|
+
flex: 0 1 auto;
|
|
453
|
+
min-width: 0;
|
|
454
|
+
overflow: hidden;
|
|
455
|
+
text-overflow: ellipsis;
|
|
456
|
+
white-space: nowrap;
|
|
457
|
+
}
|
|
458
|
+
.inkkit-root .ProseMirror .inkkit-file-status {
|
|
459
|
+
flex-basis: 100%;
|
|
460
|
+
overflow-wrap: anywhere;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.inkkit-root .ProseMirror .inkkit-file-control {
|
|
464
|
+
flex: none;
|
|
465
|
+
padding: 0.25em 0.5em;
|
|
466
|
+
font: inherit;
|
|
467
|
+
line-height: 1.4;
|
|
468
|
+
white-space: nowrap;
|
|
469
|
+
color: var(--_inkkit-text);
|
|
470
|
+
background: var(--_inkkit-code-bg);
|
|
471
|
+
border: 1px solid var(--_inkkit-rule);
|
|
472
|
+
border-radius: 3px;
|
|
473
|
+
cursor: pointer;
|
|
474
|
+
}
|
|
475
|
+
/* A placeholder is one quiet line, not a card: no border, the footer's muted text, a symbol before
|
|
476
|
+
the label and a small pill button after it. Every look below is a token, and each fallback is the
|
|
477
|
+
look the placeholder had before the token existed. The box is a flex container so that a minimum
|
|
478
|
+
height keeps the line centred; it still takes the width of its content. */
|
|
479
|
+
.inkkit-root
|
|
480
|
+
.ProseMirror
|
|
481
|
+
.inkkit-file[data-inkkit-file-appearance='placeholder'] {
|
|
482
|
+
display: inline-flex;
|
|
483
|
+
align-items: center;
|
|
484
|
+
min-height: var(--inkkit-file-placeholder-min-height, 0px);
|
|
485
|
+
border: var(--inkkit-file-placeholder-border, 0);
|
|
486
|
+
border-radius: var(--inkkit-file-placeholder-radius, 6px);
|
|
487
|
+
padding: var(--inkkit-file-placeholder-padding, 0px);
|
|
488
|
+
background: var(--inkkit-file-placeholder-background, transparent);
|
|
489
|
+
}
|
|
490
|
+
.inkkit-root
|
|
491
|
+
.ProseMirror
|
|
492
|
+
:not(.inkkit-image-block)
|
|
493
|
+
> .inkkit-image.inkkit-file[data-inkkit-file-appearance='placeholder'] {
|
|
494
|
+
display: flex;
|
|
495
|
+
}
|
|
496
|
+
.inkkit-root
|
|
497
|
+
.ProseMirror
|
|
498
|
+
.inkkit-image-block.ProseMirror-selectednode
|
|
499
|
+
> .inkkit-image[data-inkkit-file-appearance='placeholder'] {
|
|
500
|
+
border-radius: var(--inkkit-file-placeholder-radius, 6px);
|
|
501
|
+
}
|
|
502
|
+
/* A placeholder with the fill layout is a row as wide as the column, with its button at the end. */
|
|
503
|
+
.inkkit-root
|
|
504
|
+
.ProseMirror
|
|
505
|
+
.inkkit-file[data-inkkit-file-appearance='placeholder'][data-inkkit-file-layout='fill'] {
|
|
506
|
+
display: flex;
|
|
507
|
+
box-sizing: border-box;
|
|
508
|
+
width: 100%;
|
|
509
|
+
margin-block: calc(var(--_inkkit-font-size) * 0.6);
|
|
510
|
+
}
|
|
511
|
+
.inkkit-root
|
|
512
|
+
.ProseMirror
|
|
513
|
+
.inkkit-file[data-inkkit-file-layout='fill']
|
|
514
|
+
.inkkit-file-quiet
|
|
515
|
+
.inkkit-file-action {
|
|
516
|
+
margin-inline-start: auto;
|
|
517
|
+
}
|
|
518
|
+
.inkkit-root .ProseMirror .inkkit-file-quiet {
|
|
519
|
+
flex: 1 1 auto;
|
|
520
|
+
flex-wrap: nowrap;
|
|
521
|
+
min-width: 0;
|
|
522
|
+
gap: var(--inkkit-file-placeholder-gap, 0.4em);
|
|
523
|
+
font-size: var(--inkkit-file-placeholder-font-size, 0.9em);
|
|
524
|
+
color: var(--inkkit-file-placeholder-color, var(--_inkkit-muted));
|
|
525
|
+
}
|
|
526
|
+
.inkkit-root .ProseMirror .inkkit-file-symbol {
|
|
527
|
+
flex: none;
|
|
528
|
+
width: var(--inkkit-file-placeholder-symbol-size, 1.15em);
|
|
529
|
+
height: var(--inkkit-file-placeholder-symbol-size, 1.15em);
|
|
530
|
+
fill: none;
|
|
531
|
+
stroke: var(--inkkit-file-placeholder-symbol-color, currentColor);
|
|
532
|
+
stroke-width: 1.25;
|
|
533
|
+
stroke-linecap: round;
|
|
534
|
+
stroke-linejoin: round;
|
|
535
|
+
}
|
|
536
|
+
.inkkit-root .ProseMirror .inkkit-file-action {
|
|
537
|
+
box-sizing: border-box;
|
|
538
|
+
height: var(--inkkit-file-placeholder-button-height, auto);
|
|
539
|
+
margin-inline-start: auto;
|
|
540
|
+
padding: 0.05em var(--inkkit-file-placeholder-button-padding-inline, 0.65em);
|
|
541
|
+
font-size: var(--inkkit-file-placeholder-button-font-size, inherit);
|
|
542
|
+
font-weight: var(--inkkit-file-placeholder-button-font-weight, inherit);
|
|
543
|
+
line-height: 1.5;
|
|
544
|
+
color: var(--inkkit-file-placeholder-button-color, var(--_inkkit-text));
|
|
545
|
+
background: var(
|
|
546
|
+
--inkkit-file-placeholder-button-background,
|
|
547
|
+
var(--_inkkit-code-bg)
|
|
548
|
+
);
|
|
549
|
+
border-color: var(
|
|
550
|
+
--inkkit-file-placeholder-button-border-color,
|
|
551
|
+
var(--_inkkit-rule)
|
|
552
|
+
);
|
|
553
|
+
border-radius: var(--inkkit-file-placeholder-button-radius, 999px);
|
|
554
|
+
}
|
|
555
|
+
.inkkit-root .ProseMirror .inkkit-file-action:hover {
|
|
556
|
+
background: var(
|
|
557
|
+
--inkkit-file-placeholder-button-hover-background,
|
|
558
|
+
var(--inkkit-file-placeholder-button-background, var(--_inkkit-code-bg))
|
|
559
|
+
);
|
|
560
|
+
border-color: var(
|
|
561
|
+
--inkkit-file-placeholder-button-hover-border-color,
|
|
562
|
+
var(--_inkkit-muted)
|
|
563
|
+
);
|
|
564
|
+
}
|
|
565
|
+
/* A card's actions are icon buttons at the end of its first row, the corner under the pointer. They
|
|
566
|
+
wait out of sight until the pointer is over the card or focus is in it, and stay focusable, so
|
|
567
|
+
Tab reaches them and shows them. A device with no hover shows them always. */
|
|
568
|
+
.inkkit-root .ProseMirror .inkkit-file-actions {
|
|
569
|
+
display: inline-flex;
|
|
570
|
+
flex: none;
|
|
571
|
+
gap: 2px;
|
|
572
|
+
margin-inline-start: auto;
|
|
573
|
+
opacity: 0;
|
|
574
|
+
}
|
|
575
|
+
.inkkit-root .ProseMirror .inkkit-file:hover .inkkit-file-actions,
|
|
576
|
+
.inkkit-root .ProseMirror .inkkit-file:focus-within .inkkit-file-actions {
|
|
577
|
+
opacity: 1;
|
|
578
|
+
}
|
|
579
|
+
@media (hover: none) {
|
|
580
|
+
.inkkit-root .ProseMirror .inkkit-file-actions {
|
|
581
|
+
opacity: 1;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
.inkkit-root .ProseMirror .inkkit-file-icon {
|
|
585
|
+
display: grid;
|
|
586
|
+
place-items: center;
|
|
587
|
+
box-sizing: border-box;
|
|
588
|
+
width: 24px;
|
|
589
|
+
height: 22px;
|
|
590
|
+
margin: 0;
|
|
591
|
+
padding: 0;
|
|
592
|
+
border: 0;
|
|
593
|
+
border-radius: 6px;
|
|
594
|
+
background: transparent;
|
|
595
|
+
color: var(--_inkkit-muted);
|
|
596
|
+
cursor: pointer;
|
|
597
|
+
}
|
|
598
|
+
.inkkit-root .ProseMirror .inkkit-file-icon:hover {
|
|
599
|
+
background: color-mix(in srgb, CanvasText 10%, transparent);
|
|
600
|
+
color: var(--_inkkit-text);
|
|
601
|
+
}
|
|
602
|
+
.inkkit-root .ProseMirror .inkkit-file-icon:focus-visible {
|
|
603
|
+
outline: var(--inkkit-focus-width, 2px) solid
|
|
604
|
+
var(--inkkit-focus-color, var(--_inkkit-accent));
|
|
605
|
+
outline-offset: var(--inkkit-focus-offset, 1px);
|
|
606
|
+
}
|
|
607
|
+
.inkkit-root .ProseMirror .inkkit-file-icon svg {
|
|
608
|
+
width: 14px;
|
|
609
|
+
height: 14px;
|
|
610
|
+
fill: none;
|
|
611
|
+
stroke: currentColor;
|
|
612
|
+
stroke-width: 1.5;
|
|
613
|
+
stroke-linecap: round;
|
|
614
|
+
stroke-linejoin: round;
|
|
615
|
+
}
|
|
616
|
+
.inkkit-root .ProseMirror .inkkit-file-icon-image {
|
|
617
|
+
width: 14px;
|
|
618
|
+
height: 14px;
|
|
619
|
+
background-color: currentColor;
|
|
620
|
+
mask-image: var(--_inkkit-file-action-icon);
|
|
621
|
+
mask-repeat: no-repeat;
|
|
622
|
+
mask-position: center;
|
|
623
|
+
mask-size: contain;
|
|
624
|
+
}
|
|
625
|
+
@media (forced-colors: active) {
|
|
626
|
+
.inkkit-root .ProseMirror .inkkit-file-icon-image {
|
|
627
|
+
forced-color-adjust: none;
|
|
628
|
+
background-color: ButtonText;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.inkkit-root .ProseMirror {
|
|
633
|
+
/* The viewport, not the wrapper Milkdown adds, so a click below the text still places the caret. */
|
|
634
|
+
min-height: var(--inkkit-min-height, 100%);
|
|
635
|
+
box-sizing: border-box;
|
|
636
|
+
/* Scroll the final line above the floating footer without reserving a solid row. */
|
|
637
|
+
/* Keep the editor full-width for hit testing; center only the writing column. */
|
|
638
|
+
padding: var(--inkkit-padding-top, 10px) var(--_inkkit-column-inset)
|
|
639
|
+
var(--inkkit-padding-bottom, 48px);
|
|
640
|
+
outline: none;
|
|
641
|
+
white-space: pre-wrap;
|
|
642
|
+
word-wrap: break-word;
|
|
643
|
+
caret-color: var(--_inkkit-accent);
|
|
644
|
+
cursor: text;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/* The drawn caret and selection sit in the surface's wrapper. It isolates its own stacking
|
|
648
|
+
context, so the selection layer can sit behind the text and still above the page. */
|
|
649
|
+
.inkkit-root .inkkit-overlay-host {
|
|
650
|
+
position: relative;
|
|
651
|
+
isolation: isolate;
|
|
652
|
+
}
|
|
653
|
+
.inkkit-root .inkkit-selection-layer {
|
|
654
|
+
position: absolute;
|
|
655
|
+
inset: 0;
|
|
656
|
+
z-index: -1;
|
|
657
|
+
pointer-events: none;
|
|
658
|
+
}
|
|
659
|
+
.inkkit-root .inkkit-selection-layer > div {
|
|
660
|
+
position: absolute;
|
|
661
|
+
background: var(
|
|
662
|
+
--inkkit-inactive-selection-background,
|
|
663
|
+
light-dark(#d4d4d4, #555)
|
|
664
|
+
);
|
|
665
|
+
}
|
|
666
|
+
.inkkit-root.inkkit-selection-active .inkkit-selection-layer > div {
|
|
667
|
+
background: var(
|
|
668
|
+
--inkkit-selection-background,
|
|
669
|
+
color-mix(in srgb, var(--_inkkit-accent) 30%, transparent)
|
|
670
|
+
);
|
|
671
|
+
}
|
|
672
|
+
@media (forced-colors: active) {
|
|
673
|
+
.inkkit-root .inkkit-selection-layer > div {
|
|
674
|
+
forced-color-adjust: none;
|
|
675
|
+
background: Highlight;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
/* The drawn caret. The native caret stays, transparent, so accessibility and input methods
|
|
679
|
+
still read its position. */
|
|
680
|
+
.inkkit-root .ProseMirror.inkkit-drawn-caret {
|
|
681
|
+
caret-color: transparent;
|
|
682
|
+
}
|
|
683
|
+
.inkkit-root .inkkit-caret {
|
|
684
|
+
position: absolute;
|
|
685
|
+
z-index: 1;
|
|
686
|
+
width: 2px;
|
|
687
|
+
margin-left: -1px;
|
|
688
|
+
border-radius: 1px;
|
|
689
|
+
background: var(--_inkkit-accent);
|
|
690
|
+
pointer-events: none;
|
|
691
|
+
}
|
|
692
|
+
.inkkit-root:not(.inkkit-selection-active) .inkkit-caret {
|
|
693
|
+
visibility: hidden;
|
|
694
|
+
}
|
|
695
|
+
.inkkit-root .inkkit-caret[data-blink='a'] {
|
|
696
|
+
animation: inkkit-caret-blink-a 1.1s infinite;
|
|
697
|
+
}
|
|
698
|
+
.inkkit-root .inkkit-caret[data-blink='b'] {
|
|
699
|
+
animation: inkkit-caret-blink-b 1.1s infinite;
|
|
700
|
+
}
|
|
701
|
+
@keyframes inkkit-caret-blink-a {
|
|
702
|
+
0%,
|
|
703
|
+
49.9% {
|
|
704
|
+
opacity: 1;
|
|
705
|
+
}
|
|
706
|
+
50%,
|
|
707
|
+
100% {
|
|
708
|
+
opacity: 0;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
@keyframes inkkit-caret-blink-b {
|
|
712
|
+
0%,
|
|
713
|
+
49.9% {
|
|
714
|
+
opacity: 1;
|
|
715
|
+
}
|
|
716
|
+
50%,
|
|
717
|
+
100% {
|
|
718
|
+
opacity: 0;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
@media (forced-colors: active) {
|
|
722
|
+
.inkkit-root .inkkit-caret {
|
|
723
|
+
forced-color-adjust: none;
|
|
724
|
+
background: Highlight;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.inkkit-root .ProseMirror .inkkit-empty {
|
|
729
|
+
position: relative;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.inkkit-root .ProseMirror .inkkit-empty::before {
|
|
733
|
+
content: attr(data-placeholder);
|
|
734
|
+
position: absolute;
|
|
735
|
+
color: var(--_inkkit-muted);
|
|
736
|
+
pointer-events: none;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/* The selection plugin draws the selection over the text alone; the engine's own fills the margins too.
|
|
740
|
+
The surface needs its own rule: the descendant selector does not reach the surface itself, and WebKit paints that as full-width bars. */
|
|
741
|
+
.inkkit-root .ProseMirror.inkkit-painted-selection::selection,
|
|
742
|
+
.inkkit-root .ProseMirror.inkkit-painted-selection ::selection {
|
|
743
|
+
background: transparent;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.inkkit-root ::highlight(inkkit-selection),
|
|
747
|
+
.inkkit-root ::selection {
|
|
748
|
+
background: var(
|
|
749
|
+
--inkkit-inactive-selection-background,
|
|
750
|
+
light-dark(#d4d4d4, #555)
|
|
751
|
+
);
|
|
752
|
+
}
|
|
753
|
+
.inkkit-root.inkkit-selection-active ::highlight(inkkit-selection),
|
|
754
|
+
.inkkit-root.inkkit-selection-active ::selection {
|
|
755
|
+
background: var(
|
|
756
|
+
--inkkit-selection-background,
|
|
757
|
+
color-mix(in srgb, var(--_inkkit-accent) 30%, transparent)
|
|
758
|
+
);
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.inkkit-root .ProseMirror > :first-child {
|
|
762
|
+
margin-top: 0;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.inkkit-root .ProseMirror p {
|
|
766
|
+
margin: 0 0
|
|
767
|
+
var(--inkkit-paragraph-spacing, calc(var(--_inkkit-font-size) * 0.667));
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.inkkit-root .ProseMirror h1,
|
|
771
|
+
.inkkit-root .ProseMirror h2,
|
|
772
|
+
.inkkit-root .ProseMirror h3 {
|
|
773
|
+
line-height: 1.25;
|
|
774
|
+
letter-spacing: -0.01em;
|
|
775
|
+
margin: calc(var(--_inkkit-font-size) * 1.867) 0
|
|
776
|
+
calc(var(--_inkkit-font-size) * 0.533);
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.inkkit-root .ProseMirror h1 {
|
|
780
|
+
font-size: calc(var(--_inkkit-font-size) * 1.733);
|
|
781
|
+
font-weight: 700;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.inkkit-root .ProseMirror h2 {
|
|
785
|
+
font-size: calc(var(--_inkkit-font-size) * 1.4);
|
|
786
|
+
font-weight: 700;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.inkkit-root .ProseMirror h3 {
|
|
790
|
+
font-size: calc(var(--_inkkit-font-size) * 1.133);
|
|
791
|
+
font-weight: 600;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.inkkit-root .ProseMirror h4,
|
|
795
|
+
.inkkit-root .ProseMirror h5,
|
|
796
|
+
.inkkit-root .ProseMirror h6 {
|
|
797
|
+
font-size: calc(var(--_inkkit-font-size) * 1);
|
|
798
|
+
font-weight: 600;
|
|
799
|
+
margin: calc(var(--_inkkit-font-size) * 1.333) 0
|
|
800
|
+
calc(var(--_inkkit-font-size) * 0.4);
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
.inkkit-root .ProseMirror strong {
|
|
804
|
+
font-weight: 700;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
.inkkit-root .ProseMirror a {
|
|
808
|
+
color: var(--inkkit-link-color, var(--_inkkit-accent));
|
|
809
|
+
text-decoration: none;
|
|
810
|
+
text-underline-offset: 2px;
|
|
811
|
+
border-radius: var(--inkkit-link-radius, 0);
|
|
812
|
+
/* A link that wraps keeps its corners on every line. */
|
|
813
|
+
-webkit-box-decoration-break: clone;
|
|
814
|
+
box-decoration-break: clone;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.inkkit-root .ProseMirror a:hover {
|
|
818
|
+
color: var(
|
|
819
|
+
--inkkit-link-hover-color,
|
|
820
|
+
var(--inkkit-link-color, var(--_inkkit-accent))
|
|
821
|
+
);
|
|
822
|
+
text-decoration: var(--inkkit-link-hover-underline, underline);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/* A wiki link reads each part of its look from a variable whose default is the plain look. */
|
|
826
|
+
.inkkit-root .inkkit-wiki-link {
|
|
827
|
+
color: var(--inkkit-wiki-link-color, var(--_inkkit-accent));
|
|
828
|
+
text-decoration-line: var(--inkkit-wiki-link-underline, none);
|
|
829
|
+
text-decoration-style: var(--inkkit-wiki-link-underline-style, solid);
|
|
830
|
+
text-decoration-thickness: var(--inkkit-wiki-link-underline-thickness, auto);
|
|
831
|
+
text-decoration-color: var(--inkkit-wiki-link-underline-color, currentcolor);
|
|
832
|
+
text-underline-offset: var(--inkkit-wiki-link-underline-offset, 2px);
|
|
833
|
+
cursor: var(--inkkit-wiki-link-cursor, inherit);
|
|
834
|
+
padding: var(--inkkit-wiki-link-padding-block, 0)
|
|
835
|
+
var(--inkkit-wiki-link-padding-inline, 0);
|
|
836
|
+
border-radius: var(--inkkit-wiki-link-radius, 0);
|
|
837
|
+
/* The link's tint, when it has one, mixes into the host's background by the strength the host
|
|
838
|
+
gives it. The host cannot read the tint itself: a variable it sets on the root is read there,
|
|
839
|
+
where the link's own custom property does not exist. */
|
|
840
|
+
background-color: color-mix(
|
|
841
|
+
in srgb,
|
|
842
|
+
var(
|
|
843
|
+
--_inkkit-wiki-link-tint,
|
|
844
|
+
var(--inkkit-wiki-link-background, transparent)
|
|
845
|
+
)
|
|
846
|
+
var(--inkkit-wiki-link-tint-strength, 0%),
|
|
847
|
+
var(--inkkit-wiki-link-background, transparent)
|
|
848
|
+
);
|
|
849
|
+
/* A link that wraps keeps its padding and corners on every line. */
|
|
850
|
+
-webkit-box-decoration-break: clone;
|
|
851
|
+
box-decoration-break: clone;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.inkkit-root .inkkit-wiki-link:hover {
|
|
855
|
+
color: var(
|
|
856
|
+
--inkkit-wiki-link-hover-color,
|
|
857
|
+
var(--inkkit-wiki-link-color, var(--_inkkit-accent))
|
|
858
|
+
);
|
|
859
|
+
text-decoration-line: var(--inkkit-wiki-link-hover-underline, underline);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
/* A missing target differs by its line, not only its color, which forced colors replace. */
|
|
863
|
+
.inkkit-root .inkkit-wiki-link[data-missing] {
|
|
864
|
+
text-decoration-line: underline;
|
|
865
|
+
text-decoration-style: var(
|
|
866
|
+
--inkkit-wiki-link-missing-underline-style,
|
|
867
|
+
dashed
|
|
868
|
+
);
|
|
869
|
+
text-decoration-color: var(
|
|
870
|
+
--inkkit-wiki-link-missing-underline-color,
|
|
871
|
+
var(--inkkit-wiki-link-underline-color, currentcolor)
|
|
872
|
+
);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/* The icon is generated content before the link's first character, so it adds no text, no caret
|
|
876
|
+
position and nothing to copy. It is an inline-block with a size of its own because WebKit
|
|
877
|
+
paints the whole box of an inline element in the mask's color. A line may break either side of
|
|
878
|
+
such a box, so the character it sits before is held with it by no-wrap. */
|
|
879
|
+
.inkkit-root .inkkit-wiki-link-lead {
|
|
880
|
+
white-space: nowrap;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.inkkit-root .inkkit-wiki-link-lead::before {
|
|
884
|
+
content: '';
|
|
885
|
+
display: var(--inkkit-wiki-link-icon-display, inline-block);
|
|
886
|
+
width: var(--inkkit-wiki-link-icon-size, 0.9em);
|
|
887
|
+
height: var(--inkkit-wiki-link-icon-size, 0.9em);
|
|
888
|
+
margin-inline-end: var(--inkkit-wiki-link-icon-gap, 0.3em);
|
|
889
|
+
/* Centers the square on the text's height. */
|
|
890
|
+
vertical-align: calc(0.35em - var(--inkkit-wiki-link-icon-size, 0.9em) / 2);
|
|
891
|
+
background-color: var(--_inkkit-wiki-icon-color, currentColor);
|
|
892
|
+
mask-image: var(--_inkkit-wiki-icon);
|
|
893
|
+
mask-repeat: no-repeat;
|
|
894
|
+
mask-position: center;
|
|
895
|
+
mask-size: 100% 100%;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
@media (forced-colors: active) {
|
|
899
|
+
.inkkit-root .inkkit-wiki-link {
|
|
900
|
+
color: LinkText;
|
|
901
|
+
text-decoration-style: solid;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
/* Whatever a host sets, a missing link keeps a line of another kind than a found one. */
|
|
905
|
+
.inkkit-root .inkkit-wiki-link[data-missing] {
|
|
906
|
+
text-decoration-style: dashed;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
.inkkit-root .inkkit-wiki-link-lead::before {
|
|
910
|
+
forced-color-adjust: none;
|
|
911
|
+
background-color: LinkText;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/* A link under the pointer takes a fill of its own. It is a layer over the background, so a wiki
|
|
916
|
+
link's tint stays under it. */
|
|
917
|
+
.inkkit-root .ProseMirror a:hover,
|
|
918
|
+
.inkkit-root .inkkit-wiki-link:hover {
|
|
919
|
+
background-image: linear-gradient(
|
|
920
|
+
var(--inkkit-link-hover-background, transparent),
|
|
921
|
+
var(--inkkit-link-hover-background, transparent)
|
|
922
|
+
);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
/* A link opens on a click with Mod held, or on any click in an editor that cannot be edited. The
|
|
926
|
+
pointer shows it, and the link looks ready; an empty address opens nothing. */
|
|
927
|
+
.inkkit-root.inkkit-link-modifier .ProseMirror a[href]:not([href='']),
|
|
928
|
+
.inkkit-root.inkkit-link-modifier .inkkit-wiki-link,
|
|
929
|
+
.inkkit-root .ProseMirror[contenteditable='false'] a[href]:not([href='']),
|
|
930
|
+
.inkkit-root .ProseMirror[contenteditable='false'] .inkkit-wiki-link {
|
|
931
|
+
cursor: var(--inkkit-link-open-cursor, pointer);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
.inkkit-root.inkkit-link-modifier .ProseMirror a[href]:not([href='']):hover,
|
|
935
|
+
.inkkit-root.inkkit-link-modifier .inkkit-wiki-link:hover,
|
|
936
|
+
.inkkit-root .ProseMirror[contenteditable='false'] a[href]:not([href='']):hover,
|
|
937
|
+
.inkkit-root .ProseMirror[contenteditable='false'] .inkkit-wiki-link:hover {
|
|
938
|
+
text-decoration-line: var(--inkkit-link-open-underline, underline);
|
|
939
|
+
background-image: linear-gradient(
|
|
940
|
+
var(
|
|
941
|
+
--inkkit-link-open-background,
|
|
942
|
+
var(--inkkit-link-hover-background, transparent)
|
|
943
|
+
),
|
|
944
|
+
var(
|
|
945
|
+
--inkkit-link-open-background,
|
|
946
|
+
var(--inkkit-link-hover-background, transparent)
|
|
947
|
+
)
|
|
948
|
+
);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.inkkit-root.inkkit-link-modifier .ProseMirror a[href]:not([href='']):hover,
|
|
952
|
+
.inkkit-root
|
|
953
|
+
.ProseMirror[contenteditable='false']
|
|
954
|
+
a[href]:not([href='']):hover {
|
|
955
|
+
color: var(
|
|
956
|
+
--inkkit-link-open-color,
|
|
957
|
+
var(
|
|
958
|
+
--inkkit-link-hover-color,
|
|
959
|
+
var(--inkkit-link-color, var(--_inkkit-accent))
|
|
960
|
+
)
|
|
961
|
+
);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
.inkkit-root.inkkit-link-modifier .inkkit-wiki-link:hover,
|
|
965
|
+
.inkkit-root .ProseMirror[contenteditable='false'] .inkkit-wiki-link:hover {
|
|
966
|
+
color: var(
|
|
967
|
+
--inkkit-link-open-color,
|
|
968
|
+
var(
|
|
969
|
+
--inkkit-wiki-link-hover-color,
|
|
970
|
+
var(--inkkit-wiki-link-color, var(--_inkkit-accent))
|
|
971
|
+
)
|
|
972
|
+
);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
/* The hint under a link that Mod-click opens. It sits in the root, so a host's tokens reach it. */
|
|
976
|
+
.inkkit-root .inkkit-link-hint {
|
|
977
|
+
position: fixed;
|
|
978
|
+
z-index: 100;
|
|
979
|
+
box-sizing: border-box;
|
|
980
|
+
max-width: calc(100vw - 8px);
|
|
981
|
+
padding: 3px 8px;
|
|
982
|
+
border: 1px solid transparent;
|
|
983
|
+
border-radius: var(--inkkit-link-hint-radius, 6px);
|
|
984
|
+
background: var(
|
|
985
|
+
--inkkit-link-hint-background,
|
|
986
|
+
var(--inkkit-menu-background, light-dark(#fff, #252529))
|
|
987
|
+
);
|
|
988
|
+
color: var(--inkkit-link-hint-color, var(--inkkit-menu-text, CanvasText));
|
|
989
|
+
box-shadow: var(--inkkit-menu-shadow, 0 4px 18px #0003);
|
|
990
|
+
font: calc(var(--_inkkit-font-size) * 13 / 15) /
|
|
991
|
+
calc(var(--_inkkit-font-size) * 1.5)
|
|
992
|
+
var(--inkkit-font-family, system-ui, sans-serif);
|
|
993
|
+
white-space: nowrap;
|
|
994
|
+
pointer-events: none;
|
|
995
|
+
user-select: none;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
@media (forced-colors: active) {
|
|
999
|
+
.inkkit-root .inkkit-link-hint {
|
|
1000
|
+
border-color: CanvasText;
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.inkkit-root .ProseMirror code {
|
|
1005
|
+
font-family: var(--_inkkit-mono);
|
|
1006
|
+
font-size: 0.88em;
|
|
1007
|
+
background: var(--_inkkit-code-bg);
|
|
1008
|
+
border-radius: 5px;
|
|
1009
|
+
padding: calc(var(--_inkkit-font-size) * 0.067)
|
|
1010
|
+
calc(var(--_inkkit-font-size) * 0.333);
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.inkkit-root .ProseMirror pre {
|
|
1014
|
+
position: relative;
|
|
1015
|
+
font-family: var(--_inkkit-mono);
|
|
1016
|
+
font-size: calc(var(--_inkkit-font-size) * 0.867);
|
|
1017
|
+
line-height: 1.5;
|
|
1018
|
+
background: var(--_inkkit-code-bg);
|
|
1019
|
+
border-radius: var(--inkkit-code-radius, 10px);
|
|
1020
|
+
padding: calc(var(--_inkkit-font-size) * 0.8)
|
|
1021
|
+
calc(var(--_inkkit-font-size) * 0.933);
|
|
1022
|
+
margin: 0 0 calc(var(--_inkkit-font-size) * 0.8);
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.inkkit-root .ProseMirror pre[data-language] {
|
|
1026
|
+
padding-top: max(calc(var(--_inkkit-font-size) * 1.8), 28px);
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
.inkkit-root .ProseMirror pre .inkkit-copy {
|
|
1030
|
+
position: absolute;
|
|
1031
|
+
top: 4px;
|
|
1032
|
+
right: 6px;
|
|
1033
|
+
display: grid;
|
|
1034
|
+
place-content: center;
|
|
1035
|
+
place-items: center;
|
|
1036
|
+
box-sizing: border-box;
|
|
1037
|
+
width: 24px;
|
|
1038
|
+
height: 22px;
|
|
1039
|
+
margin: 0;
|
|
1040
|
+
padding: 0;
|
|
1041
|
+
border: 0;
|
|
1042
|
+
border-radius: 6px;
|
|
1043
|
+
background: transparent;
|
|
1044
|
+
color: var(--_inkkit-muted);
|
|
1045
|
+
cursor: pointer;
|
|
1046
|
+
z-index: 2;
|
|
1047
|
+
user-select: none;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
.inkkit-root .ProseMirror pre .inkkit-copy:hover {
|
|
1051
|
+
background: color-mix(in srgb, CanvasText 10%, transparent);
|
|
1052
|
+
color: var(--_inkkit-text);
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
/* Copy waits out of sight until the pointer is over the block or focus, the caret included, is in
|
|
1056
|
+
it. It stays focusable, so Tab reaches it and shows it. A device with no hover shows it always. */
|
|
1057
|
+
.inkkit-root .ProseMirror pre .inkkit-copy {
|
|
1058
|
+
opacity: 0;
|
|
1059
|
+
}
|
|
1060
|
+
.inkkit-root .ProseMirror pre:hover .inkkit-copy,
|
|
1061
|
+
.inkkit-root .ProseMirror pre:focus-within .inkkit-copy,
|
|
1062
|
+
.inkkit-root .ProseMirror pre[data-inkkit-code-active] .inkkit-copy,
|
|
1063
|
+
.inkkit-root .ProseMirror pre .inkkit-copy:focus-visible,
|
|
1064
|
+
.inkkit-root .ProseMirror pre .inkkit-copy[data-copied] {
|
|
1065
|
+
opacity: 1;
|
|
1066
|
+
}
|
|
1067
|
+
@media (hover: none) {
|
|
1068
|
+
.inkkit-root .ProseMirror pre .inkkit-copy {
|
|
1069
|
+
opacity: 1;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.inkkit-root .ProseMirror pre > code {
|
|
1074
|
+
display: block;
|
|
1075
|
+
overflow-x: auto;
|
|
1076
|
+
white-space: pre;
|
|
1077
|
+
overflow-wrap: normal;
|
|
1078
|
+
background: none;
|
|
1079
|
+
padding: 0;
|
|
1080
|
+
font-size: inherit;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
.inkkit-root .ProseMirror pre.inkkit-code-wrapped > code {
|
|
1084
|
+
white-space: pre-wrap;
|
|
1085
|
+
overflow-wrap: anywhere;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/* Line numbers sit in a gutter beside the code's text, inside the block but outside the text the
|
|
1089
|
+
browser edits, so editing the text is the same with and without them. The numbers are drawn
|
|
1090
|
+
from data attributes, so no text enters the selection, a DOM range or the clipboard. The gutter
|
|
1091
|
+
is not scrolled with the code, so a long line leaves the numbers in place.
|
|
1092
|
+
|
|
1093
|
+
The gutter spans the block's content box, and leaves the code's own start margin for the
|
|
1094
|
+
numbers. Without wrapping every line is one line tall, so one element draws every number, one
|
|
1095
|
+
to a line. While lines wrap, an entry holds a hidden mirror of its line, built from the same
|
|
1096
|
+
highlight classes as the code and drawing its text from data attributes, with the code's font,
|
|
1097
|
+
width and wrapping, so the entry is as tall as the line and the next number falls where the
|
|
1098
|
+
next line begins, whatever the font, style or width. */
|
|
1099
|
+
.inkkit-root .ProseMirror pre[data-inkkit-line-numbers] > code {
|
|
1100
|
+
margin-inline-start: calc(var(--_inkkit-line-digits, 1) * 1ch + 1.25em);
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.inkkit-root .ProseMirror pre > .inkkit-code-gutter {
|
|
1104
|
+
position: absolute;
|
|
1105
|
+
inset-inline: calc(var(--_inkkit-font-size) * 0.933);
|
|
1106
|
+
display: block;
|
|
1107
|
+
pointer-events: none;
|
|
1108
|
+
user-select: none;
|
|
1109
|
+
color: var(--inkkit-code-line-number, var(--_inkkit-muted));
|
|
1110
|
+
font-variant-numeric: tabular-nums;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
.inkkit-root .ProseMirror .inkkit-code-gutter[data-inkkit-numbers]::before {
|
|
1114
|
+
content: attr(data-inkkit-numbers);
|
|
1115
|
+
display: block;
|
|
1116
|
+
width: calc(var(--_inkkit-line-digits, 1) * 1ch);
|
|
1117
|
+
white-space: pre;
|
|
1118
|
+
text-align: end;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
.inkkit-root .ProseMirror .inkkit-line-number {
|
|
1122
|
+
position: relative;
|
|
1123
|
+
display: block;
|
|
1124
|
+
min-height: 1.5em;
|
|
1125
|
+
min-height: 1lh;
|
|
1126
|
+
padding-inline-start: calc(var(--_inkkit-line-digits, 1) * 1ch + 1.25em);
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
.inkkit-root .ProseMirror .inkkit-line-number::before {
|
|
1130
|
+
content: attr(data-inkkit-line);
|
|
1131
|
+
position: absolute;
|
|
1132
|
+
inset-inline-start: 0;
|
|
1133
|
+
width: calc(var(--_inkkit-line-digits, 1) * 1ch);
|
|
1134
|
+
text-align: end;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
.inkkit-root .ProseMirror .inkkit-line-copy {
|
|
1138
|
+
display: block;
|
|
1139
|
+
visibility: hidden;
|
|
1140
|
+
white-space: pre-wrap;
|
|
1141
|
+
overflow-wrap: anywhere;
|
|
1142
|
+
font-variant-numeric: normal;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
.inkkit-root .ProseMirror .inkkit-line-copy > span::before {
|
|
1146
|
+
content: attr(data-text);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
@media (forced-colors: active) {
|
|
1150
|
+
.inkkit-root .ProseMirror .inkkit-code-gutter {
|
|
1151
|
+
color: GrayText;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.inkkit-root .ProseMirror blockquote {
|
|
1156
|
+
position: relative;
|
|
1157
|
+
margin: 0 0 calc(var(--_inkkit-font-size) * 0.8);
|
|
1158
|
+
padding: 2px 0 2px
|
|
1159
|
+
calc(var(--_inkkit-font-size) * 0.8 + var(--inkkit-quote-rule-width, 2px));
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
.inkkit-root .ProseMirror blockquote::before {
|
|
1163
|
+
content: '';
|
|
1164
|
+
position: absolute;
|
|
1165
|
+
inset: 0 auto 0 0;
|
|
1166
|
+
width: var(--inkkit-quote-rule-width, 2px);
|
|
1167
|
+
border-radius: var(--inkkit-quote-rule-radius, 0px);
|
|
1168
|
+
background: var(--inkkit-quote-rule-color, var(--_inkkit-accent));
|
|
1169
|
+
pointer-events: none;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
@media (forced-colors: active) {
|
|
1173
|
+
.inkkit-root .ProseMirror blockquote::before {
|
|
1174
|
+
background: CanvasText;
|
|
1175
|
+
forced-color-adjust: none;
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
.inkkit-root .ProseMirror blockquote > :first-child {
|
|
1180
|
+
margin-top: 0;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.inkkit-root .ProseMirror blockquote > :last-child {
|
|
1184
|
+
margin-bottom: 0;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
.inkkit-root .ProseMirror hr {
|
|
1188
|
+
border: 0;
|
|
1189
|
+
border-top: 1px solid var(--_inkkit-rule);
|
|
1190
|
+
margin: calc(var(--_inkkit-font-size) * 1.333) 0;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.inkkit-root .ProseMirror ul,
|
|
1194
|
+
.inkkit-root .ProseMirror ol {
|
|
1195
|
+
margin: 0 0
|
|
1196
|
+
var(--inkkit-paragraph-spacing, calc(var(--_inkkit-font-size) * 0.667));
|
|
1197
|
+
padding-left: calc(var(--_inkkit-font-size) * 1.733);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
.inkkit-root .ProseMirror li {
|
|
1201
|
+
margin: 0 0 calc(var(--_inkkit-font-size) * 0.267);
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
.inkkit-root .ProseMirror li > p {
|
|
1205
|
+
margin: 0;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
.inkkit-root .ProseMirror li ul,
|
|
1209
|
+
.inkkit-root .ProseMirror li ol {
|
|
1210
|
+
margin-top: calc(var(--_inkkit-font-size) * 0.267);
|
|
1211
|
+
margin-bottom: 0;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.inkkit-root .ProseMirror ul > li::marker,
|
|
1215
|
+
.inkkit-root .ProseMirror ol > li::marker {
|
|
1216
|
+
color: var(--_inkkit-accent);
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
.inkkit-root .ProseMirror li[data-item-type='task'] {
|
|
1220
|
+
list-style: none;
|
|
1221
|
+
position: relative;
|
|
1222
|
+
/* The box is centered on the first line: 1lh is the line height the item's
|
|
1223
|
+
text uses, including when it is normal, and --inkkit-checkbox-offset
|
|
1224
|
+
moves the box down for a font whose lines look off-center. */
|
|
1225
|
+
--_inkkit-task-size: calc(var(--_inkkit-font-size) * 0.933);
|
|
1226
|
+
--_inkkit-task-top: calc(
|
|
1227
|
+
(1lh - var(--_inkkit-task-size)) / 2 + var(--inkkit-checkbox-offset, 0px)
|
|
1228
|
+
);
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
.inkkit-root .ProseMirror li[data-item-type='task']::before {
|
|
1232
|
+
content: '';
|
|
1233
|
+
position: absolute;
|
|
1234
|
+
left: calc(var(--_inkkit-font-size) * -1.667);
|
|
1235
|
+
top: var(--_inkkit-task-top);
|
|
1236
|
+
width: var(--_inkkit-task-size);
|
|
1237
|
+
height: var(--_inkkit-task-size);
|
|
1238
|
+
box-sizing: border-box;
|
|
1239
|
+
border: 1.5px solid
|
|
1240
|
+
var(
|
|
1241
|
+
--inkkit-checkbox-border-color,
|
|
1242
|
+
color-mix(in srgb, CanvasText 55%, transparent)
|
|
1243
|
+
);
|
|
1244
|
+
border-radius: 4px;
|
|
1245
|
+
cursor: pointer;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
.inkkit-root
|
|
1249
|
+
.ProseMirror
|
|
1250
|
+
li[data-item-type='task'][data-checked='true']::before {
|
|
1251
|
+
border-color: var(--_inkkit-accent);
|
|
1252
|
+
background: var(--_inkkit-accent);
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
.inkkit-root
|
|
1256
|
+
.ProseMirror
|
|
1257
|
+
li[data-item-type='task'][data-checked='true']::after {
|
|
1258
|
+
content: '';
|
|
1259
|
+
position: absolute;
|
|
1260
|
+
left: calc(var(--_inkkit-font-size) * -1.333);
|
|
1261
|
+
top: calc(var(--_inkkit-task-top) + var(--_inkkit-font-size) * 0.133);
|
|
1262
|
+
width: calc(var(--_inkkit-font-size) * 0.2);
|
|
1263
|
+
height: calc(var(--_inkkit-font-size) * 0.467);
|
|
1264
|
+
border: solid Canvas;
|
|
1265
|
+
border-width: 0 1.5px 1.5px 0;
|
|
1266
|
+
transform: rotate(45deg);
|
|
1267
|
+
pointer-events: none;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
.inkkit-root .ProseMirror li[data-item-type='task'][data-checked='true'] > p {
|
|
1271
|
+
color: var(--_inkkit-muted);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
/* The semantic control overlays the existing marker without entering its text. */
|
|
1275
|
+
.inkkit-root .inkkit-task-checkbox {
|
|
1276
|
+
position: absolute;
|
|
1277
|
+
left: calc(var(--_inkkit-font-size) * -1.667);
|
|
1278
|
+
top: var(--_inkkit-task-top);
|
|
1279
|
+
width: var(--_inkkit-task-size);
|
|
1280
|
+
height: var(--_inkkit-task-size);
|
|
1281
|
+
cursor: pointer;
|
|
1282
|
+
border-radius: 4px;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
.inkkit-root .inkkit-task-checkbox:focus-visible {
|
|
1286
|
+
outline: 2px solid var(--inkkit-focus-color, var(--_inkkit-accent));
|
|
1287
|
+
outline-offset: 2px;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
@media (forced-colors: active) {
|
|
1291
|
+
.inkkit-root .ProseMirror li[data-item-type='task']::before {
|
|
1292
|
+
border-color: CanvasText;
|
|
1293
|
+
}
|
|
1294
|
+
.inkkit-root
|
|
1295
|
+
.ProseMirror
|
|
1296
|
+
li[data-item-type='task'][data-checked='true']::after {
|
|
1297
|
+
border-color: CanvasText;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
.inkkit-root .ProseMirror del {
|
|
1302
|
+
color: var(--_inkkit-muted);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
.inkkit-root .ProseMirror .ProseMirror-selectednode {
|
|
1306
|
+
outline: 2px solid color-mix(in srgb, var(--_inkkit-accent) 60%, transparent);
|
|
1307
|
+
outline-offset: 2px;
|
|
1308
|
+
border-radius: 4px;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
/* Syntax colors: One Light and One Dark hues without the blues, darkened or
|
|
1312
|
+
lightened to WCAG AA contrast on the code background. light-dark() follows
|
|
1313
|
+
the editor's color scheme, which a host can force. */
|
|
1314
|
+
.inkkit-root {
|
|
1315
|
+
--_inkkit-code-comment: var(--_inkkit-muted);
|
|
1316
|
+
--_inkkit-code-keyword: light-dark(#a626a4, #c77bde);
|
|
1317
|
+
--_inkkit-code-string: light-dark(#3b763a, #98c379);
|
|
1318
|
+
--_inkkit-code-number: light-dark(#8d6001, #d19a66);
|
|
1319
|
+
--_inkkit-code-title: light-dark(#8d6101, #e5c07b);
|
|
1320
|
+
--_inkkit-code-attr: light-dark(#c82c1e, #e37981);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.inkkit-root .inkkit-hljs-comment,
|
|
1324
|
+
.inkkit-root .inkkit-hljs-quote {
|
|
1325
|
+
color: var(--inkkit-code-comment, var(--_inkkit-code-comment));
|
|
1326
|
+
font-style: italic;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
.inkkit-root .inkkit-hljs-keyword,
|
|
1330
|
+
.inkkit-root .inkkit-hljs-literal,
|
|
1331
|
+
.inkkit-root .inkkit-hljs-built_in,
|
|
1332
|
+
.inkkit-root .inkkit-hljs-type,
|
|
1333
|
+
.inkkit-root .inkkit-hljs-selector-tag,
|
|
1334
|
+
.inkkit-root .inkkit-hljs-doctag {
|
|
1335
|
+
color: var(--inkkit-code-keyword, var(--_inkkit-code-keyword));
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
.inkkit-root .inkkit-hljs-string,
|
|
1339
|
+
.inkkit-root .inkkit-hljs-regexp,
|
|
1340
|
+
.inkkit-root .inkkit-hljs-addition,
|
|
1341
|
+
.inkkit-root .inkkit-hljs-template-tag {
|
|
1342
|
+
color: var(--inkkit-code-string, var(--_inkkit-code-string));
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
.inkkit-root .inkkit-hljs-number,
|
|
1346
|
+
.inkkit-root .inkkit-hljs-symbol,
|
|
1347
|
+
.inkkit-root .inkkit-hljs-bullet,
|
|
1348
|
+
.inkkit-root .inkkit-hljs-link,
|
|
1349
|
+
.inkkit-root .inkkit-hljs-meta {
|
|
1350
|
+
color: var(--inkkit-code-number, var(--_inkkit-code-number));
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
.inkkit-root .inkkit-hljs-title,
|
|
1354
|
+
.inkkit-root .inkkit-hljs-section,
|
|
1355
|
+
.inkkit-root .inkkit-hljs-name,
|
|
1356
|
+
.inkkit-root .inkkit-hljs-selector-id,
|
|
1357
|
+
.inkkit-root .inkkit-hljs-selector-class {
|
|
1358
|
+
color: var(--inkkit-code-title, var(--_inkkit-code-title));
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
.inkkit-root .inkkit-hljs-attr,
|
|
1362
|
+
.inkkit-root .inkkit-hljs-attribute,
|
|
1363
|
+
.inkkit-root .inkkit-hljs-property,
|
|
1364
|
+
.inkkit-root .inkkit-hljs-variable,
|
|
1365
|
+
.inkkit-root .inkkit-hljs-template-variable,
|
|
1366
|
+
.inkkit-root .inkkit-hljs-tag,
|
|
1367
|
+
.inkkit-root .inkkit-hljs-deletion {
|
|
1368
|
+
color: var(--inkkit-code-attr, var(--_inkkit-code-attr));
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
.inkkit-root .inkkit-hljs-emphasis {
|
|
1372
|
+
font-style: italic;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
.inkkit-root .inkkit-hljs-strong {
|
|
1376
|
+
font-weight: 700;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
.inkkit-root [hidden] {
|
|
1380
|
+
display: none !important;
|
|
1381
|
+
}
|
|
1382
|
+
.inkkit-root .ProseMirror-search-match {
|
|
1383
|
+
background: color-mix(in srgb, var(--_inkkit-accent) 25%, transparent);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
.inkkit-root .ProseMirror-active-search-match {
|
|
1387
|
+
background: color-mix(in srgb, var(--_inkkit-accent) 55%, transparent);
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
.inkkit-root .ProseMirror .inkkit-literal-markdown {
|
|
1391
|
+
white-space: pre-wrap;
|
|
1392
|
+
font-family: var(--_inkkit-mono);
|
|
1393
|
+
font-size: calc(var(--_inkkit-font-size) * 0.9);
|
|
1394
|
+
/* Source kept as written, not code: an outline instead of the code fill. */
|
|
1395
|
+
background: transparent;
|
|
1396
|
+
border: 1px dashed var(--_inkkit-rule);
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
/* Inline HTML shows its source, quietly, inside formatted text. */
|
|
1400
|
+
.inkkit-root .ProseMirror .inkkit-inline-source {
|
|
1401
|
+
font-family: var(--_inkkit-mono);
|
|
1402
|
+
font-size: 0.88em;
|
|
1403
|
+
color: var(--_inkkit-muted);
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
/* Front matter shown as properties: one quiet card, swapped for its YAML
|
|
1407
|
+
while the caret is in it. */
|
|
1408
|
+
.inkkit-root .ProseMirror .inkkit-front-matter {
|
|
1409
|
+
--_inkkit-front-matter-bg: color-mix(in srgb, CanvasText 4%, transparent);
|
|
1410
|
+
margin: calc(var(--_inkkit-font-size) * 0.4) 0
|
|
1411
|
+
calc(var(--_inkkit-font-size) * 1.2);
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
.inkkit-root
|
|
1415
|
+
.ProseMirror
|
|
1416
|
+
.inkkit-front-matter[data-state='properties']
|
|
1417
|
+
> .inkkit-front-matter-source,
|
|
1418
|
+
.inkkit-root
|
|
1419
|
+
.ProseMirror
|
|
1420
|
+
.inkkit-front-matter[data-state='editing']
|
|
1421
|
+
> .inkkit-front-matter-panel {
|
|
1422
|
+
display: none;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
.inkkit-root .ProseMirror .inkkit-front-matter-panel,
|
|
1426
|
+
.inkkit-root .ProseMirror .inkkit-front-matter-source {
|
|
1427
|
+
margin: 0;
|
|
1428
|
+
border-radius: var(--inkkit-code-radius, 10px);
|
|
1429
|
+
background: var(--_inkkit-front-matter-bg);
|
|
1430
|
+
padding: calc(var(--_inkkit-font-size) * 0.7)
|
|
1431
|
+
calc(var(--_inkkit-font-size) * 0.9);
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
.inkkit-root .ProseMirror .inkkit-front-matter-source {
|
|
1435
|
+
border: 0;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
.inkkit-root .ProseMirror .inkkit-front-matter-panel {
|
|
1439
|
+
position: relative;
|
|
1440
|
+
cursor: text;
|
|
1441
|
+
font-size: calc(var(--_inkkit-font-size) * 0.9);
|
|
1442
|
+
line-height: 1.45;
|
|
1443
|
+
user-select: none;
|
|
1444
|
+
-webkit-user-select: none;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
.inkkit-root .ProseMirror .inkkit-properties {
|
|
1448
|
+
display: grid;
|
|
1449
|
+
grid-template-columns: minmax(4em, max-content) minmax(0, 1fr);
|
|
1450
|
+
column-gap: 1.2em;
|
|
1451
|
+
row-gap: 0.5em;
|
|
1452
|
+
margin: 0;
|
|
1453
|
+
padding-inline-end: 1.6em;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
.inkkit-root .ProseMirror .inkkit-properties .inkkit-properties {
|
|
1457
|
+
padding-inline-end: 0;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
.inkkit-root .ProseMirror .inkkit-property {
|
|
1461
|
+
display: contents;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
.inkkit-root .ProseMirror .inkkit-property > dt {
|
|
1465
|
+
color: var(--_inkkit-muted);
|
|
1466
|
+
overflow-wrap: anywhere;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
.inkkit-root .ProseMirror .inkkit-property > dd {
|
|
1470
|
+
margin: 0;
|
|
1471
|
+
min-width: 0;
|
|
1472
|
+
overflow-wrap: anywhere;
|
|
1473
|
+
white-space: pre-wrap;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
.inkkit-root .ProseMirror .inkkit-property-empty {
|
|
1477
|
+
color: var(--_inkkit-muted);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
.inkkit-root .ProseMirror .inkkit-property-list {
|
|
1481
|
+
display: flex;
|
|
1482
|
+
flex-wrap: wrap;
|
|
1483
|
+
gap: 0.3em;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
.inkkit-root .ProseMirror .inkkit-property-chip {
|
|
1487
|
+
border-radius: 999px;
|
|
1488
|
+
background: var(--_inkkit-code-bg);
|
|
1489
|
+
padding: 0 0.6em;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
/* A tag is a pill; a link is a squarer chip, so the two read apart. */
|
|
1493
|
+
.inkkit-root .ProseMirror .inkkit-property-chip-link {
|
|
1494
|
+
border-radius: 6px;
|
|
1495
|
+
padding: 0 0.45em;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
.inkkit-root .ProseMirror .inkkit-property-item {
|
|
1499
|
+
flex-basis: 100%;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
.inkkit-root .ProseMirror .inkkit-property-check {
|
|
1503
|
+
margin: 0;
|
|
1504
|
+
vertical-align: middle;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
.inkkit-root .ProseMirror .inkkit-property-link {
|
|
1508
|
+
color: var(--_inkkit-accent);
|
|
1509
|
+
text-decoration: none;
|
|
1510
|
+
cursor: pointer;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
.inkkit-root .ProseMirror .inkkit-property-link:hover {
|
|
1514
|
+
text-decoration: underline;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.inkkit-root .ProseMirror .inkkit-front-matter-edit {
|
|
1518
|
+
position: absolute;
|
|
1519
|
+
top: 6px;
|
|
1520
|
+
right: 6px;
|
|
1521
|
+
display: grid;
|
|
1522
|
+
place-items: center;
|
|
1523
|
+
width: 24px;
|
|
1524
|
+
height: 22px;
|
|
1525
|
+
margin: 0;
|
|
1526
|
+
padding: 0;
|
|
1527
|
+
border: 0;
|
|
1528
|
+
border-radius: 6px;
|
|
1529
|
+
background: transparent;
|
|
1530
|
+
color: var(--_inkkit-muted);
|
|
1531
|
+
cursor: pointer;
|
|
1532
|
+
opacity: 0;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
.inkkit-root
|
|
1536
|
+
.ProseMirror
|
|
1537
|
+
.inkkit-front-matter-panel:hover
|
|
1538
|
+
.inkkit-front-matter-edit,
|
|
1539
|
+
.inkkit-root .ProseMirror .inkkit-front-matter-edit:focus-visible {
|
|
1540
|
+
opacity: 1;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
.inkkit-root .ProseMirror .inkkit-front-matter-edit:hover {
|
|
1544
|
+
background: var(--_inkkit-code-bg);
|
|
1545
|
+
color: var(--_inkkit-text);
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
@media (hover: none) {
|
|
1549
|
+
.inkkit-root .ProseMirror .inkkit-front-matter-edit {
|
|
1550
|
+
opacity: 1;
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
.inkkit-root .inkkit-footnote-reference {
|
|
1555
|
+
cursor: pointer;
|
|
1556
|
+
color: var(--_inkkit-accent, currentColor);
|
|
1557
|
+
font-size: calc(var(--_inkkit-font-size) * 0.75);
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
.inkkit-root .inkkit-footnote-definition {
|
|
1561
|
+
border-inline-start: 2px solid var(--_inkkit-muted, currentColor);
|
|
1562
|
+
padding-inline-start: calc(var(--_inkkit-font-size) * 1);
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
.inkkit-root .inkkit-footnote-definition::before {
|
|
1566
|
+
content: '[' attr(data-inkkit-label) ']';
|
|
1567
|
+
font-size: calc(var(--_inkkit-font-size) * 0.8);
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
.inkkit-root .inkkit-reference-definition {
|
|
1571
|
+
font-family: var(--_inkkit-mono);
|
|
1572
|
+
font-size: calc(var(--_inkkit-font-size) * 0.8);
|
|
1573
|
+
opacity: 0.7;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
.inkkit-root .ProseMirror mark {
|
|
1577
|
+
background: color-mix(in srgb, #e5c041 38%, transparent);
|
|
1578
|
+
color: inherit;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
.inkkit-root .ProseMirror u {
|
|
1582
|
+
text-decoration-line: underline;
|
|
1583
|
+
text-decoration-thickness: var(--inkkit-underline-thickness, auto);
|
|
1584
|
+
text-underline-offset: var(--inkkit-underline-offset, auto);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
/* Shifted rather than vertically aligned, so a line holding them keeps its
|
|
1588
|
+
height. A footnote reference is also a `sup` and keeps its own style. */
|
|
1589
|
+
.inkkit-root .ProseMirror sup:not([data-inkkit-footnote-reference]),
|
|
1590
|
+
.inkkit-root .ProseMirror sub {
|
|
1591
|
+
position: relative;
|
|
1592
|
+
font-size: var(--inkkit-script-size, 0.75em);
|
|
1593
|
+
line-height: 0;
|
|
1594
|
+
vertical-align: baseline;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
.inkkit-root .ProseMirror sup:not([data-inkkit-footnote-reference]) {
|
|
1598
|
+
top: calc(var(--inkkit-superscript-shift, 0.5em) * -1);
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
.inkkit-root .ProseMirror sub {
|
|
1602
|
+
bottom: calc(var(--inkkit-subscript-shift, 0.25em) * -1);
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
.inkkit-root .ProseMirror .inkkit-callout {
|
|
1606
|
+
--_inkkit-callout-color: var(--_inkkit-accent);
|
|
1607
|
+
/* A rounded tint, like a code block, with the type's color in its title. */
|
|
1608
|
+
border-radius: var(--inkkit-code-radius, 10px);
|
|
1609
|
+
padding: calc(var(--_inkkit-font-size) * 0.7)
|
|
1610
|
+
calc(var(--_inkkit-font-size) * 0.95);
|
|
1611
|
+
background: color-mix(in srgb, var(--_inkkit-callout-color) 8%, transparent);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/* A callout is a quote underneath; it doesn't draw the quote's rule. */
|
|
1615
|
+
.inkkit-root .ProseMirror .inkkit-callout::before {
|
|
1616
|
+
display: none;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
.inkkit-root .ProseMirror .inkkit-callout-title {
|
|
1620
|
+
color: color-mix(in srgb, var(--_inkkit-callout-color) 80%, CanvasText);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='TIP'],
|
|
1624
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='HINT'],
|
|
1625
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='SUCCESS'],
|
|
1626
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='CHECK'],
|
|
1627
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='DONE'] {
|
|
1628
|
+
--_inkkit-callout-color: #30a46c;
|
|
1629
|
+
}
|
|
1630
|
+
/* Other callout types, such as Obsidian's, take the color of the nearest of
|
|
1631
|
+
the five; an unknown type takes the note's. */
|
|
1632
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='ABSTRACT'],
|
|
1633
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='SUMMARY'],
|
|
1634
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='TLDR'] {
|
|
1635
|
+
--_inkkit-callout-color: #12a594;
|
|
1636
|
+
}
|
|
1637
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='EXAMPLE'] {
|
|
1638
|
+
--_inkkit-callout-color: #8e4ec6;
|
|
1639
|
+
}
|
|
1640
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='QUESTION'],
|
|
1641
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='HELP'],
|
|
1642
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='FAQ'],
|
|
1643
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='ATTENTION'] {
|
|
1644
|
+
--_inkkit-callout-color: #d28b00;
|
|
1645
|
+
}
|
|
1646
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='FAILURE'],
|
|
1647
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='FAIL'],
|
|
1648
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='MISSING'],
|
|
1649
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='DANGER'],
|
|
1650
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='ERROR'],
|
|
1651
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='BUG'] {
|
|
1652
|
+
--_inkkit-callout-color: #e5484d;
|
|
1653
|
+
}
|
|
1654
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='QUOTE'],
|
|
1655
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='CITE'] {
|
|
1656
|
+
--_inkkit-callout-color: var(--_inkkit-muted);
|
|
1657
|
+
}
|
|
1658
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='IMPORTANT'] {
|
|
1659
|
+
--_inkkit-callout-color: #8e4ec6;
|
|
1660
|
+
}
|
|
1661
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='WARNING'] {
|
|
1662
|
+
--_inkkit-callout-color: #d28b00;
|
|
1663
|
+
}
|
|
1664
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='CAUTION'] {
|
|
1665
|
+
--_inkkit-callout-color: #e5484d;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
.inkkit-root .inkkit-callout-header {
|
|
1669
|
+
display: flex;
|
|
1670
|
+
align-items: baseline;
|
|
1671
|
+
gap: calc(var(--_inkkit-font-size) * 0.75);
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
.inkkit-root [data-inkkit-callout-toggle] {
|
|
1675
|
+
color: var(--_inkkit-muted);
|
|
1676
|
+
background: transparent;
|
|
1677
|
+
border: 0;
|
|
1678
|
+
padding: calc(var(--_inkkit-font-size) * 0.25);
|
|
1679
|
+
cursor: pointer;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
.inkkit-root .inkkit-callout[data-inkkit-folded='true'] > .inkkit-callout-body {
|
|
1683
|
+
display: none;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
/* Heading folds are presentation. A top-level heading sits in a wrapper beside its control, so the
|
|
1687
|
+
control is not part of the heading's text or its accessible name. The control hangs in the left
|
|
1688
|
+
margin, inside the smallest inset, and shows when the pointer or focus is on the heading or the
|
|
1689
|
+
section is folded. The wrapper adds no box of its own: the heading's margins collapse through
|
|
1690
|
+
it, and the first heading drops its top margin as it would without the wrapper. */
|
|
1691
|
+
.inkkit-root .ProseMirror > .inkkit-heading-block {
|
|
1692
|
+
position: relative;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
.inkkit-root
|
|
1696
|
+
.ProseMirror
|
|
1697
|
+
> .inkkit-heading-block:first-child
|
|
1698
|
+
> :not(.inkkit-heading-fold) {
|
|
1699
|
+
margin-top: 0;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
.inkkit-root .inkkit-heading-fold {
|
|
1703
|
+
position: absolute;
|
|
1704
|
+
inset-inline-start: -16px;
|
|
1705
|
+
top: 0;
|
|
1706
|
+
display: flex;
|
|
1707
|
+
align-items: center;
|
|
1708
|
+
justify-content: center;
|
|
1709
|
+
width: 16px;
|
|
1710
|
+
/* The control is as tall as the heading's first line, so it centres on it. */
|
|
1711
|
+
height: 1.25em;
|
|
1712
|
+
height: 1lh;
|
|
1713
|
+
font-size: calc(var(--_inkkit-font-size) * 1);
|
|
1714
|
+
line-height: inherit;
|
|
1715
|
+
font-weight: 400;
|
|
1716
|
+
letter-spacing: 0;
|
|
1717
|
+
user-select: none;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
.inkkit-root
|
|
1721
|
+
.inkkit-heading-block[data-inkkit-heading-level='1']
|
|
1722
|
+
.inkkit-heading-fold {
|
|
1723
|
+
font-size: calc(var(--_inkkit-font-size) * 1.733);
|
|
1724
|
+
line-height: 1.25;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
.inkkit-root
|
|
1728
|
+
.inkkit-heading-block[data-inkkit-heading-level='2']
|
|
1729
|
+
.inkkit-heading-fold {
|
|
1730
|
+
font-size: calc(var(--_inkkit-font-size) * 1.4);
|
|
1731
|
+
line-height: 1.25;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
.inkkit-root
|
|
1735
|
+
.inkkit-heading-block[data-inkkit-heading-level='3']
|
|
1736
|
+
.inkkit-heading-fold {
|
|
1737
|
+
font-size: calc(var(--_inkkit-font-size) * 1.133);
|
|
1738
|
+
line-height: 1.25;
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
.inkkit-root .inkkit-heading-fold button {
|
|
1742
|
+
display: grid;
|
|
1743
|
+
place-items: center;
|
|
1744
|
+
box-sizing: border-box;
|
|
1745
|
+
width: 16px;
|
|
1746
|
+
height: 20px;
|
|
1747
|
+
margin: 0;
|
|
1748
|
+
padding: 0;
|
|
1749
|
+
border: 0;
|
|
1750
|
+
border-radius: 4px;
|
|
1751
|
+
background: transparent;
|
|
1752
|
+
color: var(--_inkkit-muted);
|
|
1753
|
+
cursor: pointer;
|
|
1754
|
+
opacity: 0;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
.inkkit-root .inkkit-heading-fold button::before {
|
|
1758
|
+
content: '';
|
|
1759
|
+
width: 5px;
|
|
1760
|
+
height: 5px;
|
|
1761
|
+
border-right: 1.5px solid currentColor;
|
|
1762
|
+
border-bottom: 1.5px solid currentColor;
|
|
1763
|
+
transform: translateY(-1px) rotate(45deg);
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
.inkkit-root .inkkit-heading-fold button[aria-expanded='false']::before {
|
|
1767
|
+
transform: translateX(-1px) rotate(-45deg);
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
.inkkit-root .inkkit-heading-block:hover .inkkit-heading-fold button,
|
|
1771
|
+
.inkkit-root .inkkit-heading-fold button:focus-visible,
|
|
1772
|
+
.inkkit-root .inkkit-heading-fold button[aria-expanded='false'] {
|
|
1773
|
+
opacity: 1;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
.inkkit-root .inkkit-heading-fold button:hover {
|
|
1777
|
+
background: color-mix(in srgb, CanvasText 10%, transparent);
|
|
1778
|
+
color: var(--_inkkit-text);
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
.inkkit-root .inkkit-heading-fold button:focus-visible {
|
|
1782
|
+
outline: 2px solid var(--_inkkit-accent);
|
|
1783
|
+
outline-offset: 1px;
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
@media (hover: none) {
|
|
1787
|
+
.inkkit-root .inkkit-heading-fold button {
|
|
1788
|
+
opacity: 1;
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
/* Folding hides with its own rule and !important, so a section stays hidden whatever else shows
|
|
1793
|
+
its blocks, such as comment visibility. It does not apply in print, where the rules that hide
|
|
1794
|
+
comments and controls then apply unchanged. A diagram preview follows its block. */
|
|
1795
|
+
@media not print {
|
|
1796
|
+
.inkkit-root .ProseMirror .inkkit-folded-content,
|
|
1797
|
+
.inkkit-root .ProseMirror .inkkit-folded-content + .inkkit-mermaid-preview {
|
|
1798
|
+
display: none !important;
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
@media (forced-colors: active) {
|
|
1803
|
+
.inkkit-root .inkkit-heading-fold button {
|
|
1804
|
+
color: ButtonText;
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
.inkkit-root .inkkit-comment {
|
|
1809
|
+
display: none;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
.inkkit-root [data-inkkit-comments-visible='true'] .inkkit-comment {
|
|
1813
|
+
display: inline;
|
|
1814
|
+
white-space: pre-wrap;
|
|
1815
|
+
font-family: var(--_inkkit-mono);
|
|
1816
|
+
color: var(--_inkkit-muted);
|
|
1817
|
+
background: var(--_inkkit-code-bg);
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
.inkkit-root [data-inkkit-comments-visible='true'] .inkkit-comment-block {
|
|
1821
|
+
display: block;
|
|
1822
|
+
padding: calc(var(--_inkkit-font-size) * 0.5);
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
@media print {
|
|
1826
|
+
.inkkit-root,
|
|
1827
|
+
.inkkit-root .ProseMirror {
|
|
1828
|
+
height: auto;
|
|
1829
|
+
min-height: 0;
|
|
1830
|
+
overflow: visible;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
.inkkit-root .inkkit-table-scroll,
|
|
1834
|
+
.inkkit-root .ProseMirror pre {
|
|
1835
|
+
overflow: visible;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.inkkit-root .inkkit-comment,
|
|
1839
|
+
.inkkit-root .inkkit-wiki-link-lead::before,
|
|
1840
|
+
.inkkit-root [data-inkkit-callout-toggle],
|
|
1841
|
+
.inkkit-root .ProseMirror pre .inkkit-copy,
|
|
1842
|
+
.inkkit-root .inkkit-table-controls,
|
|
1843
|
+
.inkkit-root .inkkit-code-controls {
|
|
1844
|
+
display: none !important;
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
.inkkit-root
|
|
1848
|
+
.inkkit-callout[data-inkkit-folded='true']
|
|
1849
|
+
> .inkkit-callout-body {
|
|
1850
|
+
display: block !important;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
.inkkit-root .inkkit-heading-fold,
|
|
1854
|
+
.inkkit-root .ProseMirror pre > .inkkit-code-gutter {
|
|
1855
|
+
display: none !important;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
.inkkit-root .ProseMirror pre[data-inkkit-line-numbers] > code {
|
|
1859
|
+
margin-inline-start: 0;
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
/* Diagram previews are presentation; the authored code remains editable. */
|
|
1863
|
+
.inkkit-root .inkkit-mermaid-preview {
|
|
1864
|
+
--_inkkit-diagram-bg: var(
|
|
1865
|
+
--inkkit-diagram-background,
|
|
1866
|
+
light-dark(#ffffff, #1c1c1e)
|
|
1867
|
+
);
|
|
1868
|
+
--_inkkit-diagram-fg: var(
|
|
1869
|
+
--inkkit-diagram-text-color,
|
|
1870
|
+
light-dark(#1c1c1e, #f2f2f7)
|
|
1871
|
+
);
|
|
1872
|
+
--_inkkit-diagram-muted: light-dark(#636366, #aeaeb2);
|
|
1873
|
+
--_inkkit-diagram-line: light-dark(#48484a, #d1d1d6);
|
|
1874
|
+
--_inkkit-diagram-surface: light-dark(#f2f2f7, #2c2c2e);
|
|
1875
|
+
--_inkkit-diagram-surface-alt: light-dark(#e5e5ea, #3a3a3c);
|
|
1876
|
+
--_inkkit-diagram-border: #8e8e93;
|
|
1877
|
+
--_inkkit-diagram-font: Arial, sans-serif;
|
|
1878
|
+
--_inkkit-diagram-font-mono: monospace;
|
|
1879
|
+
--_inkkit-diagram-series-1: color-mix(
|
|
1880
|
+
in srgb,
|
|
1881
|
+
var(--inkkit-diagram-series-1, light-dark(#0088ff, #0091ff))
|
|
1882
|
+
var(--inkkit-diagram-color-strength, 35%),
|
|
1883
|
+
var(--_inkkit-diagram-bg)
|
|
1884
|
+
);
|
|
1885
|
+
--_inkkit-diagram-series-2: color-mix(
|
|
1886
|
+
in srgb,
|
|
1887
|
+
var(--inkkit-diagram-series-2, light-dark(#34c759, #30d158))
|
|
1888
|
+
var(--inkkit-diagram-color-strength, 35%),
|
|
1889
|
+
var(--_inkkit-diagram-bg)
|
|
1890
|
+
);
|
|
1891
|
+
--_inkkit-diagram-series-3: color-mix(
|
|
1892
|
+
in srgb,
|
|
1893
|
+
var(--inkkit-diagram-series-3, light-dark(#6155f5, #6d7cff))
|
|
1894
|
+
var(--inkkit-diagram-color-strength, 35%),
|
|
1895
|
+
var(--_inkkit-diagram-bg)
|
|
1896
|
+
);
|
|
1897
|
+
--_inkkit-diagram-series-4: color-mix(
|
|
1898
|
+
in srgb,
|
|
1899
|
+
var(--inkkit-diagram-series-4, light-dark(#ff8d28, #ff9230))
|
|
1900
|
+
var(--inkkit-diagram-color-strength, 35%),
|
|
1901
|
+
var(--_inkkit-diagram-bg)
|
|
1902
|
+
);
|
|
1903
|
+
--_inkkit-diagram-series-5: color-mix(
|
|
1904
|
+
in srgb,
|
|
1905
|
+
var(--inkkit-diagram-series-5, light-dark(#ff383c, #ff4245))
|
|
1906
|
+
var(--inkkit-diagram-color-strength, 35%),
|
|
1907
|
+
var(--_inkkit-diagram-bg)
|
|
1908
|
+
);
|
|
1909
|
+
--_inkkit-diagram-series-6: color-mix(
|
|
1910
|
+
in srgb,
|
|
1911
|
+
var(--inkkit-diagram-series-6, light-dark(#00c8b3, #00dac3))
|
|
1912
|
+
var(--inkkit-diagram-color-strength, 35%),
|
|
1913
|
+
var(--_inkkit-diagram-bg)
|
|
1914
|
+
);
|
|
1915
|
+
--_inkkit-diagram-series-7: color-mix(
|
|
1916
|
+
in srgb,
|
|
1917
|
+
var(--inkkit-diagram-series-7, light-dark(#ffcc00, #ffd600))
|
|
1918
|
+
var(--inkkit-diagram-color-strength, 35%),
|
|
1919
|
+
var(--_inkkit-diagram-bg)
|
|
1920
|
+
);
|
|
1921
|
+
--_inkkit-diagram-series-8: color-mix(
|
|
1922
|
+
in srgb,
|
|
1923
|
+
var(--inkkit-diagram-series-8, light-dark(#00c0e8, #3cd3fe))
|
|
1924
|
+
var(--inkkit-diagram-color-strength, 35%),
|
|
1925
|
+
var(--_inkkit-diagram-bg)
|
|
1926
|
+
);
|
|
1927
|
+
--_inkkit-diagram-accent: var(--_inkkit-diagram-series-1);
|
|
1928
|
+
padding: 16px;
|
|
1929
|
+
overflow: auto;
|
|
1930
|
+
background: var(--_inkkit-diagram-bg);
|
|
1931
|
+
color: var(--_inkkit-diagram-fg);
|
|
1932
|
+
}
|
|
1933
|
+
.inkkit-root .inkkit-mermaid-preview svg {
|
|
1934
|
+
display: block;
|
|
1935
|
+
max-width: 100%;
|
|
1936
|
+
height: auto;
|
|
1937
|
+
}
|
|
1938
|
+
.inkkit-root .inkkit-mermaid-preview[data-state='error'] {
|
|
1939
|
+
color: var(--inkkit-diagram-error-color, light-dark(#9b2424, #ffb4ab));
|
|
1940
|
+
font-size: calc(var(--_inkkit-font-size) * 0.9);
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
/* One ring for every control InkKit draws; the editing surfaces can be set apart. */
|
|
1944
|
+
.inkkit-root button:focus-visible,
|
|
1945
|
+
.inkkit-root .inkkit-image-handle:focus-visible,
|
|
1946
|
+
.inkkit-root .inkkit-file[data-inkkit-file-activation='card']:focus-visible,
|
|
1947
|
+
.inkkit-root .inkkit-file audio:focus-visible,
|
|
1948
|
+
.inkkit-root .inkkit-file video:focus-visible {
|
|
1949
|
+
outline: var(--inkkit-focus-width, 2px) solid
|
|
1950
|
+
var(--inkkit-focus-color, var(--_inkkit-accent));
|
|
1951
|
+
outline-offset: var(--inkkit-focus-offset, -2px);
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
/* Inline references sit in running text, so their ring sits outside it. */
|
|
1955
|
+
.inkkit-root .inkkit-footnote-reference:focus-visible,
|
|
1956
|
+
.inkkit-root .inkkit-wiki-link:focus-visible {
|
|
1957
|
+
outline: var(--inkkit-focus-width, 2px) solid
|
|
1958
|
+
var(--inkkit-focus-color, currentColor);
|
|
1959
|
+
outline-offset: var(--inkkit-focus-offset, 2px);
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
.inkkit-root .ProseMirror:focus-visible,
|
|
1963
|
+
.inkkit-root .inkkit-plain:focus-visible {
|
|
1964
|
+
outline: var(--inkkit-surface-focus-width, var(--inkkit-focus-width, 2px))
|
|
1965
|
+
solid
|
|
1966
|
+
var(
|
|
1967
|
+
--inkkit-surface-focus-color,
|
|
1968
|
+
var(--inkkit-focus-color, var(--_inkkit-accent))
|
|
1969
|
+
);
|
|
1970
|
+
outline-offset: var(
|
|
1971
|
+
--inkkit-surface-focus-offset,
|
|
1972
|
+
var(--inkkit-focus-offset, -2px)
|
|
1973
|
+
);
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
.inkkit-root .inkkit-suggestions {
|
|
1977
|
+
position: fixed;
|
|
1978
|
+
z-index: 100;
|
|
1979
|
+
box-sizing: border-box;
|
|
1980
|
+
width: var(--inkkit-menu-width, 240px);
|
|
1981
|
+
max-width: calc(100vw - 8px);
|
|
1982
|
+
max-height: 264px;
|
|
1983
|
+
overflow-y: auto;
|
|
1984
|
+
overscroll-behavior: contain;
|
|
1985
|
+
padding: 4px;
|
|
1986
|
+
border-radius: var(--inkkit-menu-radius, 8px);
|
|
1987
|
+
background: var(--inkkit-menu-background, light-dark(#fff, #252529));
|
|
1988
|
+
color: var(--inkkit-menu-text, CanvasText);
|
|
1989
|
+
box-shadow: var(--inkkit-menu-shadow, 0 4px 18px #0003);
|
|
1990
|
+
font: calc(var(--_inkkit-font-size) * 14 / 15) /
|
|
1991
|
+
calc(var(--_inkkit-font-size) * 1.6)
|
|
1992
|
+
var(--inkkit-font-family, system-ui, sans-serif);
|
|
1993
|
+
}
|
|
1994
|
+
.inkkit-root .inkkit-suggestions [role='option'] {
|
|
1995
|
+
box-sizing: border-box;
|
|
1996
|
+
min-height: 32px;
|
|
1997
|
+
display: flex;
|
|
1998
|
+
align-items: center;
|
|
1999
|
+
gap: 8px;
|
|
2000
|
+
padding: 4px 8px;
|
|
2001
|
+
border-radius: 4px;
|
|
2002
|
+
cursor: default;
|
|
2003
|
+
white-space: nowrap;
|
|
2004
|
+
overflow: hidden;
|
|
2005
|
+
}
|
|
2006
|
+
.inkkit-root .inkkit-suggestions [aria-selected='true'] {
|
|
2007
|
+
background: var(--inkkit-menu-highlight, light-dark(#e8e8ed, #414146));
|
|
2008
|
+
}
|
|
2009
|
+
.inkkit-root .inkkit-suggestion-glyph {
|
|
2010
|
+
display: inline-block;
|
|
2011
|
+
flex: 0 0 22px;
|
|
2012
|
+
text-align: center;
|
|
2013
|
+
font-size: 12px;
|
|
2014
|
+
}
|
|
2015
|
+
.inkkit-root .inkkit-suggestion-glyph::before {
|
|
2016
|
+
content: attr(data-glyph);
|
|
2017
|
+
}
|
|
2018
|
+
.inkkit-root .inkkit-suggestions-status {
|
|
2019
|
+
position: absolute;
|
|
2020
|
+
width: 1px;
|
|
2021
|
+
height: 1px;
|
|
2022
|
+
clip-path: inset(50%);
|
|
2023
|
+
overflow: hidden;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
.inkkit-root .inkkit-code-controls {
|
|
2027
|
+
position: absolute;
|
|
2028
|
+
top: 4px;
|
|
2029
|
+
z-index: 2;
|
|
2030
|
+
right: 34px;
|
|
2031
|
+
font:
|
|
2032
|
+
calc(var(--_inkkit-font-size) * 0.8)/1.4 -apple-system,
|
|
2033
|
+
system-ui,
|
|
2034
|
+
sans-serif;
|
|
2035
|
+
white-space: normal;
|
|
2036
|
+
user-select: none;
|
|
2037
|
+
}
|
|
2038
|
+
.inkkit-root .inkkit-code-controls:has([aria-expanded='true']) {
|
|
2039
|
+
z-index: 50;
|
|
2040
|
+
}
|
|
2041
|
+
.inkkit-root pre:not(:has(.inkkit-copy)) .inkkit-code-controls {
|
|
2042
|
+
right: 6px;
|
|
2043
|
+
}
|
|
2044
|
+
.inkkit-root .inkkit-code-language {
|
|
2045
|
+
display: inline-flex;
|
|
2046
|
+
align-items: center;
|
|
2047
|
+
gap: 5px;
|
|
2048
|
+
height: 22px;
|
|
2049
|
+
padding: 0 6px;
|
|
2050
|
+
border: 0;
|
|
2051
|
+
border-radius: 5px;
|
|
2052
|
+
background: transparent;
|
|
2053
|
+
color: color-mix(in srgb, var(--_inkkit-text) 50%, var(--_inkkit-muted));
|
|
2054
|
+
font: inherit;
|
|
2055
|
+
cursor: pointer;
|
|
2056
|
+
}
|
|
2057
|
+
.inkkit-root .inkkit-code-language svg,
|
|
2058
|
+
.inkkit-root .inkkit-code-wrap svg {
|
|
2059
|
+
flex-shrink: 0;
|
|
2060
|
+
width: 12px;
|
|
2061
|
+
height: 12px;
|
|
2062
|
+
fill: none;
|
|
2063
|
+
stroke: currentColor;
|
|
2064
|
+
stroke-width: 1.5;
|
|
2065
|
+
stroke-linecap: round;
|
|
2066
|
+
stroke-linejoin: round;
|
|
2067
|
+
}
|
|
2068
|
+
.inkkit-root .inkkit-code-language:hover {
|
|
2069
|
+
background: color-mix(in srgb, CanvasText 7%, transparent);
|
|
2070
|
+
}
|
|
2071
|
+
.inkkit-root .inkkit-code-language:focus-visible,
|
|
2072
|
+
.inkkit-root .inkkit-copy:focus-visible,
|
|
2073
|
+
.inkkit-root .inkkit-code-wrap:focus-visible {
|
|
2074
|
+
outline: var(--inkkit-focus-width, 2px) solid
|
|
2075
|
+
var(--inkkit-focus-color, var(--_inkkit-accent));
|
|
2076
|
+
outline-offset: var(--inkkit-focus-offset, 1px);
|
|
2077
|
+
}
|
|
2078
|
+
.inkkit-root .inkkit-code-language-menu {
|
|
2079
|
+
position: fixed;
|
|
2080
|
+
z-index: 50;
|
|
2081
|
+
display: flex;
|
|
2082
|
+
flex-direction: column;
|
|
2083
|
+
width: 200px;
|
|
2084
|
+
max-height: min(264px, 50vh);
|
|
2085
|
+
padding: 0;
|
|
2086
|
+
box-sizing: border-box;
|
|
2087
|
+
border: 1px solid color-mix(in srgb, CanvasText 15%, transparent);
|
|
2088
|
+
border-radius: 10px;
|
|
2089
|
+
background: color-mix(in srgb, CanvasText 4%, Canvas);
|
|
2090
|
+
color: color-mix(in srgb, CanvasText 80%, Canvas);
|
|
2091
|
+
box-shadow: 0 6px 20px #0002;
|
|
2092
|
+
}
|
|
2093
|
+
.inkkit-root .inkkit-code-language-menu input {
|
|
2094
|
+
box-sizing: border-box;
|
|
2095
|
+
min-width: 0;
|
|
2096
|
+
width: 100%;
|
|
2097
|
+
padding: 4px 2px;
|
|
2098
|
+
height: 28px;
|
|
2099
|
+
border: 0;
|
|
2100
|
+
border-radius: 5px;
|
|
2101
|
+
background: transparent;
|
|
2102
|
+
color: inherit;
|
|
2103
|
+
font: inherit;
|
|
2104
|
+
}
|
|
2105
|
+
.inkkit-root .inkkit-code-language-search {
|
|
2106
|
+
display: flex;
|
|
2107
|
+
flex-shrink: 0;
|
|
2108
|
+
align-items: center;
|
|
2109
|
+
gap: 4px;
|
|
2110
|
+
padding: 4px 6px 4px 10px;
|
|
2111
|
+
border-bottom: 1px solid color-mix(in srgb, CanvasText 10%, transparent);
|
|
2112
|
+
}
|
|
2113
|
+
.inkkit-root .inkkit-code-wrap {
|
|
2114
|
+
display: grid;
|
|
2115
|
+
place-items: center;
|
|
2116
|
+
flex: 0 0 24px;
|
|
2117
|
+
width: 24px;
|
|
2118
|
+
height: 24px;
|
|
2119
|
+
padding: 0;
|
|
2120
|
+
border: 0;
|
|
2121
|
+
border-radius: 5px;
|
|
2122
|
+
background: transparent;
|
|
2123
|
+
color: var(--_inkkit-muted);
|
|
2124
|
+
cursor: pointer;
|
|
2125
|
+
}
|
|
2126
|
+
.inkkit-root .inkkit-code-wrap svg {
|
|
2127
|
+
width: 16px;
|
|
2128
|
+
height: 16px;
|
|
2129
|
+
stroke-width: 1.75;
|
|
2130
|
+
}
|
|
2131
|
+
.inkkit-root .inkkit-code-wrap:hover,
|
|
2132
|
+
.inkkit-root .inkkit-code-wrap[aria-pressed='true'],
|
|
2133
|
+
.inkkit-root .inkkit-code-language[aria-expanded='true'] {
|
|
2134
|
+
background: color-mix(in srgb, CanvasText 10%, transparent);
|
|
2135
|
+
}
|
|
2136
|
+
.inkkit-root .inkkit-code-language[aria-expanded='true'] svg {
|
|
2137
|
+
transform: rotate(180deg);
|
|
2138
|
+
}
|
|
2139
|
+
.inkkit-root .inkkit-code-language-list {
|
|
2140
|
+
display: flex;
|
|
2141
|
+
flex-direction: column;
|
|
2142
|
+
overflow-y: auto;
|
|
2143
|
+
padding: 4px;
|
|
2144
|
+
min-height: 0;
|
|
2145
|
+
}
|
|
2146
|
+
.inkkit-root .inkkit-code-language-list button {
|
|
2147
|
+
flex-shrink: 0;
|
|
2148
|
+
padding: 6px 8px;
|
|
2149
|
+
border: 0;
|
|
2150
|
+
border-radius: 6px;
|
|
2151
|
+
background: transparent;
|
|
2152
|
+
color: inherit;
|
|
2153
|
+
font: inherit;
|
|
2154
|
+
text-align: left;
|
|
2155
|
+
cursor: pointer;
|
|
2156
|
+
}
|
|
2157
|
+
.inkkit-root .inkkit-code-language-list button:hover,
|
|
2158
|
+
.inkkit-root
|
|
2159
|
+
.inkkit-code-language-menu[data-inkkit-input-modality='keyboard']
|
|
2160
|
+
.inkkit-code-language-list
|
|
2161
|
+
button:focus,
|
|
2162
|
+
.inkkit-root .inkkit-code-language-list button[aria-pressed='true'] {
|
|
2163
|
+
background: color-mix(in srgb, CanvasText 8%, transparent);
|
|
2164
|
+
}
|
|
2165
|
+
.inkkit-root .inkkit-code-language-menu input:focus,
|
|
2166
|
+
.inkkit-root .inkkit-code-language-menu button:focus {
|
|
2167
|
+
outline: none;
|
|
2168
|
+
}
|
|
2169
|
+
.inkkit-root
|
|
2170
|
+
.inkkit-code-language-menu[data-inkkit-input-modality='keyboard']
|
|
2171
|
+
input:focus,
|
|
2172
|
+
.inkkit-root
|
|
2173
|
+
.inkkit-code-language-menu[data-inkkit-input-modality='keyboard']
|
|
2174
|
+
button:focus {
|
|
2175
|
+
outline: var(--inkkit-focus-width, 2px) solid
|
|
2176
|
+
var(--inkkit-focus-color, var(--_inkkit-accent));
|
|
2177
|
+
outline-offset: var(--inkkit-focus-offset, -2px);
|
|
2178
|
+
}
|
|
2179
|
+
@media (forced-colors: active) {
|
|
2180
|
+
.inkkit-root .inkkit-code-language-menu input {
|
|
2181
|
+
border-color: ButtonBorder;
|
|
2182
|
+
}
|
|
2183
|
+
.inkkit-root
|
|
2184
|
+
.inkkit-code-language-menu[data-inkkit-input-modality='keyboard']
|
|
2185
|
+
input:focus,
|
|
2186
|
+
.inkkit-root
|
|
2187
|
+
.inkkit-code-language-menu[data-inkkit-input-modality='keyboard']
|
|
2188
|
+
button:focus {
|
|
2189
|
+
outline-color: Highlight;
|
|
2190
|
+
}
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
.inkkit-root .milkdown-drop-indicator {
|
|
2194
|
+
background: var(--inkkit-drop-indicator-color, var(--_inkkit-accent));
|
|
2195
|
+
}
|