diff --git a/src/vs/editor/browser/widget/diffEditorWidget2/style.css b/src/vs/editor/browser/widget/diffEditorWidget2/style.css index 0e420e978b8..cc28c99cdb6 100644 --- a/src/vs/editor/browser/widget/diffEditorWidget2/style.css +++ b/src/vs/editor/browser/widget/diffEditorWidget2/style.css @@ -3,22 +3,22 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -.diff-hidden-lines-widget { +.monaco-editor .diff-hidden-lines-widget { width: 100%; } -.diff-hidden-lines { +.monaco-editor .diff-hidden-lines { height: 0px; /* The children each have a fixed height, the transform confuses the browser */ transform: translate(0px, -10px); font-size: 13px; line-height: 14px; } -.diff-hidden-lines:not(.dragging) .top:hover, .diff-hidden-lines:not(.dragging) .bottom:hover, .diff-hidden-lines .top.dragging, .diff-hidden-lines .bottom.dragging { +.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover, .diff-hidden-lines:not(.dragging) .bottom:hover, .diff-hidden-lines .top.dragging, .diff-hidden-lines .bottom.dragging { background-color: var(--vscode-focusBorder); } -.diff-hidden-lines .top, .diff-hidden-lines .bottom { +.monaco-editor .diff-hidden-lines .top, .diff-hidden-lines .bottom { transition: background-color 0.1s ease-out; height: 4px; background-color: transparent; @@ -28,19 +28,19 @@ cursor: ns-resize; } -.diff-hidden-lines .top { +.monaco-editor .diff-hidden-lines .top { transform: translate(0px, 4px); } -.diff-hidden-lines .bottom { +.monaco-editor .diff-hidden-lines .bottom { transform: translate(0px, -6px); } -.diff-unchanged-lines { +.monaco-editor .diff-unchanged-lines { background: var(--vscode-diffEditor-unchangedCodeBackground); } -.noModificationsOverlay { +.monaco-editor .noModificationsOverlay { z-index: 1; background: var(--vscode-editor-background); @@ -50,7 +50,7 @@ } -.diff-hidden-lines .center { +.monaco-editor .diff-hidden-lines .center { background: var(--vscode-diffEditor-unchangedRegionBackground); color: var(--vscode-diffEditor-unchangedRegionForeground); overflow: hidden; @@ -61,43 +61,43 @@ height: 24px; } -.diff-hidden-lines .center span.codicon { +.monaco-editor .diff-hidden-lines .center span.codicon { vertical-align: middle; } -.diff-hidden-lines .center a:hover .codicon { +.monaco-editor .diff-hidden-lines .center a:hover .codicon { cursor: pointer; color: var(--vscode-editorLink-activeForeground) !important; } -.movedOriginal { +.monaco-editor .movedOriginal { border: 2px solid var(--vscode-diffEditor-move-border); } -.movedModified { +.monaco-editor .movedModified { border: 2px solid var(--vscode-diffEditor-move-border); } -.moved-blocks-lines { +.monaco-editor .moved-blocks-lines { position: absolute; pointer-events: none; } -.moved-blocks-lines path { +.monaco-editor .moved-blocks-lines path { fill: none; stroke: var(--vscode-diffEditor-move-border); stroke-width: 2; } -.char-delete.diff-range-empty { +.monaco-editor .char-delete.diff-range-empty { margin-left: -1px; border-left: solid var(--vscode-diffEditor-removedTextBackground) 3px; } -.char-insert.diff-range-empty { +.monaco-editor .char-insert.diff-range-empty { border-left: solid var(--vscode-diffEditor-insertedTextBackground) 3px; } -.fold-unchanged { +.monaco-editor .fold-unchanged { cursor: pointer; }