markupeditor 0.9.26 → 0.9.28
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/dist/markup-editor.js +584 -318
- package/package.json +1 -1
- package/styles/markup.css +9 -8
- package/styles/toolbar.css +17 -7
package/package.json
CHANGED
package/styles/markup.css
CHANGED
|
@@ -267,12 +267,12 @@ img {
|
|
|
267
267
|
|
|
268
268
|
/* Scoped to :has() rather than styling pre unconditionally, since a code_block's
|
|
269
269
|
<pre> should only become a positioning context when it's actually carrying the
|
|
270
|
-
language
|
|
271
|
-
pre:has(.Markup-code-language-
|
|
270
|
+
language tab (highlightCode on, block selected) — not for every code block. */
|
|
271
|
+
pre:has(.Markup-code-language-tab) {
|
|
272
272
|
position: relative;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
.Markup-code-language-
|
|
275
|
+
.Markup-code-language-tab {
|
|
276
276
|
position: absolute;
|
|
277
277
|
bottom: 100%;
|
|
278
278
|
right: 0;
|
|
@@ -286,20 +286,21 @@ pre:has(.Markup-code-language-overlay) {
|
|
|
286
286
|
background: var(--Markup-accent-color, blue);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
.Markup-code-language-
|
|
289
|
+
.Markup-code-language-tab:hover {
|
|
290
290
|
opacity: 0.9;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
/* Applied (setup/index.js,
|
|
294
|
-
the top of the view for the
|
|
295
|
-
.Markup-code-language-
|
|
293
|
+
/* Applied (setup/index.js, CodeView.hasRoomAbove) when the code_block is too close to
|
|
294
|
+
the top of the view for the tab to fit above it — attach to the bottom instead. */
|
|
295
|
+
.Markup-code-language-tab-below {
|
|
296
296
|
bottom: auto;
|
|
297
297
|
top: 100%;
|
|
298
298
|
border-radius: 0 0 4px 4px;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
+
/* Matches .Markup-menuitem-active's selected-button color scheme. */
|
|
301
302
|
@media (prefers-color-scheme: dark) {
|
|
302
|
-
.Markup-code-language-
|
|
303
|
+
.Markup-code-language-tab {
|
|
303
304
|
background: var(--Markup-accent-color, lightblue);
|
|
304
305
|
color: black;
|
|
305
306
|
}
|
package/styles/toolbar.css
CHANGED
|
@@ -267,6 +267,16 @@
|
|
|
267
267
|
padding: 2px 8px 2px 4px;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
+
.Markup-menu-dropdown-separator {
|
|
271
|
+
border-top: 1px solid var(--Markup-border-color, lightgray);
|
|
272
|
+
margin: 4px 0;
|
|
273
|
+
}
|
|
274
|
+
@media (prefers-color-scheme: dark) {
|
|
275
|
+
.Markup-menu-dropdown-separator {
|
|
276
|
+
border-top: 1px solid var(--Markup-border-color, gray);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
270
280
|
/* Used to overlfow and ellipsis-truncate text in Dropdown menu items */
|
|
271
281
|
.Markup-menuitem-clipped {
|
|
272
282
|
white-space: nowrap; /* Required for text-overflow */
|
|
@@ -510,25 +520,25 @@
|
|
|
510
520
|
}
|
|
511
521
|
|
|
512
522
|
.Markup-prompt-link {
|
|
513
|
-
height:
|
|
523
|
+
height: calc(68px + var(--Markup-button-size, 28px)); /* 96 px by default */
|
|
514
524
|
width: 300px;
|
|
515
525
|
}
|
|
516
526
|
|
|
517
527
|
.Markup-prompt-image {
|
|
518
|
-
height:
|
|
528
|
+
height: calc(102px + var(--Markup-button-size, 28px)); /* 130 px by default */
|
|
519
529
|
width: 300px;
|
|
520
530
|
}
|
|
521
531
|
|
|
522
532
|
.Markup-prompt-language {
|
|
523
|
-
height:
|
|
533
|
+
height: calc(68px + var(--Markup-button-size, 28px)); /* 96 px by default */
|
|
524
534
|
width: 300px;
|
|
525
535
|
}
|
|
526
536
|
|
|
527
537
|
.Markup-prompt img {
|
|
528
538
|
display: inline-block;
|
|
529
539
|
vertical-align: middle;
|
|
530
|
-
min-width: 28px;
|
|
531
|
-
height: 28px;
|
|
540
|
+
min-width: var(--Markup-button-size, 28px);
|
|
541
|
+
height: var(--Markup-button-size, 28px);
|
|
532
542
|
margin-right: 4px;
|
|
533
543
|
}
|
|
534
544
|
|
|
@@ -579,8 +589,8 @@
|
|
|
579
589
|
vertical-align: middle;
|
|
580
590
|
justify-content: space-between;
|
|
581
591
|
justify-items: center;
|
|
582
|
-
line-height: 28px;
|
|
583
|
-
height: 28px;
|
|
592
|
+
line-height: var(--Markup-button-size, 28px);
|
|
593
|
+
height: var(--Markup-button-size, 28px);
|
|
584
594
|
margin-top: 8px;
|
|
585
595
|
margin-bottom: 8px;
|
|
586
596
|
}
|