@prosekit/basic 0.7.3 → 0.8.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.
@@ -0,0 +1,422 @@
1
+ $h1-font-size: 40px;
2
+ $h1-line-height: 44px;
3
+ $h1-padding-x: 2px;
4
+ $h1-padding-y: 3px;
5
+ $h1-margin-t: 36px;
6
+ $h1-margin-b: 4px;
7
+ $h1-margin-x: 0;
8
+
9
+ $h2-line-height: 39px;
10
+ $h2-padding-x: 2px;
11
+ $h2-padding-y: 3px;
12
+ $h2-margin-t: 32px;
13
+ $h2-margin-b: 4px;
14
+ $h2-margin-x: 0;
15
+
16
+ $list-marker-height: 24px;
17
+
18
+ $h3-line-height: 32px;
19
+ $h3-padding-x: 2px;
20
+ $h3-padding-y: 3px;
21
+ $h3-margin-t: 22px;
22
+ $h3-margin-b: 1px;
23
+ $h3-margin-x: 0;
24
+
25
+ $h4-line-height: 26px;
26
+ $h4-padding-x: 2px;
27
+ $h4-padding-y: 3px;
28
+ $h4-margin-t: 16px;
29
+ $h4-margin-b: 1px;
30
+ $h4-margin-x: 0;
31
+
32
+ $h5-line-height: 22px;
33
+ $h5-padding-x: 2px;
34
+ $h5-padding-y: 3px;
35
+ $h5-margin-t: 14px;
36
+ $h5-margin-b: 1px;
37
+ $h5-margin-x: 0;
38
+
39
+ $h6-line-height: 20px;
40
+ $h6-padding-x: 2px;
41
+ $h6-padding-y: 3px;
42
+ $h6-margin-t: 12px;
43
+ $h6-margin-b: 1px;
44
+ $h6-margin-x: 0;
45
+
46
+ $p-font-size: 16px;
47
+ $p-line-height: 24px;
48
+ $p-padding-x: 2px;
49
+ $p-padding-y: 3px;
50
+ $p-margin-t: 1px;
51
+ $p-margin-b: 0;
52
+ $p-margin-x: 0;
53
+
54
+ $pre-border-radius: 0.375rem;
55
+
56
+ .ProseMirror {
57
+ // #region Variables
58
+ --prosekit-hue: 250; // blue
59
+ --prosekit-outline-color: hsl(var(--prosekit-hue) 100% 60%);
60
+ --prosekit-node-selection-color: hsl(var(--prosekit-hue) 100% 60% / 0.22);
61
+ --prosekit-border-color: hsl(0 0% 60% / 0.2);
62
+ --prosekit-blockquote-color: hsl(0 0% 60% / 0.4);
63
+ --prosekit-autocomplete-color: hsl(0 0% 50% / 0.1);
64
+
65
+ // Prefer oklch over hsl
66
+ @supports (color: oklch(0.7 0.2 240)) {
67
+ --prosekit-outline-color: oklch(0.66 0.20 var(--prosekit-hue));
68
+ --prosekit-node-selection-color: oklch(0.66 0.20 var(--prosekit-hue) / 0.1);
69
+ }
70
+ // Prefer color-mix over fixed color for better adaptation to different color schemes
71
+ @supports (color: color-mix(in srgb, CanvasText 15%, Canvas)) {
72
+ --prosekit-border-color: color-mix(in srgb, CanvasText 15%, Canvas);
73
+ --prosekit-blockquote-color: color-mix(in srgb, CanvasText 40%, Canvas);
74
+ --prosekit-autocomplete-color: color-mix(in srgb, CanvasText 5%, Canvas);
75
+ }
76
+ // #endregion Variables
77
+
78
+ // #region Basic
79
+
80
+ // Disable margin collapsing
81
+ display: flex;
82
+ flex-direction: column;
83
+ line-height: 1.5;
84
+ // #endregion Basic
85
+
86
+ // #region Heading
87
+ h1 {
88
+ margin: $h1-margin-t $h1-margin-x $h1-margin-b;
89
+ padding: $h1-padding-y $h1-padding-x;
90
+ font-weight: 700;
91
+ font-size: 40px;
92
+ line-height: $h1-line-height;
93
+ }
94
+
95
+ h2 {
96
+ margin: $h2-margin-t $h2-margin-x $h2-margin-b;
97
+ padding: $h2-padding-y $h2-padding-x;
98
+ font-weight: 600;
99
+ font-size: 30px;
100
+ line-height: $h2-line-height;
101
+ }
102
+
103
+ h3 {
104
+ margin: $h3-margin-t $h3-margin-x $h3-margin-b;
105
+ padding: $h3-padding-y $h3-padding-x;
106
+ font-weight: 600;
107
+ font-size: 24px;
108
+ line-height: $h3-line-height;
109
+ }
110
+
111
+ h4 {
112
+ margin: $h4-margin-t $h4-margin-x $h4-margin-b;
113
+ padding: $h4-padding-y $h4-padding-x;
114
+ font-weight: 600;
115
+ font-size: 20px;
116
+ line-height: $h4-line-height;
117
+ }
118
+
119
+ h5 {
120
+ margin: $h5-margin-t $h5-margin-x $h5-margin-b;
121
+ padding: $h5-padding-y $h5-padding-x;
122
+ font-weight: 600;
123
+ font-size: 18px;
124
+ line-height: $h5-line-height;
125
+ }
126
+
127
+ h6 {
128
+ margin: $h6-margin-t $h6-margin-x $h6-margin-b;
129
+ padding: $h6-padding-y $h6-padding-x;
130
+ font-weight: 600;
131
+ font-size: 16px;
132
+ line-height: $h6-line-height;
133
+ }
134
+ // #endregion Heading
135
+
136
+ // #region Paragraph
137
+ p {
138
+ margin: $p-margin-t $p-margin-x $p-margin-b;
139
+ padding: $p-padding-y $p-padding-x;
140
+ font-size: $p-font-size;
141
+ line-height: $p-line-height;
142
+ }
143
+ // #endregion Paragraph
144
+
145
+ // #region Code
146
+ & code {
147
+ font-weight: 500;
148
+ font-size: 0.875em;
149
+ }
150
+
151
+ & pre {
152
+ margin: 0.5rem 0;
153
+ padding: 2rem 2rem;
154
+ overflow-x: auto;
155
+ border: 1px solid var(--prosekit-border-color);
156
+ border-radius: $pre-border-radius;
157
+ /* CSS variables --prosemirror-highlight and --prosemirror-highlight-bg are set by package `prosemirror-highlight` */
158
+ background-color: var(--prosemirror-highlight-bg, inherit);
159
+ color: var(--prosemirror-highlight, inherit);
160
+ }
161
+
162
+ & pre,
163
+ & code {
164
+ hyphens: none;
165
+ white-space: pre;
166
+ word-break: normal;
167
+ word-spacing: normal;
168
+ overflow-wrap: normal;
169
+ tab-size: 4;
170
+ }
171
+
172
+ & pre code {
173
+ font-weight: inherit;
174
+ }
175
+
176
+ & pre:has(code) {
177
+ /* Force the code block to be left-to-right */
178
+ direction: ltr;
179
+ }
180
+ // #endregion Code
181
+
182
+ // #region Image and Video
183
+ & img,
184
+ & video {
185
+ width: min-content;
186
+ max-width: 100%;
187
+ margin: 0.5em 0;
188
+ }
189
+ // #endregion Image and Video
190
+
191
+ // #region Blockquote
192
+ & blockquote {
193
+ position: relative;
194
+ margin: 4px 0;
195
+ padding-top: 3px;
196
+ padding-bottom: 3px;
197
+ padding-inline-start: 1em;
198
+ padding-inline-end: 2px;
199
+
200
+ &:before {
201
+ display: block;
202
+ position: absolute;
203
+ top: 2px;
204
+ bottom: 2px;
205
+ inset-inline-start: 2px;
206
+ border-inline-start: 0.25em solid var(--prosekit-blockquote-color);
207
+ content: "";
208
+ }
209
+ }
210
+ // #endregion Blockquote
211
+
212
+ // #region Horizontal Rule
213
+ & hr {
214
+ margin: 13px 0 13px;
215
+ border-width: 1px 0 0 0;
216
+ color: var(--prosekit-border-color);
217
+ }
218
+
219
+ & .prosekit-horizontal-rule {
220
+ margin: 1px 0;
221
+ padding: 12px 2px 12px;
222
+ border-width: 0;
223
+ // Set a small line-height so that the block handle can align to the middle
224
+ // of the horizontal rule
225
+ line-height: 1px;
226
+ & hr {
227
+ margin: 0;
228
+ }
229
+ }
230
+ // #endregion Horizontal Rule
231
+
232
+ // #region Page Break
233
+ & .prosekit-horizontal-rule.prosekit-page-break {
234
+ position: relative;
235
+
236
+ & hr {
237
+ border-style: dashed;
238
+ font-size: 12px;
239
+ mask-image: linear-gradient(
240
+ to right,
241
+ black,
242
+ black calc(50% - 6ch),
243
+ transparent calc(50% - 6ch),
244
+ transparent calc(50% + 6ch),
245
+ black calc(50% + 6ch),
246
+ black
247
+ );
248
+ }
249
+
250
+ &::after {
251
+ position: absolute;
252
+ top: 50%;
253
+ left: 50%;
254
+ transform: translate(-50%, -50%);
255
+ content: "Page break";
256
+ color: var(--prosekit-border-color);
257
+ font-size: 12px;
258
+ pointer-events: none;
259
+ }
260
+
261
+ &.ProseMirror-selectednode hr {
262
+ border-color: var(--prosekit-outline-color);
263
+ }
264
+
265
+ &.ProseMirror-selectednode::after {
266
+ color: var(--prosekit-outline-color);
267
+ }
268
+
269
+ @media print {
270
+ & {
271
+ opacity: 0;
272
+ }
273
+ }
274
+ }
275
+ // #endregion Page Break
276
+
277
+ // #region Table
278
+ & .tableWrapper {
279
+ margin-top: 0.5em;
280
+ margin-bottom: 1em;
281
+
282
+ table, tr, th, td {
283
+ border: 1px solid var(--prosekit-border-color);
284
+ border-collapse: collapse;
285
+ border-spacing: 0;
286
+ }
287
+
288
+ .selectedCell {
289
+ --color: 210, 100%, 56%;
290
+ border: 1px solid var(--prosekit-outline-color);
291
+ // A little trick to make the active border is over the inactive border.
292
+ // https://stackoverflow.com/a/13195727
293
+ border-style: double;
294
+ background-color: var(--prosekit-node-selection-color);
295
+ }
296
+
297
+ .column-resize-handle {
298
+ outline-color: var(--prosekit-outline-color);
299
+ // Use outline to hide the gap between multiple resize handles
300
+ outline-style: solid;
301
+ outline-width: 1px;
302
+ background-color: var(--prosekit-outline-color);
303
+ }
304
+ }
305
+ // #endregion Table
306
+
307
+ // #region Inline Marks
308
+ a {
309
+ text-decoration: underline;
310
+ }
311
+ // #endregion Inline Marks
312
+
313
+ // #region List
314
+ & .prosemirror-flat-list {
315
+ // #region List Heading
316
+ &:has(> div.list-content > h1) {
317
+ &::before,
318
+ & > .list-marker {
319
+ top: $h1-margin-t + $h1-padding-y + ($h1-line-height - $list-marker-height) * 0.5;
320
+ }
321
+ }
322
+
323
+ &:has(> div.list-content > h2) {
324
+ &::before,
325
+ & > .list-marker {
326
+ top: $h2-margin-t + $h2-padding-y + ($h2-line-height - $list-marker-height) * 0.5;
327
+ }
328
+ }
329
+
330
+ &:has(> div.list-content > h3) {
331
+ &::before,
332
+ & > .list-marker {
333
+ top: $h3-margin-t + $h3-padding-y + ($h3-line-height - $list-marker-height) * 0.5;
334
+ }
335
+ }
336
+
337
+ &:has(> div.list-content > h4) {
338
+ &::before,
339
+ & > .list-marker {
340
+ top: $h4-margin-t + $h4-padding-y + ($h4-line-height - $list-marker-height) * 0.5;
341
+ }
342
+ }
343
+
344
+ &:has(> div.list-content > h5) {
345
+ &::before,
346
+ & > .list-marker {
347
+ top: $h5-margin-t + $h5-padding-y + ($h5-line-height - $list-marker-height) * 0.5;
348
+ }
349
+ }
350
+
351
+ &:has(> div.list-content > h6) {
352
+ &::before,
353
+ & > .list-marker {
354
+ top: $h6-margin-t + $h6-padding-y + ($h6-line-height - $list-marker-height) * 0.5;
355
+ }
356
+ }
357
+ // #endregion List Heading
358
+
359
+ // #region List Paragraph
360
+ &:has(> div.list-content > p) {
361
+ &::before,
362
+ & > .list-marker {
363
+ top: $p-margin-t + $p-padding-y + ($p-line-height - $list-marker-height) * 0.5;
364
+ }
365
+ }
366
+ // #endregion List Paragraph
367
+ }
368
+ // #endregion List
369
+
370
+ // #region Node View
371
+ div[data-node-view-root="true"] {
372
+ // Don't generate box for node view wrapper. This make it easier to style the node views.
373
+ display: contents;
374
+ }
375
+ // #endregion Node View
376
+
377
+ // #region Node Selection
378
+ & .ProseMirror-selectednode {
379
+ border-radius: 2px;
380
+ outline-color: var(--prosekit-outline-color);
381
+ outline-style: solid;
382
+ outline-width: 1px;
383
+ background-color: var(--prosekit-node-selection-color);
384
+ }
385
+ & pre.ProseMirror-selectednode {
386
+ border-radius: $pre-border-radius;
387
+ }
388
+ // #endregion Node Selection
389
+
390
+ // #region Autocomplete
391
+ & .prosekit-autocomplete-match {
392
+ border-radius: 0.1em;
393
+ background-color: var(--prosekit-autocomplete-color);
394
+ box-shadow: 0 0 0 0.3em var(--prosekit-autocomplete-color);
395
+ }
396
+ // #endregion Autocomplete
397
+
398
+ // #region Dragging
399
+ &.prosekit-dragging {
400
+ --prosekit-node-selection-color: transparent;
401
+ }
402
+ // #endregion Dragging
403
+
404
+ // #region Math
405
+ .prosemirror-math-inline.prosemirror-math-head-inside .prosemirror-math-source {
406
+ &::before {
407
+ content: "$";
408
+ opacity: 0.5;
409
+ }
410
+ &::after {
411
+ content: "$";
412
+ opacity: 0.5;
413
+ }
414
+ }
415
+ .prosemirror-math-block:not(.prosemirror-math-head-inside) {
416
+ margin: 0.5rem 0;
417
+ }
418
+ .prosemirror-math-block .prosemirror-math-display {
419
+ padding: 0.5rem;
420
+ }
421
+ // #endregion Math
422
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.css","names":[],"sources":["../../../node_modules/.pnpm/prosemirror-view@1.41.6/node_modules/prosemirror-view/style/prosemirror.css","../../pm/src/view/style/prosemirror.css","../../extensions/src/list/style.css","../../extensions/src/table/style.css","../../extensions/src/placeholder/style.css","../../extensions/src/virtual-selection/style.css","../../extensions/src/commit/style.css","../../extensions/src/gap-cursor/style.css","../src/style.css"],"sourcesContent":[".ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: \"liga\" 0; /* the above doesn't seem to work in Edge */\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror li {\n position: relative;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n/* See https://github.com/ProseMirror/prosemirror/issues/1421#issuecomment-1759320191 */\n.ProseMirror [draggable][contenteditable=false] { user-select: text }\n\n.ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n/* Make sure li selections wrap around markers */\n\nli.ProseMirror-selectednode {\n outline: none;\n}\n\nli.ProseMirror-selectednode:after {\n content: \"\";\n position: absolute;\n left: -32px;\n right: -2px; top: -2px; bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n}\n\n/* Protect against generic img rules */\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n}\n","@import \"prosemirror-view/style/prosemirror.css\";\n",":root {\n --prosekit-list-bullet-icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='2.5' fill='currentColor'/%3E%3C/svg%3E\");\n --prosekit-list-toggle-open-icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon points='8,10 12,14 16,10' fill='currentColor'/%3E%3C/svg%3E\");\n --prosekit-list-toggle-closed-icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon points='10,8 14,12 10,16' fill='currentColor'/%3E%3C/svg%3E\");\n}\n\n.prosemirror-flat-list {\n & {\n position: relative;\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n & > .list-marker {\n position: absolute;\n width: 1.5em;\n width: 1lh;\n height: 1.5em;\n height: 1lh;\n inset-inline-start: 0;\n text-align: center;\n }\n\n & > .list-content {\n margin-inline-start: 1.5em;\n margin-inline-start: 1lh;\n }\n\n &[data-list-kind=\"bullet\"] > .list-marker,\n &[data-list-kind=\"toggle\"] > .list-marker {\n background-color: currentColor;\n mask-position: center;\n mask-repeat: no-repeat;\n mask-size: contain;\n }\n\n &[data-list-kind=\"bullet\"] {\n & > .list-marker {\n mask-image: var(--prosekit-list-bullet-icon);\n }\n }\n\n &[data-list-kind=\"toggle\"] {\n & > .list-marker {\n mask-image: var(--prosekit-list-toggle-open-icon);\n }\n\n &[data-list-collapsable][data-list-collapsed] > .list-marker {\n mask-image: var(--prosekit-list-toggle-closed-icon);\n }\n }\n\n &[data-list-kind=\"ordered\"] {\n /*\n Ensure that the counters in children don't escape, so that the sub lists\n won't affect the counter of the parent list.\n \n See also https://github.com/ocavue/prosemirror-flat-list/issues/23\n */\n & > * {\n contain: style;\n }\n\n &::before {\n position: absolute;\n inset-inline-end: calc(100% - 1.5em);\n inset-inline-end: calc(100% - 1lh);\n content: counter(prosemirror-flat-list-counter, decimal) \". \";\n font-variant-numeric: tabular-nums;\n }\n counter-increment: prosemirror-flat-list-counter;\n\n /* \n Reset the counter for the first list node in the sequence.\n */\n &:first-child,\n :not(&) + & {\n counter-reset: prosemirror-flat-list-counter;\n\n /* \n If the first list node has a custom order number, set the counter to that value.\n */\n &[data-list-order] {\n @supports (counter-set: prosemirror-flat-list-counter 1) {\n counter-set: prosemirror-flat-list-counter var(--prosemirror-flat-list-order);\n }\n\n /* \n Safari older than version 17.2 doesn't support `counter-set` \n */\n @supports not (counter-set: prosemirror-flat-list-counter 1) {\n counter-increment: prosemirror-flat-list-counter var(--prosemirror-flat-list-order);\n }\n }\n }\n }\n\n &[data-list-kind=\"task\"] {\n & > .list-marker {\n &,\n & * {\n /* Make sure that the checkbox is at the center */\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n padding: 0;\n cursor: pointer;\n }\n }\n }\n\n &[data-list-kind=\"toggle\"] {\n &[data-list-collapsable] > .list-marker {\n cursor: pointer;\n }\n &:not([data-list-collapsable]) > .list-marker {\n opacity: 40%;\n pointer-events: none;\n }\n\n /* If collapsed, hide the second and futher children */\n &[data-list-collapsable][data-list-collapsed] > .list-content > *:nth-child(n+2) {\n display: none;\n }\n }\n}\n",".ProseMirror .tableWrapper {\n overflow-x: auto;\n}\n.ProseMirror table {\n width: 100%;\n overflow: hidden;\n border-collapse: collapse;\n table-layout: fixed;\n}\n.ProseMirror td,\n.ProseMirror th {\n box-sizing: border-box;\n position: relative;\n padding-right: 0.75rem;\n padding-left: 0.75rem;\n border-width: 1px;\n vertical-align: top;\n}\n\nprosekit-table-handle-drop-indicator {\n background-color: HighlightText;\n}\n\n.ProseMirror .column-resize-handle {\n z-index: 20;\n position: absolute;\n top: 0;\n right: -2px;\n bottom: 0;\n width: 4px;\n background-color: HighlightText;\n pointer-events: none;\n}\n.ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n}\n.ProseMirror .selectedCell {\n --color: 210, 100%, 56%;\n border: 1px double hsl(var(--color));\n background-color: hsla(var(--color), 20%);\n}\n",".prosekit-placeholder::before {\n position: absolute;\n height: 0;\n content: attr(data-placeholder);\n opacity: 30%;\n pointer-events: none;\n}\n",".prosekit-virtual-selection {\n border-radius: 2px;\n background-color: #8888884d;\n box-shadow: 0 0 0 2px #8888884d;\n}\n",".prosekit-commit-deletion {\n background-color: #e5534b80;\n text-decoration: line-through;\n}\n.prosekit-commit-addition {\n background-color: #53e54b80;\n}\n",".ProseMirror-gapcursor {\n display: none;\n position: relative;\n pointer-events: none;\n}\n\n.ProseMirror-gapcursor:after {\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid currentColor;\n content: \"\";\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n","@import \"@prosekit/pm/view/style/prosemirror.css\";\n@import \"@prosekit/extensions/list/style.css\";\n@import \"@prosekit/extensions/table/style.css\";\n@import \"@prosekit/extensions/placeholder/style.css\";\n@import \"@prosekit/extensions/virtual-selection/style.css\";\n@import \"@prosekit/extensions/commit/style.css\";\n@import \"@prosekit/extensions/gap-cursor/style.css\";\n"],"x_google_ignoreList":[0],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;;AErDA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA"}
package/dist/style.js DELETED
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- {"version":3,"file":"typography.css","names":[],"sources":["../src/typography.css"],"sourcesContent":[":root {\n --prosekit-node-selection-color: rgba(57, 136, 255, 0.2);\n --prosekit-autocomplete-color: rgba(209, 213, 219, 0.15); /* tailwind bg-gray-300/15 */\n}\n\n.ProseMirror {\n & {\n /* Disable margin collapsing */\n display: flex;\n flex-direction: column;\n }\n\n & {\n /* Set the default line height as same as block handle's height */\n line-height: 1.5;\n }\n\n & p:first-child,\n & h1:first-child,\n & h2:first-child,\n & h3:first-child,\n & h4:first-child,\n & h5:first-child,\n & h6:first-child {\n margin-top: 0;\n }\n\n & p:last-child,\n & h1:last-child,\n & h2:last-child,\n & h3:last-child,\n & h4:last-child,\n & h5:last-child,\n & h6:last-child {\n margin-bottom: 0;\n }\n\n & h1,\n & h2,\n & h3,\n & h4,\n & h5,\n & h6 {\n padding-top: 0;\n padding-bottom: 0;\n border-style: none;\n font-weight: 600;\n line-height: 1.25;\n }\n\n & a {\n font-weight: 500;\n text-decoration: underline;\n }\n\n & p,\n & ul,\n & ol,\n & pre {\n margin: 0;\n padding: 0.5rem 0;\n line-height: 1.5;\n }\n\n & blockquote {\n padding-inline-start: 1em;\n border-inline-start: 0.25em solid hsl(0 0% 60% / 0.4);\n }\n\n & h1 {\n margin: 1rem 0;\n font-size: 2.25em;\n }\n\n & h2 {\n margin: 1.75em 0 0.5em;\n font-size: 1.75em;\n }\n\n & h3 {\n margin: 1.5em 0 0.5em;\n font-size: 1.375em;\n }\n\n & h4 {\n margin: 1em 0;\n font-size: 1.125em;\n }\n\n & h5 {\n margin: 0.5em 0;\n }\n\n & h6 {\n opacity: 0.8;\n }\n\n & img,\n & video {\n width: min-content;\n max-width: 100%;\n margin: 0.5em 0;\n }\n\n & code {\n font-weight: 600;\n font-size: 0.875em;\n }\n\n & pre {\n margin: 0.5rem 0;\n padding: 2rem 2rem;\n overflow-x: auto;\n border: 1px solid hsl(0 0% 50% / 0.2);\n border-radius: 0.375rem;\n /* CSS variables `prosemirror-highlight` and `prosemirror-highlight-bg` are set by package `prosemirror-highlight` */\n background-color: var(--prosemirror-highlight-bg, inherit);\n color: var(--prosemirror-highlight, inherit);\n }\n\n & pre,\n & code {\n white-space: pre;\n word-break: normal;\n word-spacing: normal;\n word-wrap: normal;\n hyphens: none;\n tab-size: 4;\n }\n\n & pre code {\n font-weight: inherit;\n }\n\n & pre:has(code) {\n /* Force the code block to be left-to-right */\n direction: ltr;\n }\n\n & hr {\n margin: 2em 0;\n border-width: 1px;\n }\n\n & .prosekit-horizontal-rule {\n margin: 1em 0;\n padding: 1em 0;\n /* Set a small line-height so that the block handle can align to the middle\n of the horizontal rule */\n line-height: 1px;\n\n & hr {\n margin: 0;\n }\n }\n\n & .tableWrapper {\n margin-top: 0.5em;\n margin-bottom: 1em;\n }\n\n & .prosemirror-flat-list {\n /* Use the same line-height as <p> */\n line-height: 1.5;\n\n &::before,\n & > .list-marker {\n /* Use the same padding as <p> */\n top: 0.5rem;\n }\n\n &:has(> div.list-content > h1) {\n &::before,\n & > .list-marker {\n top: 0.75em;\n }\n }\n &:has(> div.list-content > h2) {\n &::before,\n & > .list-marker {\n top: 0.5em;\n }\n }\n &:has(> div.list-content > h3) {\n &::before,\n & > .list-marker {\n top: 0.25em;\n }\n }\n &:has(> div.list-content > h4) {\n &::before,\n & > .list-marker {\n top: 0;\n }\n }\n &:has(> div.list-content > h5) {\n &::before,\n & > .list-marker {\n top: -0.2em;\n }\n }\n &:has(> div.list-content > h6) {\n &::before,\n & > .list-marker {\n top: -0.3em;\n }\n }\n }\n\n /*\n Don't generate box for node view wrapper. This make it easier to style\n the node views.\n */\n div[data-node-view-root=\"true\"] {\n display: contents;\n }\n\n & .ProseMirror-selectednode {\n border-radius: 0.2rem;\n outline-color: var(--prosekit-node-selection-color);\n outline-style: solid;\n outline-width: 0.3rem;\n background-color: var(--prosekit-node-selection-color);\n }\n\n & .prosekit-autocomplete-match {\n border-radius: 0.1em;\n background-color: var(--prosekit-autocomplete-color);\n box-shadow: 0 0 0 0.3em var(--prosekit-autocomplete-color);\n }\n\n &.prosekit-dragging {\n --prosekit-node-selection-color: transparent;\n }\n\n .prosemirror-math-inline.prosemirror-math-head-inside .prosemirror-math-source {\n &::before {\n content: \"$\";\n opacity: 0.5;\n }\n &::after {\n content: \"$\";\n opacity: 0.5;\n }\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
@@ -1 +0,0 @@
1
- export { };