@vscode/markdown-editor 0.0.2-12 → 0.0.2-13
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/index.d.ts +501 -21
- package/dist/index.js +3271 -1963
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.css +1 -0
- package/package.json +12 -3
- package/src/contrib/comments/commentInput.css +131 -0
- package/src/contrib/comments/comments.css +129 -0
- package/src/contrib/commentsVscode/vscodeCommentWidgetV2.css +166 -0
- package/src/view/editor.css +85 -3
- package/src/view/themes/vscode-default.css +337 -0
- package/src/view/themes/{vscode.css → vscode-github.css} +54 -46
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vscode-comments-light,.vscode-comments-dark{--vscode-cornerRadius-small: 4px;--vscode-cornerRadius-medium: 6px;--vscode-cornerRadius-large: 8px;--vscode-strokeThickness: 1px;--vscode-shadow-lg: 0 0 12px rgba(0, 0, 0, .14);--monaco-monospace-font: "SF Mono", Monaco, Menlo, Courier, monospace;font-family:var(--vscode-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);font-size:13px;color:var(--vscode-foreground);background:var(--vscode-editor-background)}.vscode-comments-light{--vscode-agentFeedbackEditorWidget-background: #eeeeee;--vscode-agentFeedbackEditorWidget-border: rgba(59, 59, 59, .35);--vscode-editorWidget-background: #f8f8f8;--vscode-editorWidget-border: rgba(59, 59, 59, .2);--vscode-widget-border: #e5e5e5;--vscode-foreground: #3b3b3b;--vscode-descriptionForeground: #3b3b3b;--vscode-list-hoverBackground: #f2f2f2;--vscode-list-activeSelectionBackground: #e8e8e8;--vscode-list-activeSelectionForeground: #000000;--vscode-toolbar-hoverBackground: rgba(184, 184, 184, .31);--vscode-charts-purple: #652d90;--vscode-input-background: #ffffff;--vscode-input-foreground: #3b3b3b;--vscode-input-placeholderForeground: #767676;--vscode-focusBorder: #005fb8;--vscode-editorGutter-modifiedBackground: #1b81a8;--vscode-button-background: #005fb8;--vscode-button-foreground: #ffffff;--vscode-button-hoverBackground: #0258a8;--vscode-button-border: rgba(0, 0, 0, .1);--vscode-button-secondaryBackground: #e5e5e5;--vscode-button-secondaryForeground: #3b3b3b;--vscode-button-secondaryHoverBackground: #cccccc;--vscode-editor-background: #ffffff;--vscode-editor-foreground: #3b3b3b}.vscode-comments-dark{--vscode-agentFeedbackEditorWidget-background: #222222;--vscode-agentFeedbackEditorWidget-border: rgba(204, 204, 204, .35);--vscode-editorWidget-background: #202020;--vscode-editorWidget-border: rgba(204, 204, 204, .2);--vscode-widget-border: #313131;--vscode-foreground: #cccccc;--vscode-descriptionForeground: #9d9d9d;--vscode-list-hoverBackground: #2a2d2e;--vscode-list-activeSelectionBackground: #04395e;--vscode-list-activeSelectionForeground: #ffffff;--vscode-toolbar-hoverBackground: rgba(90, 93, 94, .31);--vscode-charts-purple: #b180d7;--vscode-input-background: #313131;--vscode-input-foreground: #cccccc;--vscode-input-placeholderForeground: #989898;--vscode-focusBorder: #0078d4;--vscode-editorGutter-modifiedBackground: #1b81a8;--vscode-button-background: #0078d4;--vscode-button-foreground: #ffffff;--vscode-button-hoverBackground: #026ec1;--vscode-button-border: rgba(255, 255, 255, .1);--vscode-button-secondaryBackground: transparent;--vscode-button-secondaryForeground: #cccccc;--vscode-button-secondaryHoverBackground: #2b2b2b;--vscode-editor-background: #1f1f1f;--vscode-editor-foreground: #cccccc}.agent-feedback-widget .codicon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex:0 0 auto}.agent-feedback-widget .codicon svg{display:block;width:16px;height:16px}.agent-feedback-widget .monaco-action-bar .actions-container{display:flex;align-items:center;gap:2px;margin:0;padding:0;list-style:none}.agent-feedback-widget .monaco-action-bar .action-item{display:flex}.agent-feedback-widget .monaco-action-bar .action-label{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:var(--vscode-cornerRadius-small);color:var(--vscode-foreground);cursor:pointer;text-decoration:none}.agent-feedback-widget .monaco-action-bar .action-label:hover{background-color:var(--vscode-toolbar-hoverBackground)}.agent-feedback-widget{position:absolute;max-width:280px;min-width:180px;background-color:var(--vscode-agentFeedbackEditorWidget-background, var(--vscode-editorWidget-background));border:var(--vscode-strokeThickness) solid var(--vscode-agentFeedbackEditorWidget-border, var(--vscode-editorWidget-border, var(--vscode-contrastBorder)));border-radius:var(--vscode-cornerRadius-large);box-shadow:var(--vscode-shadow-lg);font-size:var(--vscode-agents-fontSize-label1);line-height:1.4;opacity:0;transition:opacity .2s ease-in-out;z-index:10}.hc-black .agent-feedback-widget,.hc-light .agent-feedback-widget{box-shadow:none}.agent-feedback-widget.visible{opacity:1}.agent-feedback-widget:focus{outline:none}.agent-feedback-widget.fadeOut{animation:agentFeedbackFadeOut .15s ease-out forwards}@keyframes agentFeedbackFadeOut{0%{opacity:1}to{opacity:0}}.agent-feedback-widget-arrow{position:absolute;left:-6px;top:11px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid var(--vscode-agentFeedbackEditorWidget-border, var(--vscode-editorWidget-border, var(--vscode-contrastBorder)));display:none}.agent-feedback-widget.collapsed .agent-feedback-widget-arrow{display:none}.agent-feedback-widget-arrow:after{content:"";position:absolute;left:2px;top:-5px;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid var(--vscode-agentFeedbackEditorWidget-background, var(--vscode-editorWidget-background))}.agent-feedback-widget-header{display:flex;align-items:center;padding:4px 4px 4px 8px;border-bottom:1px solid var(--vscode-editorWidget-border, var(--vscode-widget-border));border-radius:var(--vscode-cornerRadius-large) var(--vscode-cornerRadius-large) 0 0;overflow:hidden;cursor:pointer;gap:6px}.agent-feedback-widget.collapsed .agent-feedback-widget-header{border-bottom:none;border-radius:var(--vscode-cornerRadius-large)}.agent-feedback-widget-header:hover{background-color:var(--vscode-list-hoverBackground)}.agent-feedback-widget-title{font-weight:var(--vscode-agents-fontWeight-semiBold);line-height:16px;color:var(--vscode-foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.agent-feedback-widget-spacer{flex:1}.agent-feedback-widget-toggle{display:flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;border-radius:var(--vscode-cornerRadius-medium);cursor:pointer;color:var(--vscode-foreground);opacity:.7;transition:opacity .1s}.agent-feedback-widget-toggle:hover{opacity:1;background-color:var(--vscode-toolbar-hoverBackground)}.agent-feedback-widget-body{transition:max-height .2s ease-in-out,padding .2s ease-in-out;border-radius:0 0 var(--vscode-cornerRadius-large) var(--vscode-cornerRadius-large);overflow:hidden}.agent-feedback-widget-body.collapsed{max-height:0;overflow:hidden;padding:0}.agent-feedback-widget-item{display:flex;flex-direction:column;padding:4px 4px 8px 8px;border-bottom:1px solid var(--vscode-editorWidget-border, var(--vscode-widget-border));cursor:pointer;position:relative;gap:6px}.agent-feedback-widget-item:last-child{border-bottom:none}.agent-feedback-widget-item:hover{background-color:var(--vscode-list-hoverBackground)}.agent-feedback-widget-item.focused{background-color:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.agent-feedback-widget-item-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.agent-feedback-widget-item-meta{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}.agent-feedback-widget-item-actions{margin-left:auto;flex:0 0 auto;opacity:0;visibility:hidden;pointer-events:none}.agent-feedback-widget-item:hover .agent-feedback-widget-item-actions{opacity:1;visibility:visible;pointer-events:auto}.agent-feedback-widget-item-type{display:inline-flex;align-items:center;padding:2px 6px;border-radius:var(--vscode-cornerRadius-small);font-size:var(--vscode-agents-fontSize-label3);font-weight:var(--vscode-agents-fontWeight-semiBold);letter-spacing:.2px;background:color-mix(in srgb,var(--vscode-editorWidget-border, var(--vscode-widget-border)) 25%,transparent);color:var(--vscode-descriptionForeground)}.agent-feedback-widget-item-prReview .agent-feedback-widget-item-type,.agent-feedback-widget-item-agentFeedback .agent-feedback-widget-item-type{background:color-mix(in srgb,var(--vscode-charts-purple) 22%,var(--vscode-editorWidget-background));color:var(--vscode-charts-purple)}.agent-feedback-widget-line-info{font-size:var(--vscode-agents-fontSize-label3);font-weight:var(--vscode-agents-fontWeight-semiBold);color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px}.agent-feedback-widget-text{color:var(--vscode-foreground);word-wrap:break-word;user-select:text;-webkit-user-select:text;cursor:text}.agent-feedback-widget-text .rendered-markdown p{margin:0}.agent-feedback-widget-text .rendered-markdown code{font-family:var(--monaco-monospace-font);font-size:var(--vscode-agents-fontSize-label3);padding:1px 4px;border-radius:var(--vscode-cornerRadius-small);background:color-mix(in srgb,var(--vscode-editorWidget-border, var(--vscode-widget-border)) 25%,transparent)}.agent-feedback-widget-suggestion{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding:0 8px 4px 12px}.agent-feedback-widget-item-prReview .agent-feedback-widget-suggestion{border-left:1px solid color-mix(in srgb,var(--vscode-charts-purple) 50%,transparent)}.agent-feedback-widget-suggestion-header{font-size:var(--vscode-agents-fontSize-label3);font-weight:var(--vscode-agents-fontWeight-semiBold);text-transform:uppercase;letter-spacing:.4px;color:var(--vscode-descriptionForeground)}.agent-feedback-widget-suggestion-edit{display:flex;flex-direction:column;gap:4px}.agent-feedback-widget-suggestion-text{margin:0;padding:6px 8px;border-radius:var(--vscode-cornerRadius-small);overflow-x:auto;white-space:pre-wrap;font-family:var(--monaco-monospace-font);font-size:var(--vscode-agents-fontSize-label3);line-height:1.45;background:var(--vscode-editorWidget-background);user-select:text;-webkit-user-select:text;cursor:text}.agent-feedback-widget-range-glyph{margin-left:8px;z-index:5;border-left:2px solid var(--vscode-editorGutter-modifiedBackground)}.agent-feedback-widget-text.editing{padding:0 4px 0 0}.agent-feedback-widget-edit-textarea{width:100%;min-height:22px;padding:4px 6px;border:1px solid var(--vscode-focusBorder);border-radius:var(--vscode-cornerRadius-small);background:var(--vscode-input-background);color:var(--vscode-input-foreground);font:inherit;font-size:12px;line-height:1.4;resize:none;overflow:hidden;box-sizing:border-box}.agent-feedback-widget-edit-textarea:focus{outline:none;border-color:var(--vscode-focusBorder)}.agent-feedback-widget-replies{display:flex;flex-direction:column;gap:4px}.agent-feedback-widget-reply{padding-top:4px;border-top:1px dashed color-mix(in srgb,var(--vscode-editorWidget-border, var(--vscode-widget-border)) 60%,transparent)}.agent-feedback-widget-reply-text{color:var(--vscode-foreground);word-wrap:break-word;user-select:text;-webkit-user-select:text;cursor:text}.agent-feedback-widget-reply-text .rendered-markdown p{margin:0}.agent-feedback-widget-reply-text .rendered-markdown code{font-family:var(--monaco-monospace-font);font-size:var(--vscode-agents-fontSize-label3);padding:2px 4px;border-radius:var(--vscode-cornerRadius-small);background:color-mix(in srgb,var(--vscode-editorWidget-border, var(--vscode-widget-border)) 25%,transparent)}.agent-feedback-widget-add-reply{padding-top:4px;border-top:1px dashed color-mix(in srgb,var(--vscode-editorWidget-border, var(--vscode-widget-border)) 60%,transparent)}.agent-feedback-widget-add-reply .agent-feedback-widget-edit-textarea::placeholder{color:var(--vscode-input-placeholderForeground);opacity:1}.agent-feedback-widget-actions-bar{display:flex;gap:6px;margin-top:4px}.agent-feedback-widget-actions-bar .monaco-button{flex:1;padding:2px 10px;width:auto;font-size:var(--vscode-agents-fontSize-label2);line-height:18px}.vscode-comments-light{--vscode-icon-foreground: #616161;--vscode-textLink-foreground: #005fb8}.vscode-comments-dark{--vscode-icon-foreground: #cccccc;--vscode-textLink-foreground: #4daafc}.vscode-comment-widget-v2{box-sizing:border-box;width:320px;display:flex;flex-direction:column;gap:12px;padding:8px;background:var(--vscode-editorWidget-background, #202122);border:1px solid var(--vscode-editorHoverWidget-border, var(--vscode-editorWidget-border, #2a2b2c));border-radius:var(--vscode-cornerRadius-large, 8px);box-shadow:0 8px 8px #00000040;font-family:var(--vscode-font-family, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif)}.vscode-comment-widget-v2 *,.vscode-comment-widget-v2 *:before,.vscode-comment-widget-v2 *:after{box-sizing:border-box}.vscode-comment-widget-v2-header{display:flex;align-items:center;justify-content:space-between;width:100%}.vscode-comment-widget-v2-title-group{display:flex;align-items:center;gap:6px;flex:1 0 0;min-width:0}.vscode-comment-widget-v2-username{flex:1 0 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;line-height:normal;color:var(--vscode-foreground, #bfbfbf)}.vscode-comment-widget-v2-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.vscode-comment-widget-v2-action{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;margin:0;border:none;background:transparent;color:var(--vscode-icon-foreground, #8c8c8c);cursor:pointer}.vscode-comment-widget-v2-action:hover{color:var(--vscode-foreground, #bfbfbf)}.vscode-comment-widget-v2-action svg{display:block;width:16px;height:16px}.vscode-comment-widget-v2-body{display:flex;flex-direction:column;gap:6px;width:100%}.vscode-comment-widget-v2-text{margin:0;width:100%;font-size:13px;font-weight:400;line-height:normal;color:var(--vscode-foreground, #bfbfbf);opacity:.9;white-space:pre-wrap;word-break:break-word}.vscode-comment-widget-v2--collapsed .vscode-comment-widget-v2-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.vscode-comment-widget-v2-toggle{align-self:flex-start;padding:0;margin:0;border:none;background:none;cursor:pointer;text-align:left;font-family:inherit;font-size:12px;font-weight:400;line-height:normal;color:var(--vscode-textLink-foreground, #48a0c7)}.vscode-comment-widget-v2-toggle:hover{text-decoration:underline}.md-comment-shapes{position:absolute;top:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none}.md-comment-group{opacity:var(--md-comment-opacity, .16);transition:opacity .1s ease}.md-comment-group-hovered{opacity:var(--md-comment-opacity-hover, .3)}.md-comment-shape-path{fill:var(--md-comment-color, rgb(64, 120, 240));stroke:none}.md-comment-leader-path{fill:none;stroke:var(--md-comment-color, rgb(64, 120, 240));stroke-width:2;stroke-linecap:butt;stroke-linejoin:round}.md-comment-card{position:absolute;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;padding:12px 14px;background:var(--vscode-editorWidget-background, #fff);color:var(--vscode-editorWidget-foreground, #1f1f1f);border:1px solid var(--vscode-editorWidget-border, #e0e0e0);border-radius:8px;box-shadow:0 2px 8px #0000001a;font-family:var(--vscode-font-family, system-ui, sans-serif);font-size:13px;transition:box-shadow .1s ease,border-color .1s ease,top .12s ease}.md-comment-card-hovered{border-color:var(--md-comment-leader-hover, rgba(64, 120, 240, 1));box-shadow:0 3px 12px #00000029}.md-comment-card-header{display:flex;align-items:center;gap:8px}.md-comment-avatar{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--md-comment-avatar-bg, #d6e2fb);color:var(--md-comment-avatar-fg, #25408f);font-size:10px;font-weight:600;letter-spacing:.3px}.md-comment-author{font-weight:600}.md-comment-time{color:var(--vscode-descriptionForeground, #767676);font-size:12px}.md-comment-menu{margin-left:auto;color:var(--vscode-descriptionForeground, #767676);cursor:default;user-select:none}.md-comment-body{line-height:1.45;white-space:pre-wrap;word-break:break-word}.md-comment-reply{align-self:flex-start;margin:0;padding:0;border:none;background:transparent;color:var(--vscode-textLink-foreground, #2563c9);font:inherit;font-weight:600;cursor:pointer}.md-comment-reply:hover{text-decoration:underline}
|
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-13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -19,7 +19,11 @@
|
|
|
19
19
|
"src/view/editor.css",
|
|
20
20
|
"src/view/themes/default.css",
|
|
21
21
|
"src/view/themes/github.css",
|
|
22
|
-
"src/view/themes/vscode.css"
|
|
22
|
+
"src/view/themes/vscode-github.css",
|
|
23
|
+
"src/view/themes/vscode-default.css",
|
|
24
|
+
"src/contrib/comments/comments.css",
|
|
25
|
+
"src/contrib/comments/commentInput.css",
|
|
26
|
+
"src/contrib/commentsVscode/vscodeCommentWidgetV2.css"
|
|
23
27
|
],
|
|
24
28
|
"exports": {
|
|
25
29
|
".": {
|
|
@@ -33,7 +37,11 @@
|
|
|
33
37
|
"./editor.css": "./src/view/editor.css",
|
|
34
38
|
"./themes/default.css": "./src/view/themes/default.css",
|
|
35
39
|
"./themes/github.css": "./src/view/themes/github.css",
|
|
36
|
-
"./themes/vscode.css": "./src/view/themes/vscode.css"
|
|
40
|
+
"./themes/vscode-github.css": "./src/view/themes/vscode-github.css",
|
|
41
|
+
"./themes/vscode-default.css": "./src/view/themes/vscode-default.css",
|
|
42
|
+
"./comments.css": "./src/contrib/comments/comments.css",
|
|
43
|
+
"./commentInput.css": "./src/contrib/comments/commentInput.css",
|
|
44
|
+
"./vscodeCommentWidgetV2.css": "./src/contrib/commentsVscode/vscodeCommentWidgetV2.css"
|
|
37
45
|
},
|
|
38
46
|
"scripts": {
|
|
39
47
|
"build": "vite build",
|
|
@@ -45,6 +53,7 @@
|
|
|
45
53
|
"test:e2e": "playwright test"
|
|
46
54
|
},
|
|
47
55
|
"dependencies": {
|
|
56
|
+
"@vscode/diff": "0.0.2-0",
|
|
48
57
|
"katex": "^0.16.33",
|
|
49
58
|
"micromark": "^4.0.1",
|
|
50
59
|
"micromark-extension-gfm": "^3.0.0",
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Styling for the comment input box (CommentInputWidget). Mirrors VS Code's
|
|
3
|
+
* agent-feedback input widget (`.agent-feedback-input-widget` in
|
|
4
|
+
* agentFeedbackEditorInput.css): a soft rounded panel on the panel background,
|
|
5
|
+
* wrapping a *borderless* auto-growing textarea that blends into the panel, with
|
|
6
|
+
* a small "plus" action on the right. The whole box is the bubble — there is no
|
|
7
|
+
* separate inner input field. Uses --vscode-* variables so it matches the host
|
|
8
|
+
* theme, with neutral fallbacks for standalone fixtures.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
.md-comment-input {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
align-items: flex-end;
|
|
16
|
+
/*
|
|
17
|
+
* Hug the content: the bubble is as wide as its (auto-sized) textarea, up to
|
|
18
|
+
* the textarea's max-width, and no wider than the available space. In the
|
|
19
|
+
* editor the widget is `position: absolute` (already shrink-to-fit); this also
|
|
20
|
+
* makes it hug content when placed in normal flow (e.g. in fixtures).
|
|
21
|
+
*/
|
|
22
|
+
width: fit-content;
|
|
23
|
+
padding: 4px;
|
|
24
|
+
background-color: var(--vscode-panel-background, var(--vscode-editor-background, #fff));
|
|
25
|
+
color: var(--vscode-input-foreground, var(--vscode-foreground, #1f1f1f));
|
|
26
|
+
border: 1px solid var(--vscode-editorWidget-border, var(--vscode-contrastBorder, rgba(59, 59, 59, 0.2)));
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
box-shadow: 0 0 12px rgba(0, 0, 0, 0.14);
|
|
29
|
+
font-family: var(--vscode-font-family, system-ui, sans-serif);
|
|
30
|
+
font-size: 13px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.md-comment-input-textarea {
|
|
34
|
+
flex: 1 1 auto;
|
|
35
|
+
min-width: 150px;
|
|
36
|
+
max-width: 400px;
|
|
37
|
+
margin: 0;
|
|
38
|
+
padding: 0 0 0 6px;
|
|
39
|
+
border: none;
|
|
40
|
+
border-radius: 4px;
|
|
41
|
+
outline: none;
|
|
42
|
+
resize: none;
|
|
43
|
+
overflow-y: hidden;
|
|
44
|
+
max-height: 160px;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
background-color: var(--vscode-panel-background, var(--vscode-editor-background, #fff));
|
|
47
|
+
color: var(--vscode-input-foreground, inherit);
|
|
48
|
+
font: inherit;
|
|
49
|
+
line-height: 22px;
|
|
50
|
+
white-space: pre-wrap;
|
|
51
|
+
word-wrap: break-word;
|
|
52
|
+
/*
|
|
53
|
+
* The box lives inside `.md-editor`, which sets `caret-color: transparent`
|
|
54
|
+
* to hide the native caret (it paints its own). Restore a visible blinking
|
|
55
|
+
* caret here so the focused comment input shows one.
|
|
56
|
+
*/
|
|
57
|
+
caret-color: var(--vscode-editorCursor-foreground, currentColor);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.md-comment-input-textarea:focus {
|
|
61
|
+
border-color: var(--vscode-focusBorder, #0078d4);
|
|
62
|
+
outline: none !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.md-comment-input-textarea::placeholder {
|
|
66
|
+
color: var(--vscode-input-placeholderForeground, #767676);
|
|
67
|
+
opacity: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Hidden element used to measure text width for auto-growing (mirrors the
|
|
71
|
+
* reference''s `.agent-feedback-input-measure`). */
|
|
72
|
+
.md-comment-input-measure {
|
|
73
|
+
position: absolute;
|
|
74
|
+
visibility: hidden;
|
|
75
|
+
height: 0;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
white-space: pre;
|
|
78
|
+
font: inherit;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.md-comment-input-actions {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
/*
|
|
85
|
+
* Match the textarea's single line box (line-height) so the centered icon
|
|
86
|
+
* lines up with the text's vertical center. The panel is `align-items:
|
|
87
|
+
* flex-end`, so on a multi-line textarea this box stays pinned to the bottom
|
|
88
|
+
* line — mirroring the reference agent-feedback widget.
|
|
89
|
+
*/
|
|
90
|
+
height: 22px;
|
|
91
|
+
margin-left: 2px;
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.md-comment-input-submit {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
box-sizing: content-box;
|
|
100
|
+
/*
|
|
101
|
+
* 16px glyph inside a 22x22 hit-area (16 + 3px padding each side), matching
|
|
102
|
+
* the reference ActionBar action-label so the icon's spacing and hover target
|
|
103
|
+
* line up with the agent-feedback widget.
|
|
104
|
+
*/
|
|
105
|
+
width: 16px;
|
|
106
|
+
height: 16px;
|
|
107
|
+
padding: 3px;
|
|
108
|
+
border: none;
|
|
109
|
+
border-radius: 5px;
|
|
110
|
+
background: transparent;
|
|
111
|
+
color: var(--vscode-foreground, #1f1f1f);
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.md-comment-input-submit:hover:not(:disabled) {
|
|
116
|
+
background-color: var(--vscode-toolbar-hoverBackground, rgba(0, 0, 0, 0.08));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.md-comment-input-submit:disabled {
|
|
120
|
+
opacity: 0.5;
|
|
121
|
+
cursor: default;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/*
|
|
125
|
+
* While the comment box is shown, hide the editor''s painted caret (.md-cursor).
|
|
126
|
+
* Focus — and the blinking caret — belong to the comment input, not the
|
|
127
|
+
* document. The selection highlight stays visible (it shows what''s commented).
|
|
128
|
+
*/
|
|
129
|
+
.md-comment-active .md-cursor {
|
|
130
|
+
display: none;
|
|
131
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Persistent comments: range highlights, leader lines, and the side rail of
|
|
3
|
+
* comment cards (CommentsView). Uses --vscode-* variables with neutral
|
|
4
|
+
* fallbacks so it works in standalone fixtures too.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* --- Overlay layers ------------------------------------------------------ */
|
|
8
|
+
|
|
9
|
+
.md-comment-shapes {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
/* The tail extends past the content into the rail; never clip it. */
|
|
16
|
+
overflow: visible;
|
|
17
|
+
/* Never block the document; hover is driven from the cards. */
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Highlight fill and leader stroke share one solid color inside a single
|
|
22
|
+
* opacity group, so their overlap never darkens and the seam is invisible.
|
|
23
|
+
* The leader starts inside the highlight (hidden under the fill) and its bottom
|
|
24
|
+
* edge aligns with the selection bottom; the highlight's exit corner is squared
|
|
25
|
+
* (see buildConnectedPath) so there is no notch. */
|
|
26
|
+
.md-comment-group {
|
|
27
|
+
opacity: var(--md-comment-opacity, 0.16);
|
|
28
|
+
transition: opacity 0.1s ease;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.md-comment-group-hovered {
|
|
32
|
+
opacity: var(--md-comment-opacity-hover, 0.3);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.md-comment-shape-path {
|
|
36
|
+
fill: var(--md-comment-color, rgb(64, 120, 240));
|
|
37
|
+
stroke: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.md-comment-leader-path {
|
|
41
|
+
fill: none;
|
|
42
|
+
stroke: var(--md-comment-color, rgb(64, 120, 240));
|
|
43
|
+
stroke-width: 2;
|
|
44
|
+
stroke-linecap: butt;
|
|
45
|
+
stroke-linejoin: round;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* --- Cards (the right rail) ---------------------------------------------- */
|
|
49
|
+
|
|
50
|
+
.md-comment-card {
|
|
51
|
+
position: absolute;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
gap: 8px;
|
|
56
|
+
padding: 12px 14px;
|
|
57
|
+
background: var(--vscode-editorWidget-background, #fff);
|
|
58
|
+
color: var(--vscode-editorWidget-foreground, #1f1f1f);
|
|
59
|
+
border: 1px solid var(--vscode-editorWidget-border, #e0e0e0);
|
|
60
|
+
border-radius: 8px;
|
|
61
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
62
|
+
font-family: var(--vscode-font-family, system-ui, sans-serif);
|
|
63
|
+
font-size: 13px;
|
|
64
|
+
transition: box-shadow 0.1s ease, border-color 0.1s ease, top 0.12s ease;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.md-comment-card-hovered {
|
|
68
|
+
border-color: var(--md-comment-leader-hover, rgba(64, 120, 240, 1));
|
|
69
|
+
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.md-comment-card-header {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: 8px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.md-comment-avatar {
|
|
79
|
+
flex: 0 0 auto;
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
width: 24px;
|
|
84
|
+
height: 24px;
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
background: var(--md-comment-avatar-bg, #d6e2fb);
|
|
87
|
+
color: var(--md-comment-avatar-fg, #25408f);
|
|
88
|
+
font-size: 10px;
|
|
89
|
+
font-weight: 600;
|
|
90
|
+
letter-spacing: 0.3px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.md-comment-author {
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.md-comment-time {
|
|
98
|
+
color: var(--vscode-descriptionForeground, #767676);
|
|
99
|
+
font-size: 12px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.md-comment-menu {
|
|
103
|
+
margin-left: auto;
|
|
104
|
+
color: var(--vscode-descriptionForeground, #767676);
|
|
105
|
+
cursor: default;
|
|
106
|
+
user-select: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.md-comment-body {
|
|
110
|
+
line-height: 1.45;
|
|
111
|
+
white-space: pre-wrap;
|
|
112
|
+
word-break: break-word;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.md-comment-reply {
|
|
116
|
+
align-self: flex-start;
|
|
117
|
+
margin: 0;
|
|
118
|
+
padding: 0;
|
|
119
|
+
border: none;
|
|
120
|
+
background: transparent;
|
|
121
|
+
color: var(--vscode-textLink-foreground, #2563c9);
|
|
122
|
+
font: inherit;
|
|
123
|
+
font-weight: 600;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.md-comment-reply:hover {
|
|
128
|
+
text-decoration: underline;
|
|
129
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Styling for VsCodeCommentWidgetV2 — a replica of the Figma "Markdown comment"
|
|
8
|
+
* frames. It is theme-aware: every colour is driven by a VS Code `--vscode-*`
|
|
9
|
+
* design token, with the original Figma dark values kept only as literal
|
|
10
|
+
* fallbacks (so the card still renders when no theme provider is present). Wrap
|
|
11
|
+
* the widget in `.vscode-comments-light` / `.vscode-comments-dark` (from
|
|
12
|
+
* vscodeCommentTokens.css) to supply those tokens.
|
|
13
|
+
*
|
|
14
|
+
* Figma token -> VS Code token (fallback)
|
|
15
|
+
* editorWidget/background --vscode-editorWidget-background (#202122)
|
|
16
|
+
* editorHoverWidget/border --vscode-editorHoverWidget-border (#2a2b2c)
|
|
17
|
+
* foreground --vscode-foreground (#bfbfbf)
|
|
18
|
+
* icon/foreground --vscode-icon-foreground (#8c8c8c)
|
|
19
|
+
* textLink/foreground --vscode-textLink-foreground (#48a0c7)
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/* Supplemental tokens not provided by vscodeCommentTokens.css. */
|
|
23
|
+
.vscode-comments-light {
|
|
24
|
+
--vscode-icon-foreground: #616161;
|
|
25
|
+
--vscode-textLink-foreground: #005fb8;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.vscode-comments-dark {
|
|
29
|
+
--vscode-icon-foreground: #cccccc;
|
|
30
|
+
--vscode-textLink-foreground: #4daafc;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.vscode-comment-widget-v2 {
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
width: 320px;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
gap: 12px;
|
|
39
|
+
padding: 8px;
|
|
40
|
+
/* size80 */
|
|
41
|
+
background: var(--vscode-editorWidget-background, #202122);
|
|
42
|
+
border: 1px solid var(--vscode-editorHoverWidget-border, var(--vscode-editorWidget-border, #2a2b2c));
|
|
43
|
+
border-radius: var(--vscode-cornerRadius-large, 8px);
|
|
44
|
+
/* Outer radius */
|
|
45
|
+
box-shadow: 0 8px 8px rgba(0, 0, 0, 0.25);
|
|
46
|
+
font-family: var(--vscode-font-family, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.vscode-comment-widget-v2 *,
|
|
50
|
+
.vscode-comment-widget-v2 *::before,
|
|
51
|
+
.vscode-comment-widget-v2 *::after {
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Header row: username on the left, edit/trash actions on the right. */
|
|
56
|
+
.vscode-comment-widget-v2-header {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.vscode-comment-widget-v2-title-group {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
gap: 6px;
|
|
67
|
+
/* size60 */
|
|
68
|
+
flex: 1 0 0;
|
|
69
|
+
min-width: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.vscode-comment-widget-v2-username {
|
|
73
|
+
flex: 1 0 0;
|
|
74
|
+
min-width: 0;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
text-overflow: ellipsis;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
/* Font ramp/Heading 3: SF Pro Text Semibold 13 */
|
|
79
|
+
font-size: 13px;
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
line-height: normal;
|
|
82
|
+
color: var(--vscode-foreground, #bfbfbf);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.vscode-comment-widget-v2-actions {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
gap: 4px;
|
|
89
|
+
/* size40 */
|
|
90
|
+
flex-shrink: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.vscode-comment-widget-v2-action {
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
width: 16px;
|
|
98
|
+
height: 16px;
|
|
99
|
+
padding: 0;
|
|
100
|
+
margin: 0;
|
|
101
|
+
border: none;
|
|
102
|
+
background: transparent;
|
|
103
|
+
color: var(--vscode-icon-foreground, #8c8c8c);
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.vscode-comment-widget-v2-action:hover {
|
|
108
|
+
color: var(--vscode-foreground, #bfbfbf);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.vscode-comment-widget-v2-action svg {
|
|
112
|
+
display: block;
|
|
113
|
+
width: 16px;
|
|
114
|
+
height: 16px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Body: comment text + optional "See more" / "See less" toggle. */
|
|
118
|
+
.vscode-comment-widget-v2-body {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
gap: 6px;
|
|
122
|
+
/* size60 */
|
|
123
|
+
width: 100%;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.vscode-comment-widget-v2-text {
|
|
127
|
+
margin: 0;
|
|
128
|
+
width: 100%;
|
|
129
|
+
/* Font ramp/Body 1: SF Pro Text Regular 13 */
|
|
130
|
+
font-size: 13px;
|
|
131
|
+
font-weight: 400;
|
|
132
|
+
line-height: normal;
|
|
133
|
+
color: var(--vscode-foreground, #bfbfbf);
|
|
134
|
+
opacity: 0.9;
|
|
135
|
+
white-space: pre-wrap;
|
|
136
|
+
word-break: break-word;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/* Collapsed bodies clamp to three lines (matches the Figma "See more" frame). */
|
|
140
|
+
.vscode-comment-widget-v2--collapsed .vscode-comment-widget-v2-text {
|
|
141
|
+
display: -webkit-box;
|
|
142
|
+
-webkit-box-orient: vertical;
|
|
143
|
+
-webkit-line-clamp: 3;
|
|
144
|
+
line-clamp: 3;
|
|
145
|
+
overflow: hidden;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.vscode-comment-widget-v2-toggle {
|
|
149
|
+
align-self: flex-start;
|
|
150
|
+
padding: 0;
|
|
151
|
+
margin: 0;
|
|
152
|
+
border: none;
|
|
153
|
+
background: none;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
text-align: left;
|
|
156
|
+
/* Font ramp/Label 1: SF Pro Text Regular 12 */
|
|
157
|
+
font-family: inherit;
|
|
158
|
+
font-size: 12px;
|
|
159
|
+
font-weight: 400;
|
|
160
|
+
line-height: normal;
|
|
161
|
+
color: var(--vscode-textLink-foreground, #48a0c7);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.vscode-comment-widget-v2-toggle:hover {
|
|
165
|
+
text-decoration: underline;
|
|
166
|
+
}
|
package/src/view/editor.css
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* theme-agnostic and know nothing about VS Code. Where a value needs to vary
|
|
18
18
|
* per theme, expose a local `--md-*` custom property WITH a sensible literal
|
|
19
19
|
* fallback (e.g. `var(--md-cursor-background, #000)`) and let a theme file set
|
|
20
|
-
* it. Only `themes/vscode
|
|
21
|
-
* map them onto these `--md-*` properties.
|
|
20
|
+
* it. Only the `themes/vscode-*.css` themes are permitted to read `--vscode-*`
|
|
21
|
+
* variables and map them onto these `--md-*` properties.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
.md-editor {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
.md-editor-content {
|
|
48
48
|
position: relative;
|
|
49
49
|
margin-inline: auto;
|
|
50
|
-
padding: 48px;
|
|
50
|
+
padding: 0 48px;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.md-block-active {
|
|
@@ -641,4 +641,86 @@
|
|
|
641
641
|
50% {
|
|
642
642
|
opacity: 0;
|
|
643
643
|
}
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
/*
|
|
647
|
+
* Edit / read-only lock toggle.
|
|
648
|
+
*
|
|
649
|
+
* The host is a zero-height sticky strip pinned to the top of the scroll
|
|
650
|
+
* viewport, so the lock stays in the top-right corner as the document scrolls.
|
|
651
|
+
* Being height-0 it never participates in the document's vertical flow. Colors
|
|
652
|
+
* use local `--md-readonly-*` custom properties with literal fallbacks so this
|
|
653
|
+
* base file stays theme-agnostic (themes may override them).
|
|
654
|
+
*/
|
|
655
|
+
.md-readonly-toggle-host {
|
|
656
|
+
position: sticky;
|
|
657
|
+
top: 0;
|
|
658
|
+
height: 0;
|
|
659
|
+
z-index: 10;
|
|
660
|
+
pointer-events: none;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.md-readonly-toggle {
|
|
664
|
+
position: absolute;
|
|
665
|
+
top: 8px;
|
|
666
|
+
right: 8px;
|
|
667
|
+
pointer-events: auto;
|
|
668
|
+
display: inline-flex;
|
|
669
|
+
align-items: center;
|
|
670
|
+
gap: 5px;
|
|
671
|
+
height: 26px;
|
|
672
|
+
padding: 0 10px;
|
|
673
|
+
border-radius: 13px;
|
|
674
|
+
border: 1px solid var(--md-readonly-border, #d4d4d4);
|
|
675
|
+
background: var(--md-readonly-background, #ffffff);
|
|
676
|
+
color: var(--md-readonly-foreground, #444);
|
|
677
|
+
font: 600 11px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
678
|
+
letter-spacing: 0.02em;
|
|
679
|
+
cursor: pointer;
|
|
680
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
|
|
681
|
+
transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.md-readonly-toggle:hover {
|
|
685
|
+
border-color: var(--md-readonly-border-hover, #b8b8b8);
|
|
686
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.md-readonly-toggle:focus-visible {
|
|
690
|
+
outline: 2px solid var(--md-readonly-accent, #4c8bf5);
|
|
691
|
+
outline-offset: 1px;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.md-readonly-toggle .md-readonly-toggle-icon {
|
|
695
|
+
display: inline-flex;
|
|
696
|
+
align-items: center;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.md-readonly-toggle .md-readonly-toggle-label {
|
|
700
|
+
white-space: nowrap;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/* Show the open padlock while editing, the closed one while locked. */
|
|
704
|
+
.md-readonly-toggle .md-readonly-toggle-icon-locked {
|
|
705
|
+
display: none;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.md-readonly-toggle.md-readonly-toggle-locked .md-readonly-toggle-icon-unlocked {
|
|
709
|
+
display: none;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.md-readonly-toggle.md-readonly-toggle-locked .md-readonly-toggle-icon-locked {
|
|
713
|
+
display: inline-flex;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/* Locked (read-only) state: filled accent so the engaged lock reads clearly. */
|
|
717
|
+
.md-readonly-toggle.md-readonly-toggle-locked {
|
|
718
|
+
border-color: var(--md-readonly-accent, #4c8bf5);
|
|
719
|
+
background: var(--md-readonly-accent, #4c8bf5);
|
|
720
|
+
color: var(--md-readonly-accent-foreground, #ffffff);
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.md-readonly-toggle.md-readonly-toggle-locked:hover {
|
|
724
|
+
border-color: var(--md-readonly-accent-hover, #3a73d4);
|
|
725
|
+
background: var(--md-readonly-accent-hover, #3a73d4);
|
|
644
726
|
}
|