@vscode/markdown-editor 0.0.2-130 → 0.0.2-131

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/markdown-editor",
3
- "version": "0.0.2-130",
3
+ "version": "0.0.2-131",
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": "098d8c9977e264dd4a8782b273bfa90578d862f0"
123
+ "gitHead": "6d1aee960a755472243996ad7e9803c91b376dc9"
124
124
  }
@@ -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: 5px;
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-widget-border, var(--vscode-editorWidget-border, #e5e5e5));
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-widget-border, var(--vscode-editorWidget-border, #e5e5e5));
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,