@aicayzer/inkkit 0.0.7 → 0.0.8
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/NOTICE +25 -2
- package/README.md +16 -16
- package/dist/callouts.js +6 -3
- package/dist/decorations.js +7 -6
- package/dist/editor.d.ts +65 -4
- package/dist/editor.js +396 -61
- package/dist/images.d.ts +1 -0
- package/dist/images.js +11 -0
- package/dist/index.d.ts +2 -1
- package/dist/labels.d.ts +28 -0
- package/dist/labels.js +26 -0
- package/dist/mermaid.js +6 -3
- package/dist/paste.d.ts +1 -0
- package/dist/paste.js +5 -1
- package/dist/references.js +5 -4
- package/dist/selection.js +22 -10
- package/dist/style.css +377 -299
- package/dist/tables.d.ts +10 -1
- package/dist/tables.js +87 -11
- package/dist/tasks.js +2 -0
- package/dist/types.d.ts +1 -1
- package/package.json +4 -2
package/dist/style.css
CHANGED
|
@@ -1,140 +1,217 @@
|
|
|
1
|
-
|
|
1
|
+
/* Scoped ProseMirror table styles; attribution and licence are in NOTICE. */
|
|
2
|
+
.inkkit-root .ProseMirror .tableWrapper {
|
|
3
|
+
overflow-x: auto;
|
|
4
|
+
}
|
|
5
|
+
.inkkit-root .ProseMirror table {
|
|
6
|
+
border-collapse: collapse;
|
|
7
|
+
table-layout: fixed;
|
|
8
|
+
width: 100%;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
.inkkit-root .ProseMirror td,
|
|
12
|
+
.inkkit-root .ProseMirror th {
|
|
13
|
+
vertical-align: top;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
2
17
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
.inkkit-root .ProseMirror td:not([data-colwidth]):not(.column-resize-dragging),
|
|
19
|
+
.inkkit-root .ProseMirror th:not([data-colwidth]):not(.column-resize-dragging) {
|
|
20
|
+
/* Scoped equivalent of the upstream ProseMirror table sizing rules. */
|
|
21
|
+
min-width: var(--default-cell-min-width);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.inkkit-root .ProseMirror .column-resize-handle {
|
|
25
|
+
position: absolute;
|
|
26
|
+
right: -2px;
|
|
27
|
+
top: 0;
|
|
28
|
+
bottom: 0;
|
|
29
|
+
width: 4px;
|
|
30
|
+
z-index: 20;
|
|
31
|
+
background-color: var(--_inkkit-accent);
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|
|
34
|
+
.inkkit-root .ProseMirror.resize-cursor {
|
|
35
|
+
cursor: ew-resize;
|
|
36
|
+
cursor: col-resize;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.inkkit-root .ProseMirror .selectedCell:after {
|
|
40
|
+
z-index: 2;
|
|
41
|
+
position: absolute;
|
|
42
|
+
content: '';
|
|
43
|
+
left: 0;
|
|
44
|
+
right: 0;
|
|
45
|
+
top: 0;
|
|
46
|
+
bottom: 0;
|
|
47
|
+
background: color-mix(in srgb, var(--_inkkit-accent) 25%, transparent);
|
|
48
|
+
pointer-events: none;
|
|
13
49
|
}
|
|
14
50
|
|
|
15
|
-
.inkkit-
|
|
51
|
+
.inkkit-root {
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
color-scheme: var(--inkkit-color-scheme, light dark);
|
|
54
|
+
color: var(--inkkit-text-color, var(--text, CanvasText));
|
|
55
|
+
font-family: var(
|
|
56
|
+
--inkkit-font-family,
|
|
57
|
+
-apple-system,
|
|
58
|
+
BlinkMacSystemFont,
|
|
59
|
+
system-ui,
|
|
60
|
+
sans-serif
|
|
61
|
+
);
|
|
62
|
+
font-size: var(--inkkit-font-size, 15px);
|
|
63
|
+
line-height: var(--inkkit-line-height, normal);
|
|
64
|
+
-webkit-font-smoothing: antialiased;
|
|
65
|
+
-webkit-text-size-adjust: none;
|
|
66
|
+
--_inkkit-accent: var(--inkkit-accent-color, var(--accent, #0a84ff));
|
|
67
|
+
--_inkkit-text: var(--inkkit-text-color, var(--text, CanvasText));
|
|
68
|
+
--_inkkit-muted: var(
|
|
69
|
+
--inkkit-muted-color,
|
|
70
|
+
var(--muted, color-mix(in srgb, CanvasText 55%, transparent))
|
|
71
|
+
);
|
|
72
|
+
--_inkkit-rule: var(
|
|
73
|
+
--inkkit-rule-color,
|
|
74
|
+
var(--rule, color-mix(in srgb, CanvasText 14%, transparent))
|
|
75
|
+
);
|
|
76
|
+
--_inkkit-code-bg: var(
|
|
77
|
+
--inkkit-code-background,
|
|
78
|
+
var(--code-bg, color-mix(in srgb, CanvasText 8%, transparent))
|
|
79
|
+
);
|
|
80
|
+
--_inkkit-mono: var(
|
|
81
|
+
--inkkit-monospace-font,
|
|
82
|
+
var(--mono, ui-monospace, 'SF Mono', Menlo, monospace)
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.inkkit-root .inkkit-plain {
|
|
16
87
|
box-sizing: border-box;
|
|
17
88
|
width: 100%;
|
|
18
|
-
min-height: 100
|
|
89
|
+
min-height: var(--inkkit-min-height, 100%);
|
|
19
90
|
border: 0;
|
|
20
91
|
resize: none;
|
|
21
92
|
outline: none;
|
|
22
|
-
padding: 10px 16px
|
|
93
|
+
padding: var(--inkkit-padding-top, 10px) var(--inkkit-padding-inline, 16px)
|
|
94
|
+
var(--inkkit-padding-bottom, 48px);
|
|
23
95
|
background: transparent;
|
|
24
|
-
color: var(--text);
|
|
25
|
-
font:
|
|
96
|
+
color: var(--_inkkit-text);
|
|
97
|
+
font: calc(var(--inkkit-font-size, 15px) * 1)/var(--inkkit-line-height, 1.5)
|
|
98
|
+
var(--_inkkit-mono);
|
|
26
99
|
}
|
|
27
100
|
|
|
28
|
-
.inkkit-plain[hidden] {
|
|
101
|
+
.inkkit-root .inkkit-plain[hidden] {
|
|
29
102
|
display: none;
|
|
30
103
|
}
|
|
31
104
|
|
|
32
|
-
.milkdown-table-block {
|
|
105
|
+
.inkkit-root .milkdown-table-block {
|
|
33
106
|
position: relative;
|
|
34
|
-
margin: 1.
|
|
107
|
+
margin: calc(var(--inkkit-font-size, 15px) * 1.5) 0;
|
|
35
108
|
}
|
|
36
|
-
.milkdown-table-block .table-wrapper {
|
|
109
|
+
.inkkit-root .milkdown-table-block .table-wrapper {
|
|
37
110
|
overflow-x: auto;
|
|
38
111
|
}
|
|
39
|
-
.milkdown-table-block table {
|
|
112
|
+
.inkkit-root .milkdown-table-block table {
|
|
40
113
|
border-collapse: collapse;
|
|
41
114
|
}
|
|
42
|
-
.milkdown-table-block th,
|
|
43
|
-
.milkdown-table-block td {
|
|
44
|
-
border: 1px solid var(--rule);
|
|
45
|
-
min-width:
|
|
46
|
-
padding:
|
|
115
|
+
.inkkit-root .milkdown-table-block th,
|
|
116
|
+
.inkkit-root .milkdown-table-block td {
|
|
117
|
+
border: 1px solid var(--_inkkit-rule);
|
|
118
|
+
min-width: calc(var(--inkkit-font-size, 15px) * 3);
|
|
119
|
+
padding: calc(var(--inkkit-font-size, 15px) * 0.4)
|
|
120
|
+
calc(var(--inkkit-font-size, 15px) * 0.6);
|
|
47
121
|
vertical-align: top;
|
|
48
122
|
}
|
|
49
|
-
.milkdown-table-block th {
|
|
50
|
-
background: var(--code-bg);
|
|
123
|
+
.inkkit-root .milkdown-table-block th {
|
|
124
|
+
background: var(--_inkkit-code-bg);
|
|
51
125
|
}
|
|
52
|
-
.milkdown-table-block th p,
|
|
53
|
-
.milkdown-table-block td p {
|
|
126
|
+
.inkkit-root .milkdown-table-block th p,
|
|
127
|
+
.inkkit-root .milkdown-table-block td p {
|
|
54
128
|
margin: 0;
|
|
55
129
|
}
|
|
56
|
-
.milkdown-table-block .handle,
|
|
57
|
-
.milkdown-table-block .button-group,
|
|
58
|
-
.milkdown-table-block .drag-preview {
|
|
130
|
+
.inkkit-root .milkdown-table-block .handle,
|
|
131
|
+
.inkkit-root .milkdown-table-block .button-group,
|
|
132
|
+
.inkkit-root .milkdown-table-block .drag-preview {
|
|
59
133
|
position: absolute;
|
|
60
134
|
z-index: 20;
|
|
61
135
|
}
|
|
62
|
-
.milkdown-table-block [data-show='false'],
|
|
63
|
-
.milkdown-table-block .button-group[data-show='false'],
|
|
64
|
-
.milkdown-table-block.readonly .handle {
|
|
136
|
+
.inkkit-root .milkdown-table-block [data-show='false'],
|
|
137
|
+
.inkkit-root .milkdown-table-block .button-group[data-show='false'],
|
|
138
|
+
.inkkit-root .milkdown-table-block.readonly .handle {
|
|
65
139
|
display: none;
|
|
66
140
|
}
|
|
67
|
-
.milkdown-table-block .cell-handle {
|
|
141
|
+
.inkkit-root .milkdown-table-block .cell-handle {
|
|
68
142
|
cursor: grab;
|
|
69
|
-
font-size: 0.
|
|
143
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 0.75);
|
|
70
144
|
padding: 2px 5px;
|
|
71
145
|
border-radius: 5px;
|
|
72
146
|
background: Canvas;
|
|
73
|
-
color: var(--muted);
|
|
74
|
-
box-shadow: 0 0 0 1px var(--rule);
|
|
147
|
+
color: var(--_inkkit-muted);
|
|
148
|
+
box-shadow: 0 0 0 1px var(--_inkkit-rule);
|
|
75
149
|
}
|
|
76
|
-
.milkdown-table-block .button-group {
|
|
150
|
+
.inkkit-root .milkdown-table-block .button-group {
|
|
77
151
|
display: flex;
|
|
78
152
|
gap: 3px;
|
|
79
153
|
padding: 4px;
|
|
80
154
|
border-radius: 6px;
|
|
81
155
|
background: Canvas;
|
|
82
|
-
box-shadow: 0 0 0 1px var(--rule);
|
|
156
|
+
box-shadow: 0 0 0 1px var(--_inkkit-rule);
|
|
83
157
|
}
|
|
84
|
-
.milkdown-table-block button {
|
|
85
|
-
color: var(--text);
|
|
158
|
+
.inkkit-root .milkdown-table-block button {
|
|
159
|
+
color: var(--_inkkit-text);
|
|
86
160
|
background: Canvas;
|
|
87
|
-
border: 1px solid var(--rule);
|
|
161
|
+
border: 1px solid var(--_inkkit-rule);
|
|
88
162
|
border-radius: 4px;
|
|
89
163
|
padding: 4px 6px;
|
|
90
164
|
cursor: pointer;
|
|
91
165
|
white-space: nowrap;
|
|
92
166
|
}
|
|
93
|
-
.milkdown-table-block button:hover {
|
|
94
|
-
background: var(--code-bg);
|
|
167
|
+
.inkkit-root .milkdown-table-block button:hover {
|
|
168
|
+
background: var(--_inkkit-code-bg);
|
|
95
169
|
}
|
|
96
|
-
.milkdown-table-block .line-handle {
|
|
97
|
-
background: var(--accent);
|
|
170
|
+
.inkkit-root .milkdown-table-block .line-handle {
|
|
171
|
+
background: var(--_inkkit-accent);
|
|
98
172
|
min-width: 1px;
|
|
99
173
|
min-height: 1px;
|
|
100
174
|
}
|
|
101
|
-
.milkdown-table-block .add-button {
|
|
175
|
+
.inkkit-root .milkdown-table-block .add-button {
|
|
102
176
|
position: absolute;
|
|
103
177
|
padding: 2px 5px;
|
|
104
178
|
transform: translate(-50%, -50%);
|
|
105
179
|
background: Canvas;
|
|
106
|
-
color: var(--text);
|
|
107
|
-
border: 1px solid var(--rule);
|
|
180
|
+
color: var(--_inkkit-text);
|
|
181
|
+
border: 1px solid var(--_inkkit-rule);
|
|
108
182
|
border-radius: 4px;
|
|
109
183
|
white-space: nowrap;
|
|
110
184
|
cursor: pointer;
|
|
111
185
|
}
|
|
112
|
-
.
|
|
186
|
+
.inkkit-root
|
|
187
|
+
.milkdown-table-block
|
|
188
|
+
.line-handle[data-display-type='indicator']
|
|
189
|
+
.add-button {
|
|
113
190
|
display: none;
|
|
114
191
|
}
|
|
115
|
-
.milkdown-table-block .drag-preview {
|
|
192
|
+
.inkkit-root .milkdown-table-block .drag-preview {
|
|
116
193
|
opacity: 0.6;
|
|
117
194
|
background: Canvas;
|
|
118
|
-
outline: 1px solid var(--accent);
|
|
195
|
+
outline: 1px solid var(--_inkkit-accent);
|
|
119
196
|
}
|
|
120
197
|
|
|
121
|
-
.ProseMirror .image {
|
|
198
|
+
.inkkit-root .ProseMirror .image {
|
|
122
199
|
position: relative;
|
|
123
200
|
display: inline-block;
|
|
124
201
|
max-width: 100%;
|
|
125
202
|
vertical-align: bottom;
|
|
126
203
|
}
|
|
127
|
-
.ProseMirror .image img {
|
|
204
|
+
.inkkit-root .ProseMirror .image img {
|
|
128
205
|
display: block;
|
|
129
206
|
max-width: 100%;
|
|
130
207
|
height: auto;
|
|
131
208
|
border-radius: 6px;
|
|
132
209
|
}
|
|
133
|
-
.ProseMirror .image-absent {
|
|
134
|
-
color: var(--muted);
|
|
210
|
+
.inkkit-root .ProseMirror .image-absent {
|
|
211
|
+
color: var(--_inkkit-muted);
|
|
135
212
|
font-style: italic;
|
|
136
213
|
}
|
|
137
|
-
.ProseMirror .image-handle {
|
|
214
|
+
.inkkit-root .ProseMirror .image-handle {
|
|
138
215
|
position: absolute;
|
|
139
216
|
right: -3px;
|
|
140
217
|
top: 0;
|
|
@@ -143,11 +220,11 @@
|
|
|
143
220
|
cursor: col-resize;
|
|
144
221
|
opacity: 0;
|
|
145
222
|
}
|
|
146
|
-
.ProseMirror .image:hover .image-handle,
|
|
147
|
-
.ProseMirror .image-handle:active {
|
|
223
|
+
.inkkit-root .ProseMirror .image:hover .image-handle,
|
|
224
|
+
.inkkit-root .ProseMirror .image-handle:active {
|
|
148
225
|
opacity: 1;
|
|
149
226
|
}
|
|
150
|
-
.ProseMirror .image-handle::after {
|
|
227
|
+
.inkkit-root .ProseMirror .image-handle::after {
|
|
151
228
|
content: '';
|
|
152
229
|
position: absolute;
|
|
153
230
|
right: 3px;
|
|
@@ -155,166 +232,152 @@
|
|
|
155
232
|
height: 50%;
|
|
156
233
|
width: 4px;
|
|
157
234
|
border-radius: 2px;
|
|
158
|
-
background: var(--accent);
|
|
235
|
+
background: var(--_inkkit-accent);
|
|
159
236
|
}
|
|
160
237
|
|
|
161
|
-
|
|
162
|
-
body {
|
|
163
|
-
height: 100%;
|
|
164
|
-
margin: 0;
|
|
165
|
-
overflow: hidden;
|
|
166
|
-
background: transparent;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
body {
|
|
170
|
-
color: var(--text);
|
|
171
|
-
/* WebKit paints the native caret using this line box; extra leading stretches it above the text. */
|
|
172
|
-
font:
|
|
173
|
-
1rem/normal -apple-system,
|
|
174
|
-
BlinkMacSystemFont,
|
|
175
|
-
system-ui,
|
|
176
|
-
sans-serif;
|
|
177
|
-
-webkit-font-smoothing: antialiased;
|
|
178
|
-
-webkit-text-size-adjust: none;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/* The page scrolls inside #editor so the fade under the formatting bar stays put. */
|
|
182
|
-
#editor {
|
|
183
|
-
height: 100%;
|
|
184
|
-
overflow-y: auto;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.ProseMirror {
|
|
238
|
+
.inkkit-root .ProseMirror {
|
|
188
239
|
/* The viewport, not the wrapper Milkdown adds, so a click below the text still places the caret. */
|
|
189
|
-
min-height:
|
|
240
|
+
min-height: var(--inkkit-min-height, 100%);
|
|
190
241
|
box-sizing: border-box;
|
|
191
242
|
/* Scroll the final line above the floating footer without reserving a solid row. */
|
|
192
243
|
/* Keep the editor full-width for hit testing; center only the writing column. */
|
|
193
|
-
padding:
|
|
194
|
-
|
|
244
|
+
padding: var(--inkkit-padding-top, 10px)
|
|
245
|
+
max(
|
|
246
|
+
var(--inkkit-padding-inline, 16px),
|
|
247
|
+
calc(
|
|
248
|
+
(100% - var(--inkkit-reading-width, var(--reading-width, 100%))) / 2 +
|
|
249
|
+
var(--inkkit-padding-inline, 16px)
|
|
250
|
+
)
|
|
251
|
+
)
|
|
252
|
+
var(--inkkit-padding-bottom, 48px);
|
|
195
253
|
outline: none;
|
|
196
254
|
white-space: pre-wrap;
|
|
197
255
|
word-wrap: break-word;
|
|
198
|
-
caret-color: var(--accent);
|
|
256
|
+
caret-color: var(--_inkkit-accent);
|
|
199
257
|
cursor: text;
|
|
200
258
|
}
|
|
201
259
|
|
|
202
|
-
.ProseMirror .empty {
|
|
260
|
+
.inkkit-root .ProseMirror .empty {
|
|
203
261
|
position: relative;
|
|
204
262
|
}
|
|
205
263
|
|
|
206
|
-
.ProseMirror .empty::before {
|
|
264
|
+
.inkkit-root .ProseMirror .empty::before {
|
|
207
265
|
content: attr(data-placeholder);
|
|
208
266
|
position: absolute;
|
|
209
|
-
color: var(--muted);
|
|
267
|
+
color: var(--_inkkit-muted);
|
|
210
268
|
pointer-events: none;
|
|
211
269
|
}
|
|
212
270
|
|
|
213
271
|
/* The selection plugin draws the selection over the text alone; the engine's own fills the margins too. */
|
|
214
|
-
.ProseMirror ::selection {
|
|
272
|
+
.inkkit-root .ProseMirror ::selection {
|
|
215
273
|
background: transparent;
|
|
216
274
|
}
|
|
217
275
|
|
|
218
|
-
::highlight(selection) {
|
|
219
|
-
background-color: color-mix(in srgb, var(--accent) 30%, transparent);
|
|
276
|
+
.inkkit-root ::highlight(inkkit-selection) {
|
|
277
|
+
background-color: color-mix(in srgb, var(--_inkkit-accent) 30%, transparent);
|
|
220
278
|
}
|
|
221
279
|
|
|
222
|
-
.ProseMirror > :first-child {
|
|
280
|
+
.inkkit-root .ProseMirror > :first-child {
|
|
223
281
|
margin-top: 0;
|
|
224
282
|
}
|
|
225
283
|
|
|
226
|
-
.ProseMirror p {
|
|
227
|
-
margin: 0 0
|
|
284
|
+
.inkkit-root .ProseMirror p {
|
|
285
|
+
margin: 0 0
|
|
286
|
+
var(--inkkit-paragraph-spacing, calc(var(--inkkit-font-size, 15px) * 0.667));
|
|
228
287
|
}
|
|
229
288
|
|
|
230
|
-
.ProseMirror h1,
|
|
231
|
-
.ProseMirror h2,
|
|
232
|
-
.ProseMirror h3 {
|
|
289
|
+
.inkkit-root .ProseMirror h1,
|
|
290
|
+
.inkkit-root .ProseMirror h2,
|
|
291
|
+
.inkkit-root .ProseMirror h3 {
|
|
233
292
|
line-height: 1.25;
|
|
234
293
|
letter-spacing: -0.01em;
|
|
235
|
-
margin: 1.
|
|
294
|
+
margin: calc(var(--inkkit-font-size, 15px) * 1.867) 0
|
|
295
|
+
calc(var(--inkkit-font-size, 15px) * 0.533);
|
|
236
296
|
}
|
|
237
297
|
|
|
238
|
-
.ProseMirror h1 {
|
|
239
|
-
font-size: 1.
|
|
298
|
+
.inkkit-root .ProseMirror h1 {
|
|
299
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 1.733);
|
|
240
300
|
font-weight: 700;
|
|
241
301
|
}
|
|
242
302
|
|
|
243
|
-
.ProseMirror h2 {
|
|
244
|
-
font-size: 1.
|
|
303
|
+
.inkkit-root .ProseMirror h2 {
|
|
304
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 1.4);
|
|
245
305
|
font-weight: 700;
|
|
246
306
|
}
|
|
247
307
|
|
|
248
|
-
.ProseMirror h3 {
|
|
249
|
-
font-size: 1.
|
|
308
|
+
.inkkit-root .ProseMirror h3 {
|
|
309
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 1.133);
|
|
250
310
|
font-weight: 600;
|
|
251
311
|
}
|
|
252
312
|
|
|
253
|
-
.ProseMirror h4,
|
|
254
|
-
.ProseMirror h5,
|
|
255
|
-
.ProseMirror h6 {
|
|
256
|
-
font-size:
|
|
313
|
+
.inkkit-root .ProseMirror h4,
|
|
314
|
+
.inkkit-root .ProseMirror h5,
|
|
315
|
+
.inkkit-root .ProseMirror h6 {
|
|
316
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 1);
|
|
257
317
|
font-weight: 600;
|
|
258
|
-
margin: 1.
|
|
318
|
+
margin: calc(var(--inkkit-font-size, 15px) * 1.333) 0
|
|
319
|
+
calc(var(--inkkit-font-size, 15px) * 0.4);
|
|
259
320
|
}
|
|
260
321
|
|
|
261
|
-
.ProseMirror strong {
|
|
322
|
+
.inkkit-root .ProseMirror strong {
|
|
262
323
|
font-weight: 700;
|
|
263
324
|
}
|
|
264
325
|
|
|
265
|
-
.ProseMirror a {
|
|
266
|
-
color: var(--accent);
|
|
326
|
+
.inkkit-root .ProseMirror a {
|
|
327
|
+
color: var(--_inkkit-accent);
|
|
267
328
|
text-decoration: none;
|
|
268
329
|
text-underline-offset: 2px;
|
|
269
330
|
}
|
|
270
331
|
|
|
271
|
-
.ProseMirror a:hover {
|
|
332
|
+
.inkkit-root .ProseMirror a:hover {
|
|
272
333
|
text-decoration: underline;
|
|
273
334
|
}
|
|
274
335
|
|
|
275
|
-
.meta .ProseMirror a {
|
|
336
|
+
.meta .inkkit-root .ProseMirror a {
|
|
276
337
|
cursor: pointer;
|
|
277
338
|
}
|
|
278
339
|
|
|
279
|
-
.ProseMirror code {
|
|
280
|
-
font-family: var(--mono);
|
|
340
|
+
.inkkit-root .ProseMirror code {
|
|
341
|
+
font-family: var(--_inkkit-mono);
|
|
281
342
|
font-size: 0.88em;
|
|
282
|
-
background: var(--code-bg);
|
|
343
|
+
background: var(--_inkkit-code-bg);
|
|
283
344
|
border-radius: 5px;
|
|
284
|
-
padding:
|
|
345
|
+
padding: calc(var(--inkkit-font-size, 15px) * 0.067)
|
|
346
|
+
calc(var(--inkkit-font-size, 15px) * 0.333);
|
|
285
347
|
}
|
|
286
348
|
|
|
287
|
-
.ProseMirror pre {
|
|
349
|
+
.inkkit-root .ProseMirror pre {
|
|
288
350
|
position: relative;
|
|
289
|
-
font-family: var(--mono);
|
|
290
|
-
font-size: 0.
|
|
351
|
+
font-family: var(--_inkkit-mono);
|
|
352
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 0.867);
|
|
291
353
|
line-height: 1.5;
|
|
292
|
-
background: var(--code-bg);
|
|
354
|
+
background: var(--_inkkit-code-bg);
|
|
293
355
|
border-radius: 8px;
|
|
294
|
-
padding:
|
|
295
|
-
|
|
356
|
+
padding: calc(var(--inkkit-font-size, 15px) * 0.8)
|
|
357
|
+
calc(var(--inkkit-font-size, 15px) * 0.933);
|
|
358
|
+
margin: 0 0 calc(var(--inkkit-font-size, 15px) * 0.8);
|
|
296
359
|
overflow-x: auto;
|
|
297
360
|
}
|
|
298
361
|
|
|
299
|
-
.ProseMirror pre[data-language] {
|
|
300
|
-
padding-top: max(
|
|
362
|
+
.inkkit-root .ProseMirror pre[data-language] {
|
|
363
|
+
padding-top: max(calc(var(--inkkit-font-size, 15px) * 2), 30px);
|
|
301
364
|
}
|
|
302
365
|
|
|
303
|
-
.ProseMirror pre[data-language]::before {
|
|
366
|
+
.inkkit-root .ProseMirror pre[data-language]::before {
|
|
304
367
|
content: attr(data-language);
|
|
305
368
|
position: absolute;
|
|
306
|
-
top: 0.
|
|
307
|
-
left: 0.
|
|
369
|
+
top: calc(var(--inkkit-font-size, 15px) * 0.533);
|
|
370
|
+
left: calc(var(--inkkit-font-size, 15px) * 0.933);
|
|
308
371
|
font:
|
|
309
|
-
0.
|
|
372
|
+
calc(var(--inkkit-font-size, 15px) * 0.733)/1 -apple-system,
|
|
310
373
|
system-ui,
|
|
311
374
|
sans-serif;
|
|
312
|
-
color: var(--muted);
|
|
375
|
+
color: var(--_inkkit-muted);
|
|
313
376
|
text-transform: lowercase;
|
|
314
377
|
user-select: none;
|
|
315
378
|
}
|
|
316
379
|
|
|
317
|
-
.ProseMirror pre .copy {
|
|
380
|
+
.inkkit-root .ProseMirror pre .copy {
|
|
318
381
|
position: absolute;
|
|
319
382
|
top: 6px;
|
|
320
383
|
right: 6px;
|
|
@@ -325,346 +388,361 @@ body {
|
|
|
325
388
|
border: 0;
|
|
326
389
|
border-radius: 6px;
|
|
327
390
|
background: color-mix(in srgb, CanvasText 10%, transparent);
|
|
328
|
-
color: var(--muted);
|
|
391
|
+
color: var(--_inkkit-muted);
|
|
329
392
|
cursor: pointer;
|
|
330
393
|
opacity: 0;
|
|
331
394
|
transition: opacity 120ms;
|
|
332
395
|
user-select: none;
|
|
333
396
|
}
|
|
334
397
|
|
|
335
|
-
.ProseMirror pre:hover .copy,
|
|
336
|
-
.ProseMirror pre .copy[data-copied] {
|
|
398
|
+
.inkkit-root .ProseMirror pre:hover .copy,
|
|
399
|
+
.inkkit-root .ProseMirror pre .copy[data-copied] {
|
|
337
400
|
opacity: 1;
|
|
338
401
|
}
|
|
339
402
|
|
|
340
|
-
.ProseMirror pre .copy:hover {
|
|
341
|
-
color: var(--text);
|
|
403
|
+
.inkkit-root .ProseMirror pre .copy:hover {
|
|
404
|
+
color: var(--_inkkit-text);
|
|
342
405
|
}
|
|
343
406
|
|
|
344
|
-
.ProseMirror pre code {
|
|
407
|
+
.inkkit-root .ProseMirror pre code {
|
|
345
408
|
background: none;
|
|
346
409
|
padding: 0;
|
|
347
410
|
font-size: inherit;
|
|
348
411
|
}
|
|
349
412
|
|
|
350
|
-
.ProseMirror blockquote {
|
|
351
|
-
margin: 0 0 0.
|
|
352
|
-
padding: 2px 0 2px 0.
|
|
353
|
-
border-left: 2px solid var(--accent);
|
|
413
|
+
.inkkit-root .ProseMirror blockquote {
|
|
414
|
+
margin: 0 0 calc(var(--inkkit-font-size, 15px) * 0.8);
|
|
415
|
+
padding: 2px 0 2px calc(var(--inkkit-font-size, 15px) * 0.8);
|
|
416
|
+
border-left: 2px solid var(--_inkkit-accent);
|
|
354
417
|
}
|
|
355
418
|
|
|
356
|
-
.ProseMirror blockquote > :first-child {
|
|
419
|
+
.inkkit-root .ProseMirror blockquote > :first-child {
|
|
357
420
|
margin-top: 0;
|
|
358
421
|
}
|
|
359
422
|
|
|
360
|
-
.ProseMirror blockquote > :last-child {
|
|
423
|
+
.inkkit-root .ProseMirror blockquote > :last-child {
|
|
361
424
|
margin-bottom: 0;
|
|
362
425
|
}
|
|
363
426
|
|
|
364
|
-
.ProseMirror hr {
|
|
427
|
+
.inkkit-root .ProseMirror hr {
|
|
365
428
|
border: 0;
|
|
366
|
-
border-top: 1px solid var(--rule);
|
|
367
|
-
margin: 1.
|
|
429
|
+
border-top: 1px solid var(--_inkkit-rule);
|
|
430
|
+
margin: calc(var(--inkkit-font-size, 15px) * 1.333) 0;
|
|
368
431
|
}
|
|
369
432
|
|
|
370
|
-
.ProseMirror ul,
|
|
371
|
-
.ProseMirror ol {
|
|
372
|
-
margin: 0 0
|
|
373
|
-
|
|
433
|
+
.inkkit-root .ProseMirror ul,
|
|
434
|
+
.inkkit-root .ProseMirror ol {
|
|
435
|
+
margin: 0 0
|
|
436
|
+
var(--inkkit-paragraph-spacing, calc(var(--inkkit-font-size, 15px) * 0.667));
|
|
437
|
+
padding-left: calc(var(--inkkit-font-size, 15px) * 1.733);
|
|
374
438
|
}
|
|
375
439
|
|
|
376
|
-
.ProseMirror li {
|
|
377
|
-
margin: 0 0 0.
|
|
440
|
+
.inkkit-root .ProseMirror li {
|
|
441
|
+
margin: 0 0 calc(var(--inkkit-font-size, 15px) * 0.267);
|
|
378
442
|
}
|
|
379
443
|
|
|
380
|
-
.ProseMirror li > p {
|
|
444
|
+
.inkkit-root .ProseMirror li > p {
|
|
381
445
|
margin: 0;
|
|
382
446
|
}
|
|
383
447
|
|
|
384
|
-
.ProseMirror li ul,
|
|
385
|
-
.ProseMirror li ol {
|
|
386
|
-
margin-top: 0.
|
|
448
|
+
.inkkit-root .ProseMirror li ul,
|
|
449
|
+
.inkkit-root .ProseMirror li ol {
|
|
450
|
+
margin-top: calc(var(--inkkit-font-size, 15px) * 0.267);
|
|
387
451
|
margin-bottom: 0;
|
|
388
452
|
}
|
|
389
453
|
|
|
390
|
-
.ProseMirror ul > li::marker,
|
|
391
|
-
.ProseMirror ol > li::marker {
|
|
392
|
-
color: var(--accent);
|
|
454
|
+
.inkkit-root .ProseMirror ul > li::marker,
|
|
455
|
+
.inkkit-root .ProseMirror ol > li::marker {
|
|
456
|
+
color: var(--_inkkit-accent);
|
|
393
457
|
}
|
|
394
458
|
|
|
395
|
-
.ProseMirror li[data-item-type='task'] {
|
|
459
|
+
.inkkit-root .ProseMirror li[data-item-type='task'] {
|
|
396
460
|
list-style: none;
|
|
397
461
|
position: relative;
|
|
398
462
|
}
|
|
399
463
|
|
|
400
|
-
.ProseMirror li[data-item-type='task']::before {
|
|
464
|
+
.inkkit-root .ProseMirror li[data-item-type='task']::before {
|
|
401
465
|
content: '';
|
|
402
466
|
position: absolute;
|
|
403
|
-
left: -1.
|
|
467
|
+
left: calc(var(--inkkit-font-size, 15px) * -1.667);
|
|
404
468
|
top: 0.32em;
|
|
405
|
-
width: 0.
|
|
406
|
-
height: 0.
|
|
469
|
+
width: calc(var(--inkkit-font-size, 15px) * 0.933);
|
|
470
|
+
height: calc(var(--inkkit-font-size, 15px) * 0.933);
|
|
407
471
|
box-sizing: border-box;
|
|
408
472
|
border: 1.5px solid color-mix(in srgb, CanvasText 35%, transparent);
|
|
409
473
|
border-radius: 4px;
|
|
410
474
|
cursor: pointer;
|
|
411
475
|
}
|
|
412
476
|
|
|
413
|
-
.
|
|
414
|
-
|
|
415
|
-
|
|
477
|
+
.inkkit-root
|
|
478
|
+
.ProseMirror
|
|
479
|
+
li[data-item-type='task'][data-checked='true']::before {
|
|
480
|
+
border-color: var(--_inkkit-accent);
|
|
481
|
+
background: var(--_inkkit-accent);
|
|
416
482
|
}
|
|
417
483
|
|
|
418
|
-
.
|
|
484
|
+
.inkkit-root
|
|
485
|
+
.ProseMirror
|
|
486
|
+
li[data-item-type='task'][data-checked='true']::after {
|
|
419
487
|
content: '';
|
|
420
488
|
position: absolute;
|
|
421
|
-
left: -1.
|
|
489
|
+
left: calc(var(--inkkit-font-size, 15px) * -1.333);
|
|
422
490
|
top: 0.32em;
|
|
423
|
-
margin-top: 0.
|
|
424
|
-
width: 0.
|
|
425
|
-
height: 0.
|
|
491
|
+
margin-top: calc(var(--inkkit-font-size, 15px) * 0.133);
|
|
492
|
+
width: calc(var(--inkkit-font-size, 15px) * 0.2);
|
|
493
|
+
height: calc(var(--inkkit-font-size, 15px) * 0.467);
|
|
426
494
|
border: solid Canvas;
|
|
427
495
|
border-width: 0 1.5px 1.5px 0;
|
|
428
496
|
transform: rotate(45deg);
|
|
429
497
|
pointer-events: none;
|
|
430
498
|
}
|
|
431
499
|
|
|
432
|
-
.ProseMirror li[data-item-type='task'][data-checked='true'] > p {
|
|
433
|
-
color: var(--muted);
|
|
500
|
+
.inkkit-root .ProseMirror li[data-item-type='task'][data-checked='true'] > p {
|
|
501
|
+
color: var(--_inkkit-muted);
|
|
434
502
|
}
|
|
435
503
|
|
|
436
|
-
.ProseMirror del {
|
|
437
|
-
color: var(--muted);
|
|
504
|
+
.inkkit-root .ProseMirror del {
|
|
505
|
+
color: var(--_inkkit-muted);
|
|
438
506
|
}
|
|
439
507
|
|
|
440
|
-
.ProseMirror .ProseMirror-selectednode {
|
|
441
|
-
outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
|
|
508
|
+
.inkkit-root .ProseMirror .ProseMirror-selectednode {
|
|
509
|
+
outline: 2px solid color-mix(in srgb, var(--_inkkit-accent) 60%, transparent);
|
|
442
510
|
outline-offset: 2px;
|
|
443
511
|
border-radius: 4px;
|
|
444
512
|
}
|
|
445
513
|
|
|
446
514
|
/* Syntax colors: One Dark and One Light, without the blues. */
|
|
447
|
-
|
|
448
|
-
--code-comment: var(--muted);
|
|
449
|
-
--code-keyword: #a626a4;
|
|
450
|
-
--code-string: #50a14f;
|
|
451
|
-
--code-number: #986801;
|
|
452
|
-
--code-title: #c18401;
|
|
453
|
-
--code-attr: #e45649;
|
|
515
|
+
.inkkit-root {
|
|
516
|
+
--_inkkit-code-comment: var(--_inkkit-muted);
|
|
517
|
+
--_inkkit-code-keyword: #a626a4;
|
|
518
|
+
--_inkkit-code-string: #50a14f;
|
|
519
|
+
--_inkkit-code-number: #986801;
|
|
520
|
+
--_inkkit-code-title: #c18401;
|
|
521
|
+
--_inkkit-code-attr: #e45649;
|
|
454
522
|
}
|
|
455
523
|
|
|
456
524
|
@media (prefers-color-scheme: dark) {
|
|
457
|
-
|
|
458
|
-
--code-keyword: #c678dd;
|
|
459
|
-
--code-string: #98c379;
|
|
460
|
-
--code-number: #d19a66;
|
|
461
|
-
--code-title: #e5c07b;
|
|
462
|
-
--code-attr: #e06c75;
|
|
525
|
+
.inkkit-root {
|
|
526
|
+
--_inkkit-code-keyword: #c678dd;
|
|
527
|
+
--_inkkit-code-string: #98c379;
|
|
528
|
+
--_inkkit-code-number: #d19a66;
|
|
529
|
+
--_inkkit-code-title: #e5c07b;
|
|
530
|
+
--_inkkit-code-attr: #e06c75;
|
|
463
531
|
}
|
|
464
532
|
}
|
|
465
533
|
|
|
466
|
-
.hljs-comment,
|
|
467
|
-
.hljs-quote {
|
|
468
|
-
color: var(--code-comment);
|
|
534
|
+
.inkkit-root .hljs-comment,
|
|
535
|
+
.inkkit-root .hljs-quote {
|
|
536
|
+
color: var(--inkkit-code-comment, var(--_inkkit-code-comment));
|
|
469
537
|
font-style: italic;
|
|
470
538
|
}
|
|
471
539
|
|
|
472
|
-
.hljs-keyword,
|
|
473
|
-
.hljs-literal,
|
|
474
|
-
.hljs-built_in,
|
|
475
|
-
.hljs-type,
|
|
476
|
-
.hljs-selector-tag,
|
|
477
|
-
.hljs-doctag {
|
|
478
|
-
color: var(--code-keyword);
|
|
540
|
+
.inkkit-root .hljs-keyword,
|
|
541
|
+
.inkkit-root .hljs-literal,
|
|
542
|
+
.inkkit-root .hljs-built_in,
|
|
543
|
+
.inkkit-root .hljs-type,
|
|
544
|
+
.inkkit-root .hljs-selector-tag,
|
|
545
|
+
.inkkit-root .hljs-doctag {
|
|
546
|
+
color: var(--inkkit-code-keyword, var(--_inkkit-code-keyword));
|
|
479
547
|
}
|
|
480
548
|
|
|
481
|
-
.hljs-string,
|
|
482
|
-
.hljs-regexp,
|
|
483
|
-
.hljs-addition,
|
|
484
|
-
.hljs-template-tag {
|
|
485
|
-
color: var(--code-string);
|
|
549
|
+
.inkkit-root .hljs-string,
|
|
550
|
+
.inkkit-root .hljs-regexp,
|
|
551
|
+
.inkkit-root .hljs-addition,
|
|
552
|
+
.inkkit-root .hljs-template-tag {
|
|
553
|
+
color: var(--inkkit-code-string, var(--_inkkit-code-string));
|
|
486
554
|
}
|
|
487
555
|
|
|
488
|
-
.hljs-number,
|
|
489
|
-
.hljs-symbol,
|
|
490
|
-
.hljs-bullet,
|
|
491
|
-
.hljs-link,
|
|
492
|
-
.hljs-meta {
|
|
493
|
-
color: var(--code-number);
|
|
556
|
+
.inkkit-root .hljs-number,
|
|
557
|
+
.inkkit-root .hljs-symbol,
|
|
558
|
+
.inkkit-root .hljs-bullet,
|
|
559
|
+
.inkkit-root .hljs-link,
|
|
560
|
+
.inkkit-root .hljs-meta {
|
|
561
|
+
color: var(--inkkit-code-number, var(--_inkkit-code-number));
|
|
494
562
|
}
|
|
495
563
|
|
|
496
|
-
.hljs-title,
|
|
497
|
-
.hljs-section,
|
|
498
|
-
.hljs-name,
|
|
499
|
-
.hljs-selector-id,
|
|
500
|
-
.hljs-selector-class {
|
|
501
|
-
color: var(--code-title);
|
|
564
|
+
.inkkit-root .hljs-title,
|
|
565
|
+
.inkkit-root .hljs-section,
|
|
566
|
+
.inkkit-root .hljs-name,
|
|
567
|
+
.inkkit-root .hljs-selector-id,
|
|
568
|
+
.inkkit-root .hljs-selector-class {
|
|
569
|
+
color: var(--inkkit-code-title, var(--_inkkit-code-title));
|
|
502
570
|
}
|
|
503
571
|
|
|
504
|
-
.hljs-attr,
|
|
505
|
-
.hljs-attribute,
|
|
506
|
-
.hljs-property,
|
|
507
|
-
.hljs-variable,
|
|
508
|
-
.hljs-template-variable,
|
|
509
|
-
.hljs-tag,
|
|
510
|
-
.hljs-deletion {
|
|
511
|
-
color: var(--code-attr);
|
|
572
|
+
.inkkit-root .hljs-attr,
|
|
573
|
+
.inkkit-root .hljs-attribute,
|
|
574
|
+
.inkkit-root .hljs-property,
|
|
575
|
+
.inkkit-root .hljs-variable,
|
|
576
|
+
.inkkit-root .hljs-template-variable,
|
|
577
|
+
.inkkit-root .hljs-tag,
|
|
578
|
+
.inkkit-root .hljs-deletion {
|
|
579
|
+
color: var(--inkkit-code-attr, var(--_inkkit-code-attr));
|
|
512
580
|
}
|
|
513
581
|
|
|
514
|
-
.hljs-emphasis {
|
|
582
|
+
.inkkit-root .hljs-emphasis {
|
|
515
583
|
font-style: italic;
|
|
516
584
|
}
|
|
517
585
|
|
|
518
|
-
.hljs-strong {
|
|
586
|
+
.inkkit-root .hljs-strong {
|
|
519
587
|
font-weight: 700;
|
|
520
588
|
}
|
|
521
589
|
|
|
522
|
-
[hidden] {
|
|
590
|
+
.inkkit-root [hidden] {
|
|
523
591
|
display: none !important;
|
|
524
592
|
}
|
|
525
|
-
.ProseMirror-search-match {
|
|
526
|
-
background: color-mix(in srgb, var(--accent) 25%, transparent);
|
|
593
|
+
.inkkit-root .ProseMirror-search-match {
|
|
594
|
+
background: color-mix(in srgb, var(--_inkkit-accent) 25%, transparent);
|
|
527
595
|
}
|
|
528
596
|
|
|
529
|
-
.ProseMirror-active-search-match {
|
|
530
|
-
background: color-mix(in srgb, var(--accent) 55%, transparent);
|
|
597
|
+
.inkkit-root .ProseMirror-active-search-match {
|
|
598
|
+
background: color-mix(in srgb, var(--_inkkit-accent) 55%, transparent);
|
|
531
599
|
}
|
|
532
600
|
|
|
533
|
-
.ProseMirror .literal-markdown {
|
|
601
|
+
.inkkit-root .ProseMirror .literal-markdown {
|
|
534
602
|
white-space: pre-wrap;
|
|
535
|
-
font-family: var(--mono);
|
|
536
|
-
font-size: 0.
|
|
603
|
+
font-family: var(--_inkkit-mono);
|
|
604
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 0.9);
|
|
537
605
|
}
|
|
538
606
|
|
|
539
|
-
.inkkit-footnote-reference {
|
|
607
|
+
.inkkit-root .inkkit-footnote-reference {
|
|
540
608
|
cursor: pointer;
|
|
541
|
-
color: var(--accent, currentColor);
|
|
542
|
-
font-size: 0.
|
|
609
|
+
color: var(--_inkkit-accent, currentColor);
|
|
610
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 0.75);
|
|
543
611
|
}
|
|
544
612
|
|
|
545
|
-
.inkkit-footnote-reference:focus-visible {
|
|
546
|
-
outline: 2px solid
|
|
547
|
-
|
|
613
|
+
.inkkit-root .inkkit-footnote-reference:focus-visible {
|
|
614
|
+
outline: var(--inkkit-focus-width, 2px) solid
|
|
615
|
+
var(--inkkit-focus-color, currentColor);
|
|
616
|
+
outline-offset: var(--inkkit-focus-offset, 2px);
|
|
548
617
|
}
|
|
549
618
|
|
|
550
|
-
.inkkit-footnote-definition {
|
|
551
|
-
border-inline-start: 2px solid var(--muted, currentColor);
|
|
552
|
-
padding-inline-start:
|
|
619
|
+
.inkkit-root .inkkit-footnote-definition {
|
|
620
|
+
border-inline-start: 2px solid var(--_inkkit-muted, currentColor);
|
|
621
|
+
padding-inline-start: calc(var(--inkkit-font-size, 15px) * 1);
|
|
553
622
|
}
|
|
554
623
|
|
|
555
|
-
.inkkit-footnote-definition::before {
|
|
624
|
+
.inkkit-root .inkkit-footnote-definition::before {
|
|
556
625
|
content: '[' attr(data-inkkit-label) ']';
|
|
557
|
-
font-size: 0.
|
|
626
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 0.8);
|
|
558
627
|
}
|
|
559
628
|
|
|
560
|
-
.inkkit-reference-definition {
|
|
629
|
+
.inkkit-root .inkkit-reference-definition {
|
|
561
630
|
font-family: ui-monospace, monospace;
|
|
562
|
-
font-size: 0.
|
|
631
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 0.8);
|
|
563
632
|
opacity: 0.7;
|
|
564
633
|
}
|
|
565
634
|
|
|
566
|
-
.ProseMirror mark {
|
|
635
|
+
.inkkit-root .ProseMirror mark {
|
|
567
636
|
background: color-mix(in srgb, #e5c041 38%, transparent);
|
|
568
637
|
color: inherit;
|
|
569
638
|
}
|
|
570
639
|
|
|
571
|
-
.ProseMirror .inkkit-callout {
|
|
572
|
-
--callout-color: var(--accent);
|
|
640
|
+
.inkkit-root .ProseMirror .inkkit-callout {
|
|
641
|
+
--callout-color: var(--_inkkit-accent);
|
|
573
642
|
border-inline-start: 3px solid var(--callout-color);
|
|
574
|
-
padding: 0.
|
|
643
|
+
padding: calc(var(--inkkit-font-size, 15px) * 0.65)
|
|
644
|
+
calc(var(--inkkit-font-size, 15px) * 1);
|
|
575
645
|
background: color-mix(in srgb, var(--callout-color) 7%, transparent);
|
|
576
646
|
}
|
|
577
647
|
|
|
578
|
-
.ProseMirror [data-inkkit-callout='TIP'] {
|
|
648
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='TIP'] {
|
|
579
649
|
--callout-color: #30a46c;
|
|
580
650
|
}
|
|
581
|
-
.ProseMirror [data-inkkit-callout='IMPORTANT'] {
|
|
651
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='IMPORTANT'] {
|
|
582
652
|
--callout-color: #8e4ec6;
|
|
583
653
|
}
|
|
584
|
-
.ProseMirror [data-inkkit-callout='WARNING'] {
|
|
654
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='WARNING'] {
|
|
585
655
|
--callout-color: #d28b00;
|
|
586
656
|
}
|
|
587
|
-
.ProseMirror [data-inkkit-callout='CAUTION'] {
|
|
657
|
+
.inkkit-root .ProseMirror [data-inkkit-callout='CAUTION'] {
|
|
588
658
|
--callout-color: #e5484d;
|
|
589
659
|
}
|
|
590
660
|
|
|
591
|
-
.inkkit-callout-header {
|
|
661
|
+
.inkkit-root .inkkit-callout-header {
|
|
592
662
|
display: flex;
|
|
593
663
|
align-items: baseline;
|
|
594
|
-
gap: 0.
|
|
664
|
+
gap: calc(var(--inkkit-font-size, 15px) * 0.75);
|
|
595
665
|
}
|
|
596
666
|
|
|
597
|
-
[data-inkkit-callout-toggle] {
|
|
598
|
-
color: var(--muted);
|
|
667
|
+
.inkkit-root [data-inkkit-callout-toggle] {
|
|
668
|
+
color: var(--_inkkit-muted);
|
|
599
669
|
background: transparent;
|
|
600
670
|
border: 0;
|
|
601
|
-
padding: 0.
|
|
671
|
+
padding: calc(var(--inkkit-font-size, 15px) * 0.25);
|
|
602
672
|
cursor: pointer;
|
|
603
673
|
}
|
|
604
674
|
|
|
605
|
-
.inkkit-callout[data-inkkit-folded='true'] > .inkkit-callout-body {
|
|
675
|
+
.inkkit-root .inkkit-callout[data-inkkit-folded='true'] > .inkkit-callout-body {
|
|
606
676
|
display: none;
|
|
607
677
|
}
|
|
608
678
|
|
|
609
|
-
.inkkit-comment {
|
|
679
|
+
.inkkit-root .inkkit-comment {
|
|
610
680
|
display: none;
|
|
611
681
|
}
|
|
612
682
|
|
|
613
|
-
[data-inkkit-comments-visible='true'] .inkkit-comment {
|
|
683
|
+
.inkkit-root[data-inkkit-comments-visible='true'] .inkkit-comment {
|
|
614
684
|
display: inline;
|
|
615
685
|
white-space: pre-wrap;
|
|
616
|
-
font-family: var(--mono);
|
|
617
|
-
color: var(--muted);
|
|
618
|
-
background: var(--code-bg);
|
|
686
|
+
font-family: var(--_inkkit-mono);
|
|
687
|
+
color: var(--_inkkit-muted);
|
|
688
|
+
background: var(--_inkkit-code-bg);
|
|
619
689
|
}
|
|
620
690
|
|
|
621
|
-
[data-inkkit-comments-visible='true'] .inkkit-comment-block {
|
|
691
|
+
.inkkit-root[data-inkkit-comments-visible='true'] .inkkit-comment-block {
|
|
622
692
|
display: block;
|
|
623
|
-
padding: 0.
|
|
693
|
+
padding: calc(var(--inkkit-font-size, 15px) * 0.5);
|
|
624
694
|
}
|
|
625
695
|
|
|
626
696
|
@media print {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
#editor,
|
|
630
|
-
.ProseMirror {
|
|
697
|
+
.inkkit-root,
|
|
698
|
+
.inkkit-root .ProseMirror {
|
|
631
699
|
height: auto;
|
|
632
700
|
min-height: 0;
|
|
633
701
|
overflow: visible;
|
|
634
702
|
}
|
|
635
703
|
|
|
636
|
-
.milkdown-table-block .table-wrapper,
|
|
637
|
-
.ProseMirror pre {
|
|
704
|
+
.inkkit-root .milkdown-table-block .table-wrapper,
|
|
705
|
+
.inkkit-root .ProseMirror pre {
|
|
638
706
|
overflow: visible;
|
|
639
707
|
}
|
|
640
708
|
|
|
641
|
-
.inkkit-comment,
|
|
642
|
-
[data-inkkit-comments-visible='true'] .inkkit-comment,
|
|
643
|
-
[data-inkkit-callout-toggle],
|
|
644
|
-
.ProseMirror pre .copy,
|
|
645
|
-
.milkdown-table-block .handle,
|
|
646
|
-
.milkdown-table-block .button-group,
|
|
647
|
-
.milkdown-table-block .line-handle {
|
|
709
|
+
.inkkit-root .inkkit-comment,
|
|
710
|
+
.inkkit-root[data-inkkit-comments-visible='true'] .inkkit-comment,
|
|
711
|
+
.inkkit-root [data-inkkit-callout-toggle],
|
|
712
|
+
.inkkit-root .ProseMirror pre .copy,
|
|
713
|
+
.inkkit-root .milkdown-table-block .handle,
|
|
714
|
+
.inkkit-root .milkdown-table-block .button-group,
|
|
715
|
+
.inkkit-root .milkdown-table-block .line-handle {
|
|
648
716
|
display: none !important;
|
|
649
717
|
}
|
|
650
718
|
|
|
651
|
-
.inkkit-
|
|
719
|
+
.inkkit-root
|
|
720
|
+
.inkkit-callout[data-inkkit-folded='true']
|
|
721
|
+
> .inkkit-callout-body {
|
|
652
722
|
display: block !important;
|
|
653
723
|
}
|
|
654
724
|
}
|
|
655
725
|
/* Diagram previews are presentation; the authored code remains editable. */
|
|
656
|
-
.inkkit-mermaid-preview {
|
|
726
|
+
.inkkit-root .inkkit-mermaid-preview {
|
|
657
727
|
padding: 16px;
|
|
658
728
|
overflow: auto;
|
|
659
729
|
background: #fff;
|
|
660
730
|
color: #222;
|
|
661
731
|
}
|
|
662
|
-
.inkkit-mermaid-preview svg {
|
|
732
|
+
.inkkit-root .inkkit-mermaid-preview svg {
|
|
663
733
|
display: block;
|
|
664
734
|
max-width: 100%;
|
|
665
735
|
height: auto;
|
|
666
736
|
}
|
|
667
|
-
.inkkit-mermaid-preview[data-state='error'] {
|
|
737
|
+
.inkkit-root .inkkit-mermaid-preview[data-state='error'] {
|
|
668
738
|
color: #9b2424;
|
|
669
|
-
font-size: 0.
|
|
739
|
+
font-size: calc(var(--inkkit-font-size, 15px) * 0.9);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.inkkit-root .ProseMirror:focus-visible,
|
|
743
|
+
.inkkit-root .inkkit-plain:focus-visible,
|
|
744
|
+
.inkkit-root button:focus-visible {
|
|
745
|
+
outline: var(--inkkit-focus-width, 2px) solid
|
|
746
|
+
var(--inkkit-focus-color, var(--_inkkit-accent));
|
|
747
|
+
outline-offset: var(--inkkit-focus-offset, -2px);
|
|
670
748
|
}
|