@vscode/markdown-editor 0.0.2-9 → 0.0.2-90

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.
Files changed (75) hide show
  1. package/README.md +31 -0
  2. package/dist/commands.d.ts +65 -0
  3. package/dist/commands.js +159 -0
  4. package/dist/commands.js.map +1 -0
  5. package/dist/config-BGeaJqWk.js +286 -0
  6. package/dist/config-BGeaJqWk.js.map +1 -0
  7. package/dist/config.d.ts +10 -0
  8. package/dist/config.js +6 -0
  9. package/dist/config.js.map +1 -0
  10. package/dist/index.d.ts +1560 -121
  11. package/dist/index.js +6168 -2077
  12. package/dist/index.js.map +1 -1
  13. package/dist/markdown-editor.css +1 -0
  14. package/dist/stringEdit-CVDbCUBY.js +215 -0
  15. package/dist/stringEdit-CVDbCUBY.js.map +1 -0
  16. package/dist/web-editors.d.ts +297 -0
  17. package/dist/web-editors.js +7359 -0
  18. package/dist/web-editors.js.map +1 -0
  19. package/package.json +54 -16
  20. package/src/contrib/comments/commentInput.css +89 -0
  21. package/src/contrib/comments/commentWidget.css +60 -0
  22. package/src/contrib/find/find.css +347 -0
  23. package/src/view/editor.css +1157 -31
  24. package/src/view/themes/default.css +13 -4
  25. package/src/view/themes/github.css +16 -13
  26. package/src/view/themes/vscode-default.css +397 -0
  27. package/src/view/themes/{vscode.css → vscode-github.css} +124 -62
  28. package/dist/_observables/assert.d.ts +0 -2
  29. package/dist/_observables/deps.d.ts +0 -28
  30. package/dist/_observables/disposables.d.ts +0 -19
  31. package/dist/_observables/equals.d.ts +0 -32
  32. package/dist/_observables/index.d.ts +0 -2
  33. package/dist/_observables/observableInternal/base.d.ts +0 -172
  34. package/dist/_observables/observableInternal/changeTracker.d.ts +0 -44
  35. package/dist/_observables/observableInternal/commonFacade/cancellation.d.ts +0 -24
  36. package/dist/_observables/observableInternal/commonFacade/deps.d.ts +0 -24
  37. package/dist/_observables/observableInternal/debugLocation.d.ts +0 -21
  38. package/dist/_observables/observableInternal/debugName.d.ts +0 -33
  39. package/dist/_observables/observableInternal/experimental/deferUnobserve.d.ts +0 -16
  40. package/dist/_observables/observableInternal/experimental/reducer.d.ts +0 -37
  41. package/dist/_observables/observableInternal/experimental/utils.d.ts +0 -15
  42. package/dist/_observables/observableInternal/index.d.ts +0 -25
  43. package/dist/_observables/observableInternal/logging/consoleObservableLogger.d.ts +0 -40
  44. package/dist/_observables/observableInternal/logging/debugGetDependencyGraph.d.ts +0 -4
  45. package/dist/_observables/observableInternal/logging/debugger/debuggerRpc.d.ts +0 -4
  46. package/dist/_observables/observableInternal/logging/debugger/devToolsLogger.d.ts +0 -43
  47. package/dist/_observables/observableInternal/logging/debugger/rpc.d.ts +0 -41
  48. package/dist/_observables/observableInternal/logging/debugger/utils.d.ts +0 -13
  49. package/dist/_observables/observableInternal/logging/logging.d.ts +0 -30
  50. package/dist/_observables/observableInternal/map.d.ts +0 -18
  51. package/dist/_observables/observableInternal/observables/baseObservable.d.ts +0 -58
  52. package/dist/_observables/observableInternal/observables/constObservable.d.ts +0 -5
  53. package/dist/_observables/observableInternal/observables/derived.d.ts +0 -46
  54. package/dist/_observables/observableInternal/observables/derivedImpl.d.ts +0 -83
  55. package/dist/_observables/observableInternal/observables/lazyObservableValue.d.ts +0 -27
  56. package/dist/_observables/observableInternal/observables/observableFromEvent.d.ts +0 -37
  57. package/dist/_observables/observableInternal/observables/observableSignal.d.ts +0 -11
  58. package/dist/_observables/observableInternal/observables/observableSignalFromEvent.d.ts +0 -5
  59. package/dist/_observables/observableInternal/observables/observableValue.d.ts +0 -37
  60. package/dist/_observables/observableInternal/observables/observableValueOpts.d.ts +0 -8
  61. package/dist/_observables/observableInternal/reactions/autorun.d.ts +0 -56
  62. package/dist/_observables/observableInternal/reactions/autorunImpl.d.ts +0 -53
  63. package/dist/_observables/observableInternal/set.d.ts +0 -17
  64. package/dist/_observables/observableInternal/transaction.d.ts +0 -27
  65. package/dist/_observables/observableInternal/utils/promise.d.ts +0 -75
  66. package/dist/_observables/observableInternal/utils/runOnChange.d.ts +0 -7
  67. package/dist/_observables/observableInternal/utils/utils.d.ts +0 -43
  68. package/dist/_observables/observableInternal/utils/utilsCancellation.d.ts +0 -10
  69. package/dist/_observables/observableInternal/utils/valueWithChangeEvent.d.ts +0 -10
  70. package/dist/_observables/utils.d.ts +0 -15
  71. package/dist/observables.d.ts +0 -4
  72. package/dist/observables.js +0 -439
  73. package/dist/observables.js.map +0 -1
  74. package/dist/runOnChange-C00UIwqQ.js +0 -1538
  75. package/dist/runOnChange-C00UIwqQ.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/markdown-editor",
3
- "version": "0.0.2-9",
3
+ "version": "0.0.2-90",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -14,39 +14,75 @@
14
14
  },
15
15
  "main": "./dist/index.js",
16
16
  "types": "./dist/index.d.ts",
17
+ "sideEffects": [
18
+ "**/*.css"
19
+ ],
20
+ "typesVersions": {
21
+ "*": {
22
+ "config": [
23
+ "./dist/config.d.ts"
24
+ ],
25
+ "commands": [
26
+ "./dist/commands.d.ts"
27
+ ]
28
+ }
29
+ },
17
30
  "files": [
18
31
  "dist",
19
32
  "src/view/editor.css",
20
33
  "src/view/themes/default.css",
21
34
  "src/view/themes/github.css",
22
- "src/view/themes/vscode.css"
35
+ "src/view/themes/vscode-github.css",
36
+ "src/view/themes/vscode-default.css",
37
+ "src/contrib/comments/commentInput.css",
38
+ "src/contrib/comments/commentWidget.css",
39
+ "src/contrib/find/find.css"
23
40
  ],
24
41
  "exports": {
25
42
  ".": {
26
43
  "types": "./dist/index.d.ts",
27
44
  "import": "./dist/index.js"
28
45
  },
29
- "./observables": {
30
- "types": "./dist/observables.d.ts",
31
- "import": "./dist/observables.js"
46
+ "./config": {
47
+ "types": "./dist/config.d.ts",
48
+ "import": "./dist/config.js"
49
+ },
50
+ "./commands": {
51
+ "types": "./dist/commands.d.ts",
52
+ "import": "./dist/commands.js"
53
+ },
54
+ "./web-editors": {
55
+ "types": "./dist/web-editors.d.ts",
56
+ "import": "./dist/web-editors.js"
32
57
  },
33
58
  "./editor.css": "./src/view/editor.css",
34
59
  "./themes/default.css": "./src/view/themes/default.css",
35
60
  "./themes/github.css": "./src/view/themes/github.css",
36
- "./themes/vscode.css": "./src/view/themes/vscode.css"
61
+ "./themes/vscode-github.css": "./src/view/themes/vscode-github.css",
62
+ "./themes/vscode-default.css": "./src/view/themes/vscode-default.css",
63
+ "./commentInput.css": "./src/contrib/comments/commentInput.css",
64
+ "./commentWidget.css": "./src/contrib/comments/commentWidget.css"
37
65
  },
38
66
  "scripts": {
39
- "build": "vite build",
40
- "build:explorer": "vite build --config vite.fixture.config.ts --outDir dist-explorer --emptyOutDir",
67
+ "build": "pnpm run build:dependencies && vite build",
68
+ "build:dependencies": "pnpm --filter @vscode/hubrpc build && pnpm --filter @vscode/web-editors build",
69
+ "build:fixture-dependencies": "pnpm run build:dependencies && pnpm --filter @vscode/component-explorer-vite-plugin... build && pnpm --filter @vscode/sample-web-editor build",
70
+ "build:fixtures": "vite build --config vite.fixture.config.ts --outDir dist-explorer --emptyOutDir",
71
+ "build:explorer": "pnpm run build:fixture-dependencies && pnpm run build:fixtures",
72
+ "serve:e2e-fixtures": "vite preview --config vite.fixture.config.ts --outDir dist-explorer",
41
73
  "dev": "vite build --watch",
42
74
  "pack": "pnpm run build && pnpm pack",
43
75
  "test": "vitest --run",
44
76
  "test:watch": "vitest",
45
- "test:e2e": "playwright test"
77
+ "test:e2e": "pnpm run build:fixture-dependencies && pnpm run build:fixtures && playwright test"
46
78
  },
47
79
  "dependencies": {
80
+ "@vscode/codicons": "0.0.46-36",
81
+ "@vscode/diff": "0.0.2-0",
82
+ "@vscode/observables": "^0.1.1-0",
48
83
  "katex": "^0.16.33",
49
84
  "micromark": "^4.0.1",
85
+ "micromark-extension-frontmatter": "^2.0.0",
50
86
  "micromark-extension-gfm": "^3.0.0",
51
87
  "micromark-extension-gfm-strikethrough": "^2.1.0",
52
88
  "micromark-extension-gfm-table": "^2.1.1",
@@ -57,19 +93,21 @@
57
93
  "@playwright/test": "^1.58.2",
58
94
  "@types/katex": "^0.16.8",
59
95
  "@types/markdown-it": "^14.1.2",
60
- "@vscode/component-explorer": "0.2.1-59",
61
- "@vscode/component-explorer-cli": "0.2.1-60",
62
- "@vscode/component-explorer-vite-plugin": "0.2.1-59",
63
- "@vscode/observables": "workspace:*",
96
+ "@vscode/component-explorer": "workspace:*",
97
+ "@vscode/component-explorer-cli": "workspace:*",
98
+ "@vscode/component-explorer-vite-plugin": "workspace:*",
99
+ "@vscode/hubrpc": "workspace:*",
100
+ "@vscode/sample-web-editor": "workspace:*",
101
+ "@vscode/web-editors": "workspace:*",
64
102
  "github-markdown-css": "^5.9.0",
65
- "golden-layout": "^2.6.0",
66
103
  "markdown-it": "^14.2.0",
67
104
  "mermaid": "^11.15.0",
68
105
  "monaco-editor": "^0.52.2",
69
106
  "typescript": "^5.7.0",
70
- "vite": "^6.0.0",
107
+ "vite": "^6.4.3",
71
108
  "vite-plugin-dts": "^4.5.4",
72
109
  "vitest": "^4.1.0",
73
110
  "zod": "^4.3.6"
74
- }
111
+ },
112
+ "gitHead": "7e778f85325333474d7b4d000e1ad2382e5a47b3"
75
113
  }
@@ -0,0 +1,89 @@
1
+ @import '@vscode/codicons/dist/codicon.css';
2
+
3
+ .md-comment-input {
4
+ box-sizing: border-box;
5
+ display: flex;
6
+ align-items: flex-end;
7
+ width: 165px;
8
+ min-height: 24px;
9
+ padding: 3px 4px 3px 7px;
10
+ background-color: var(--vscode-menu-background);
11
+ color: var(--vscode-input-foreground);
12
+ border: 1px solid var(--vscode-menu-border);
13
+ border-radius: 6px;
14
+ box-shadow: 0 0 12px var(--vscode-widget-shadow);
15
+ font-family: var(--vscode-font-family);
16
+ font-size: var(--vscode-font-size);
17
+ }
18
+
19
+ .md-comment-input-textarea {
20
+ flex: 1 1 auto;
21
+ width: 0;
22
+ min-width: 0;
23
+ min-height: 16px;
24
+ max-height: 160px;
25
+ margin: 0;
26
+ padding: 0;
27
+ border: 0;
28
+ outline: none;
29
+ resize: none;
30
+ overflow-y: hidden;
31
+ box-sizing: border-box;
32
+ background: transparent;
33
+ color: var(--vscode-input-foreground);
34
+ font: inherit;
35
+ line-height: 16px;
36
+ white-space: pre-wrap;
37
+ overflow-wrap: anywhere;
38
+ caret-color: var(--vscode-editorCursor-foreground);
39
+ }
40
+
41
+ .md-comment-input-textarea::placeholder {
42
+ color: var(--vscode-input-placeholderForeground);
43
+ opacity: 1;
44
+ }
45
+
46
+ .md-comment-input-measure {
47
+ position: absolute;
48
+ visibility: hidden;
49
+ width: max-content;
50
+ height: 0;
51
+ overflow: hidden;
52
+ white-space: pre;
53
+ font: inherit;
54
+ }
55
+
56
+ .md-comment-input-submit {
57
+ display: flex;
58
+ flex: 0 0 auto;
59
+ align-items: center;
60
+ justify-content: center;
61
+ width: 16px;
62
+ height: 16px;
63
+ margin: 0 0 0 4px;
64
+ padding: 0;
65
+ border: 0;
66
+ border-radius: 4px;
67
+ background: transparent;
68
+ color: var(--vscode-icon-foreground);
69
+ cursor: pointer;
70
+ }
71
+
72
+ .md-comment-input-submit:hover:not(:disabled) {
73
+ background-color: var(--vscode-toolbar-hoverBackground);
74
+ }
75
+
76
+ .md-comment-input-submit:disabled {
77
+ cursor: default;
78
+ }
79
+
80
+ .md-comment-input .md-comment-input-submit .codicon {
81
+ display: block;
82
+ flex: none;
83
+ font-size: 12px;
84
+ line-height: 12px;
85
+ }
86
+
87
+ .md-comment-active .md-cursor {
88
+ display: none;
89
+ }
@@ -0,0 +1,60 @@
1
+ @import '@vscode/codicons/dist/codicon.css';
2
+
3
+ .md-comment-widget {
4
+ box-sizing: border-box;
5
+ display: flex;
6
+ align-items: flex-start;
7
+ width: max-content;
8
+ min-width: min(165px, var(--md-comment-available-width, 100%));
9
+ max-width: min(400px, var(--md-comment-available-width, 100%));
10
+ min-height: 24px;
11
+ padding: 3px 4px 3px 7px;
12
+ background-color: var(--vscode-menu-background);
13
+ color: var(--vscode-foreground);
14
+ border: 1px solid var(--vscode-menu-border);
15
+ border-radius: 6px;
16
+ box-shadow: 0 0 12px var(--vscode-widget-shadow);
17
+ font-family: var(--vscode-font-family);
18
+ font-size: var(--vscode-font-size);
19
+ }
20
+
21
+ .md-comment-widget:hover,
22
+ .md-comment-widget--hover {
23
+ background-color: var(--vscode-list-hoverBackground);
24
+ }
25
+
26
+ .md-comment-widget-text {
27
+ flex: 1 1 auto;
28
+ min-width: 0;
29
+ line-height: 16px;
30
+ white-space: pre-wrap;
31
+ overflow-wrap: anywhere;
32
+ }
33
+
34
+ .md-comment-widget-delete {
35
+ display: flex;
36
+ flex: 0 0 auto;
37
+ align-items: center;
38
+ justify-content: center;
39
+ width: 16px;
40
+ height: 16px;
41
+ margin: 0 0 0 4px;
42
+ padding: 0;
43
+ border: 0;
44
+ border-radius: 4px;
45
+ background: transparent;
46
+ color: var(--vscode-icon-foreground);
47
+ cursor: pointer;
48
+ }
49
+
50
+ .md-comment-widget-delete:hover,
51
+ .md-comment-widget-delete--hover {
52
+ background-color: var(--vscode-toolbar-hoverBackground);
53
+ }
54
+
55
+ .md-comment-widget .md-comment-widget-delete .codicon {
56
+ display: block;
57
+ flex: none;
58
+ font-size: 12px;
59
+ line-height: 12px;
60
+ }
@@ -0,0 +1,347 @@
1
+ .md-editor {
2
+ --md-find-widget-background: light-dark(#f3f3f3, #252526);
3
+ --md-find-widget-foreground: light-dark(#616161, #cccccc);
4
+ --md-find-widget-border: light-dark(#c8c8c8, #454545);
5
+ --md-find-widget-shadow: rgba(0, 0, 0, 0.24);
6
+ --md-find-input-background: light-dark(#ffffff, #313131);
7
+ --md-find-input-foreground: light-dark(#3b3b3b, #cccccc);
8
+ --md-find-placeholder-foreground: light-dark(#767676, #a6a6a6);
9
+ --md-find-input-caret: currentColor;
10
+ --md-find-input-border: light-dark(#cecece, #3c3c3c);
11
+ --md-find-count-foreground: light-dark(#616161, #cccccc);
12
+ --md-find-focus-border: light-dark(#0090f1, #007fd4);
13
+ --md-find-button-hover-background: light-dark(rgba(184, 184, 184, 0.31), rgba(90, 93, 94, 0.5));
14
+ --md-find-option-background: light-dark(rgba(0, 144, 241, 0.2), rgba(0, 127, 212, 0.4));
15
+ --md-find-option-border: light-dark(#007acc, #1c9cf0);
16
+ --md-find-option-foreground: light-dark(#000000, #ffffff);
17
+ --md-find-disabled-foreground: light-dark(#9d9d9d, rgba(204, 204, 204, 0.5));
18
+ --md-find-error-border: light-dark(#be1100, #be1100);
19
+ --md-find-error-foreground: light-dark(#a1260d, #f48771);
20
+ --md-find-editor-background: light-dark(#ffffff, #1e1e1e);
21
+ --md-find-match-background: rgba(234, 92, 0, 0.33);
22
+ --md-find-match-fill: color-mix(
23
+ in srgb,
24
+ var(--md-find-editor-background) 85%,
25
+ var(--md-find-match-background)
26
+ );
27
+ --md-find-match-border: color-mix(
28
+ in srgb,
29
+ var(--md-find-widget-foreground) 55%,
30
+ #ea5c00
31
+ );
32
+ --md-find-current-background: light-dark(#a8ac94, #515c6a);
33
+ --md-find-current-fill: color-mix(
34
+ in srgb,
35
+ var(--md-find-editor-background) 90%,
36
+ var(--md-find-current-background)
37
+ );
38
+ --md-find-current-border: color-mix(
39
+ in srgb,
40
+ var(--md-find-widget-foreground) 55%,
41
+ var(--md-find-current-background)
42
+ );
43
+ }
44
+
45
+ ::highlight(md-editor-find-match) {
46
+ background-color: var(--md-find-match-fill);
47
+ }
48
+
49
+ ::highlight(md-editor-find-current) {
50
+ background-color: var(--md-find-current-fill);
51
+ }
52
+
53
+ .md-find-highlight-layer {
54
+ position: absolute;
55
+ inset: 0;
56
+ width: 100%;
57
+ height: 100%;
58
+ overflow: visible;
59
+ pointer-events: none;
60
+ }
61
+
62
+ .md-find-match-rect,
63
+ .md-find-current-rect {
64
+ position: absolute;
65
+ border-radius: 2px;
66
+ }
67
+
68
+ .md-find-match-rect {
69
+ background: transparent;
70
+ outline: 1px solid var(--md-find-match-border);
71
+ outline-offset: -1px;
72
+ }
73
+
74
+ .md-find-current-rect {
75
+ background: transparent;
76
+ outline: 2px solid var(--md-find-current-border);
77
+ outline-offset: -1px;
78
+ }
79
+
80
+ .md-find-zero-width-rect.md-find-match-rect {
81
+ background: var(--md-find-match-fill);
82
+ }
83
+
84
+ .md-find-zero-width-rect.md-find-current-rect {
85
+ background: var(--md-find-current-fill);
86
+ }
87
+
88
+ .md-find-widget-host {
89
+ position: sticky;
90
+ top: 0;
91
+ z-index: 30;
92
+ display: flex;
93
+ height: 0;
94
+ justify-content: flex-end;
95
+ overflow: visible;
96
+ pointer-events: none;
97
+ }
98
+
99
+ .md-find-widget-host[hidden] {
100
+ display: none;
101
+ }
102
+
103
+ .md-editor.md-find-visible .md-find-widget-host {
104
+ height: auto;
105
+ }
106
+
107
+ .md-find-widget {
108
+ display: flex;
109
+ box-sizing: border-box;
110
+ width: min(420px, calc(100% - 8px));
111
+ margin: 4px 4px 0 0;
112
+ padding: 3px 4px;
113
+ align-self: flex-start;
114
+ flex: none;
115
+ flex-direction: column;
116
+ gap: 0;
117
+ color: var(--md-find-widget-foreground);
118
+ background: var(--md-find-widget-background);
119
+ border: 1px solid var(--md-find-widget-border);
120
+ border-radius: var(--vscode-cornerRadius-large, 8px);
121
+ box-shadow: 0 2px 8px var(--md-find-widget-shadow);
122
+ font: 13px/1.4 var(--vscode-font-family, system-ui, sans-serif);
123
+ pointer-events: auto;
124
+ }
125
+
126
+ .md-find-row {
127
+ display: flex;
128
+ min-width: 0;
129
+ align-items: center;
130
+ gap: 2px;
131
+ }
132
+
133
+ .md-find-input-shell {
134
+ display: flex;
135
+ box-sizing: border-box;
136
+ height: 26px;
137
+ min-width: 0;
138
+ flex: 1 1 auto;
139
+ align-items: center;
140
+ color: var(--md-find-input-foreground);
141
+ background: var(--md-find-input-background);
142
+ border: 1px solid var(--md-find-input-border);
143
+ border-radius: var(--vscode-cornerRadius-small, 2px);
144
+ }
145
+
146
+ .md-find-input-shell:focus-within {
147
+ border-color: var(--md-find-focus-border);
148
+ outline: 1px solid var(--md-find-focus-border);
149
+ outline-offset: -1px;
150
+ }
151
+
152
+ .md-find-input-shell.md-find-input-invalid {
153
+ border-color: var(--md-find-error-border);
154
+ outline-color: var(--md-find-error-border);
155
+ }
156
+
157
+ .md-find-input {
158
+ box-sizing: border-box;
159
+ width: 100%;
160
+ min-width: 48px;
161
+ height: 24px;
162
+ min-height: 24px;
163
+ max-height: 80px;
164
+ margin: 0;
165
+ padding: 2px 4px;
166
+ flex: 1 1 auto;
167
+ resize: none;
168
+ overflow: auto;
169
+ color: inherit;
170
+ caret-color: var(--md-find-input-caret);
171
+ background: transparent;
172
+ border: 0;
173
+ border-radius: inherit;
174
+ outline: 0;
175
+ font: inherit;
176
+ line-height: 20px;
177
+ }
178
+
179
+ .md-find-input:focus {
180
+ outline: 0;
181
+ }
182
+
183
+ .md-find-input::placeholder {
184
+ color: var(--md-find-placeholder-foreground);
185
+ opacity: 1;
186
+ }
187
+
188
+ .md-find-input[aria-invalid='true'] {
189
+ outline: 0;
190
+ }
191
+
192
+ .md-find-options {
193
+ display: flex;
194
+ flex: 0 0 auto;
195
+ align-items: center;
196
+ gap: 0;
197
+ padding-right: 1px;
198
+ }
199
+
200
+ .md-find-button {
201
+ display: inline-flex;
202
+ width: 24px;
203
+ height: 24px;
204
+ padding: 0;
205
+ align-items: center;
206
+ justify-content: center;
207
+ color: inherit;
208
+ background: transparent;
209
+ border: 1px solid transparent;
210
+ border-radius: var(--vscode-cornerRadius-small, 5px);
211
+ font: inherit;
212
+ flex: 0 0 24px;
213
+ cursor: pointer;
214
+ }
215
+
216
+ .md-find-button:hover:not(:disabled) {
217
+ background: var(--md-find-button-hover-background);
218
+ }
219
+
220
+ .md-find-button:focus-visible {
221
+ border-color: var(--md-find-focus-border);
222
+ outline: none;
223
+ }
224
+
225
+ .md-find-button:disabled {
226
+ color: var(--md-find-disabled-foreground);
227
+ cursor: default;
228
+ }
229
+
230
+ .md-find-option {
231
+ width: 24px;
232
+ font-size: 11px;
233
+ font-weight: 600;
234
+ letter-spacing: -0.04em;
235
+ }
236
+
237
+ .md-find-option-whole-word {
238
+ text-decoration: underline;
239
+ text-decoration-thickness: 1px;
240
+ text-underline-offset: 2px;
241
+ }
242
+
243
+ .md-find-option-active {
244
+ color: var(--md-find-option-foreground);
245
+ background: var(--md-find-option-background);
246
+ border-color: var(--md-find-option-border);
247
+ }
248
+
249
+ .md-find-option-active:hover:not(:disabled) {
250
+ background: var(--md-find-option-background);
251
+ }
252
+
253
+ .md-find-count {
254
+ min-width: 54px;
255
+ padding-inline: 2px;
256
+ color: var(--md-find-count-foreground, inherit);
257
+ font-variant-numeric: tabular-nums;
258
+ line-height: 22px;
259
+ text-align: center;
260
+ white-space: nowrap;
261
+ }
262
+
263
+ .md-find-error {
264
+ padding: 2px 6px 3px;
265
+ color: var(--md-find-error-foreground);
266
+ font-size: 12px;
267
+ overflow-wrap: anywhere;
268
+ }
269
+
270
+ .md-find-no-results .md-find-count {
271
+ color: var(--md-find-error-foreground);
272
+ }
273
+
274
+ .md-editor.md-find-widget-focused .md-cursor {
275
+ visibility: hidden;
276
+ animation: none;
277
+ }
278
+
279
+ .md-find-has-current-match .md-selection-path {
280
+ fill: transparent;
281
+ }
282
+
283
+ .md-editor.md-find-visible .md-readonly-toggle-host {
284
+ visibility: hidden;
285
+ pointer-events: none;
286
+ }
287
+
288
+ .md-find-compact .md-find-widget {
289
+ width: calc(100% - 4px);
290
+ margin-right: 2px;
291
+ }
292
+
293
+ .md-find-compact .md-find-row {
294
+ flex-wrap: wrap;
295
+ justify-content: flex-end;
296
+ }
297
+
298
+ .md-find-compact .md-find-input {
299
+ width: 100%;
300
+ min-width: 0;
301
+ flex: 1 1 100%;
302
+ }
303
+
304
+ .md-find-compact .md-find-count {
305
+ min-width: 40px;
306
+ margin-right: auto;
307
+ padding-inline: 0;
308
+ }
309
+
310
+ .md-find-compact .md-find-options {
311
+ display: none;
312
+ }
313
+
314
+ .md-find-compact .md-find-input-shell {
315
+ flex: 1 1 100%;
316
+ }
317
+
318
+ @media (forced-colors: active) {
319
+ ::highlight(md-editor-find-match),
320
+ ::highlight(md-editor-find-current) {
321
+ background-color: transparent;
322
+ }
323
+
324
+ .md-find-match-rect {
325
+ forced-color-adjust: none;
326
+ background: transparent;
327
+ outline: 1px solid Highlight;
328
+ }
329
+
330
+ .md-find-current-rect {
331
+ forced-color-adjust: none;
332
+ background: transparent;
333
+ opacity: 1;
334
+ outline: 2px solid Highlight;
335
+ }
336
+
337
+ .md-find-widget,
338
+ .md-find-input,
339
+ .md-find-button {
340
+ border-color: ButtonText;
341
+ }
342
+
343
+ .md-find-option-active {
344
+ color: HighlightText;
345
+ background: Highlight;
346
+ }
347
+ }