@vscode/markdown-editor 0.0.2-130 → 0.0.2-132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/web-editors.d.ts +4 -0
- package/dist/web-editors.js +15 -10
- package/dist/web-editors.js.map +1 -1
- package/package.json +2 -2
- package/src/view/editor.css +29 -4
- package/src/view/themes/vscode-default.css +1 -1
- package/src/view/themes/vscode-github.css +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/markdown-editor",
|
|
3
|
-
"version": "0.0.2-
|
|
3
|
+
"version": "0.0.2-132",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"vitest": "^4.1.0",
|
|
121
121
|
"zod": "^4.3.6"
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "ede60aeab690f989797831878bf314403e0446c4"
|
|
124
124
|
}
|
package/src/view/editor.css
CHANGED
|
@@ -37,6 +37,25 @@
|
|
|
37
37
|
caret-color: transparent;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
.md-iframe-surface {
|
|
41
|
+
position: absolute;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
outline: 1px solid transparent;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
transition: outline-color 0.2s ease-in-out;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:is(.md-iframe-surface:hover, .md-iframe-surface:focus-within, [data-md-iframe-hover=true] .md-iframe-surface)
|
|
49
|
+
> .md-iframe-toolbar:not([hidden]) {
|
|
50
|
+
opacity: 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.md-iframe-surface:hover,
|
|
54
|
+
.md-iframe-surface:focus-within,
|
|
55
|
+
[data-md-iframe-hover=true] .md-iframe-surface {
|
|
56
|
+
outline-color: var(--md-iframe-border, #e5e5e5);
|
|
57
|
+
}
|
|
58
|
+
|
|
40
59
|
.md-iframe-toolbar,
|
|
41
60
|
.md-iframe-resize-handle {
|
|
42
61
|
position: absolute;
|
|
@@ -53,15 +72,13 @@
|
|
|
53
72
|
gap: 2px;
|
|
54
73
|
padding: 2px 4px;
|
|
55
74
|
border: 1px solid var(--md-iframe-border, #e5e5e5);
|
|
56
|
-
border-radius:
|
|
75
|
+
border-radius: 6px;
|
|
57
76
|
width: max-content;
|
|
58
77
|
transform: translateX(-100%);
|
|
59
78
|
opacity: 0;
|
|
79
|
+
transition: opacity 0.2s ease-in-out;
|
|
60
80
|
}
|
|
61
81
|
|
|
62
|
-
.md-iframe-frame:hover + .md-iframe-toolbar,
|
|
63
|
-
.md-iframe-toolbar:hover,
|
|
64
|
-
.md-iframe-toolbar:focus-within,
|
|
65
82
|
.md-iframe-toolbar:has(.md-code-block-copy-feedback),
|
|
66
83
|
.md-iframe-toolbar.md-iframe-toolbar-full-view {
|
|
67
84
|
opacity: 1;
|
|
@@ -90,6 +107,13 @@
|
|
|
90
107
|
}
|
|
91
108
|
}
|
|
92
109
|
|
|
110
|
+
@media (prefers-reduced-motion: reduce) {
|
|
111
|
+
.md-iframe-surface,
|
|
112
|
+
.md-iframe-toolbar:not([hidden]) {
|
|
113
|
+
transition: none;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
93
117
|
.md-iframe-toolbar button,
|
|
94
118
|
.md-iframe-toolbar .md-code-block-copy {
|
|
95
119
|
background: transparent;
|
|
@@ -121,6 +145,7 @@
|
|
|
121
145
|
.md-iframe-resize-handle {
|
|
122
146
|
cursor: ns-resize;
|
|
123
147
|
touch-action: none;
|
|
148
|
+
border-radius: 0 0 4px 4px;
|
|
124
149
|
}
|
|
125
150
|
|
|
126
151
|
.md-iframe-resize-handle::after {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
.md-editor.md-theme-vscode-default {
|
|
34
34
|
--md-iframe-background: var(--vscode-editor-background, #fff);
|
|
35
35
|
--md-iframe-foreground: var(--vscode-descriptionForeground, #616161);
|
|
36
|
-
--md-iframe-border: var(--vscode-
|
|
36
|
+
--md-iframe-border: var(--vscode-editorWidget-border, var(--vscode-widget-border, #e5e5e5));
|
|
37
37
|
--md-iframe-hover-background: var(--vscode-toolbar-hoverBackground, rgba(128, 128, 128, 0.12));
|
|
38
38
|
--md-iframe-focus-border: var(--vscode-focusBorder, #007acc);
|
|
39
39
|
font-family: var(--markdown-font-family, -apple-system, BlinkMacSystemFont,
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
.md-editor.md-theme-vscode-github {
|
|
43
43
|
--md-iframe-background: var(--vscode-editor-background, #fff);
|
|
44
44
|
--md-iframe-foreground: var(--vscode-descriptionForeground, #616161);
|
|
45
|
-
--md-iframe-border: var(--vscode-
|
|
45
|
+
--md-iframe-border: var(--vscode-editorWidget-border, var(--vscode-widget-border, #e5e5e5));
|
|
46
46
|
--md-iframe-hover-background: var(--vscode-toolbar-hoverBackground, rgba(128, 128, 128, 0.12));
|
|
47
47
|
--md-iframe-focus-border: var(--vscode-focusBorder, #007acc);
|
|
48
48
|
font-family: var(--markdown-font-family, -apple-system, BlinkMacSystemFont,
|