UNPKG

monaco-editor

Version:
1,748 lines (1,496 loc) • 369 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-aria-container { position: absolute; /* try to hide from window but not from screen readers */ left:-999em; }/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /* -------------------- IE10 remove auto clear button -------------------- */ ::-ms-clear { display: none; } /* All widgets */ /* I am not a big fan of this rule */ .monaco-editor .editor-widget input { color: inherit; } /* -------------------- Editor -------------------- */ .monaco-editor { position: relative; overflow: visible; -webkit-text-size-adjust: 100%; color: var(--vscode-editor-foreground); background-color: var(--vscode-editor-background); overflow-wrap: initial; } .monaco-editor-background { background-color: var(--vscode-editor-background); } .monaco-editor .rangeHighlight { background-color: var(--vscode-editor-rangeHighlightBackground); box-sizing: border-box; border: 1px solid var(--vscode-editor-rangeHighlightBorder); } .monaco-editor.hc-black .rangeHighlight, .monaco-editor.hc-light .rangeHighlight { border-style: dotted; } .monaco-editor .symbolHighlight { background-color: var(--vscode-editor-symbolHighlightBackground); box-sizing: border-box; border: 1px solid var(--vscode-editor-symbolHighlightBorder); } .monaco-editor.hc-black .symbolHighlight, .monaco-editor.hc-light .symbolHighlight { border-style: dotted; } .monaco-editor .editorCanvas { position: absolute; width: 100%; height: 100%; z-index: 0; pointer-events: none; } /* -------------------- Misc -------------------- */ .monaco-editor .overflow-guard { position: relative; overflow: hidden; } .monaco-editor .view-overlays { position: absolute; top: 0; } .monaco-editor .view-overlays > div, .monaco-editor .margin-view-overlays > div { position: absolute; width: 100%; } /* .monaco-editor .auto-closed-character { opacity: 0.3; } */ .monaco-editor .squiggly-error { border-bottom: 4px double var(--vscode-editorError-border); } .monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: var(--vscode-editorError-background); } .monaco-editor .squiggly-warning { border-bottom: 4px double var(--vscode-editorWarning-border); } .monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: var(--vscode-editorWarning-background); } .monaco-editor .squiggly-info { border-bottom: 4px double var(--vscode-editorInfo-border); } .monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: var(--vscode-editorInfo-background); } .monaco-editor .squiggly-hint { border-bottom: 2px dotted var(--vscode-editorHint-border); } .monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed var(--vscode-editorUnnecessaryCode-border); } .monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: var(--vscode-editor-foreground, inherit); } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /* Arrows */ .monaco-scrollable-element > .scrollbar > .scra { cursor: pointer; font-size: 11px !important; } .monaco-scrollable-element > .visible { opacity: 1; /* Background rule added for IE9 - to allow clicks on dom node */ background:rgba(0,0,0,0); transition: opacity 100ms linear; /* In front of peek view */ z-index: 11; } .monaco-scrollable-element > .invisible { opacity: 0; pointer-events: none; } .monaco-scrollable-element > .invisible.fade { transition: opacity 800ms linear; } /* Scrollable Content Inset Shadow */ .monaco-scrollable-element > .shadow { position: absolute; display: none; } .monaco-scrollable-element > .shadow.top { display: block; top: 0; left: 3px; height: 3px; width: 100%; box-shadow: var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset; } .monaco-scrollable-element > .shadow.left { display: block; top: 3px; left: 0; height: 100%; width: 3px; box-shadow: var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset; } .monaco-scrollable-element > .shadow.top-left-corner { display: block; top: 0; left: 0; height: 3px; width: 3px; } .monaco-scrollable-element > .shadow.top.left { box-shadow: var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset; } .monaco-scrollable-element > .scrollbar { background: var(--vscode-scrollbar-background); } .monaco-scrollable-element > .scrollbar > .slider { background: var(--vscode-scrollbarSlider-background); } .monaco-scrollable-element > .scrollbar > .slider:hover { background: var(--vscode-scrollbarSlider-hoverBackground); } .monaco-scrollable-element > .scrollbar > .slider.active { background: var(--vscode-scrollbarSlider-activeBackground); } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .blockDecorations-container { position: absolute; top: 0; pointer-events: none; } .monaco-editor .blockDecorations-block { position: absolute; box-sizing: border-box; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .view-overlays .current-line { display: block; position: absolute; left: 0; top: 0; box-sizing: border-box; height: 100%; } .monaco-editor .margin-view-overlays .current-line { display: block; position: absolute; left: 0; top: 0; box-sizing: border-box; height: 100%; } .monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both { border-right: 0; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /* Keeping name short for faster parsing. cdr = core decorations rendering (div) */ .monaco-editor .lines-content .cdr { position: absolute; height: 100%; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .glyph-margin { position: absolute; top: 0; } /* Keeping name short for faster parsing. cgmr = core glyph margin rendering (div) */ .monaco-editor .glyph-margin-widgets .cgmr { position: absolute; display: flex; align-items: center; justify-content: center; } /* Ensure spinning icons are pixel-perfectly centered and avoid wobble. This is only applied to icons that spin to avoid unnecessary GPU layers and blurry subpixel AA. */ .monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin::before { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .lines-content .core-guide { position: absolute; box-sizing: border-box; height: 100%; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .margin-view-overlays .line-numbers { bottom: 0; font-variant-numeric: tabular-nums; position: absolute; text-align: right; display: inline-block; vertical-align: middle; box-sizing: border-box; cursor: default; } .monaco-editor .relative-current-line-number { text-align: left; display: inline-block; width: 100%; } .monaco-editor .margin-view-overlays .line-numbers.lh-odd { margin-top: 1px; } .monaco-editor .line-numbers { color: var(--vscode-editorLineNumber-foreground); } .monaco-editor .line-numbers.active-line-number { color: var(--vscode-editorLineNumber-activeForeground); } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-mouse-cursor-text { cursor: text; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /* Uncomment to see lines flashing when they're painted */ /*.monaco-editor .view-lines > .view-line { background-color: none; animation-name: flash-background; animation-duration: 800ms; } @keyframes flash-background { 0% { background-color: lightgreen; } 100% { background-color: none } }*/ .mtkcontrol { color: rgb(255, 255, 255) !important; background: rgb(150, 0, 0) !important; } .mtkoverflow { background-color: var(--vscode-button-background, var(--vscode-editor-background)); color: var(--vscode-button-foreground, var(--vscode-editor-foreground)); border-width: 1px; border-style: solid; border-color: var(--vscode-contrastBorder); border-radius: 2px; padding: 4px; cursor: pointer; } .mtkoverflow:hover { background-color: var(--vscode-button-hoverBackground); } .monaco-editor.no-user-select .lines-content, .monaco-editor.no-user-select .view-line, .monaco-editor.no-user-select .view-lines { user-select: none; -webkit-user-select: none; } /* Use user-select: text for lookup feature on macOS */ /* https://github.com/microsoft/vscode/issues/85632 */ .monaco-editor.mac .lines-content:hover, .monaco-editor.mac .view-line:hover, .monaco-editor.mac .view-lines:hover { user-select: text; -webkit-user-select: text; -ms-user-select: text; } .monaco-editor.enable-user-select { user-select: initial; -webkit-user-select: initial; } .monaco-editor .view-lines { white-space: nowrap; } .monaco-editor .view-line { box-sizing: border-box; position: absolute; width: 100%; } /* There are view-lines in view-zones. We have to make sure this rule does not apply to them, as they don't set a line height */ .monaco-editor .lines-content > .view-lines > .view-line > span { top: 0; bottom: 0; position: absolute; } .monaco-editor .mtkw { color: var(--vscode-editorWhitespace-foreground) !important; } .monaco-editor .mtkz { display: inline-block; color: var(--vscode-editorWhitespace-foreground) !important; } /* TODO@tokenization bootstrap fix */ /*.monaco-editor .view-line > span > span { float: none; min-height: inherit; margin-left: inherit; }*/ /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .lines-decorations { position: absolute; top: 0; background: white; } /* Keeping name short for faster parsing. cldr = core lines decorations rendering (div) */ .monaco-editor .margin-view-overlays .cldr { position: absolute; height: 100%; }/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .margin { background-color: var(--vscode-editorGutter-background); } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /* Keeping name short for faster parsing. cmdr = core margin decorations rendering (div) */ .monaco-editor .margin-view-overlays .cmdr { position: absolute; left: 0; width: 100%; height: 100%; }/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /* START cover the case that slider is visible on mouseover */ .monaco-editor .minimap.slider-mouseover .minimap-slider { opacity: 0; transition: opacity 100ms linear; } .monaco-editor .minimap.slider-mouseover:hover .minimap-slider { opacity: 1; } .monaco-editor .minimap.slider-mouseover .minimap-slider.active { opacity: 1; } /* END cover the case that slider is visible on mouseover */ .monaco-editor .minimap-slider .minimap-slider-horizontal { background: var(--vscode-minimapSlider-background); } .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: var(--vscode-minimapSlider-hoverBackground); } .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: var(--vscode-minimapSlider-activeBackground); } .monaco-editor .minimap-shadow-visible { box-shadow: var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset; } .monaco-editor .minimap-shadow-hidden { position: absolute; width: 0; } .monaco-editor .minimap-shadow-visible { position: absolute; left: -6px; width: 6px; pointer-events: none; } .monaco-editor.no-minimap-shadow .minimap-shadow-visible { position: absolute; left: -1px; width: 1px; } /* 0.5s fade in/out for the minimap */ .minimap.minimap-autohide-mouseover, .minimap.minimap-autohide-scroll { opacity: 0; transition: opacity 0.5s; } .minimap.minimap-autohide-scroll{ pointer-events: none; } .minimap.minimap-autohide-mouseover:hover, .minimap.minimap-autohide-scroll.active { opacity: 1; pointer-events: auto; } .monaco-editor .minimap { z-index: 5; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .overlayWidgets { position: absolute; top: 0; left:0; }/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .view-ruler { position: absolute; top: 0; box-shadow: 1px 0 0 0 var(--vscode-editorRuler-foreground) inset; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .scroll-decoration { position: absolute; top: 0; left: 0; height: 6px; box-shadow: var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /* Keeping name short for faster parsing. cslr = core selections layer rendering (div) */ .monaco-editor .lines-content .cslr { position: absolute; } .monaco-editor .focused .selected-text { background-color: var(--vscode-editor-selectionBackground); } .monaco-editor .selected-text { background-color: var(--vscode-editor-inactiveSelectionBackground); } .monaco-editor .top-left-radius { border-top-left-radius: 3px; } .monaco-editor .bottom-left-radius { border-bottom-left-radius: 3px; } .monaco-editor .top-right-radius { border-top-right-radius: 3px; } .monaco-editor .bottom-right-radius { border-bottom-right-radius: 3px; } .monaco-editor.hc-black .top-left-radius { border-top-left-radius: 0; } .monaco-editor.hc-black .bottom-left-radius { border-bottom-left-radius: 0; } .monaco-editor.hc-black .top-right-radius { border-top-right-radius: 0; } .monaco-editor.hc-black .bottom-right-radius { border-bottom-right-radius: 0; } .monaco-editor.hc-light .top-left-radius { border-top-left-radius: 0; } .monaco-editor.hc-light .bottom-left-radius { border-bottom-left-radius: 0; } .monaco-editor.hc-light .top-right-radius { border-top-right-radius: 0; } .monaco-editor.hc-light .bottom-right-radius { border-bottom-right-radius: 0; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .cursors-layer { position: absolute; top: 0; } .monaco-editor .cursors-layer > .cursor { position: absolute; overflow: hidden; box-sizing: border-box; } /* -- smooth-caret-animation -- */ .monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor { transition: all 80ms; } /* -- block-outline-style -- */ .monaco-editor .cursors-layer.cursor-block-outline-style > .cursor { background: transparent !important; border-style: solid; border-width: 1px; } /* -- underline-style -- */ .monaco-editor .cursors-layer.cursor-underline-style > .cursor { border-bottom-width: 2px; border-bottom-style: solid; background: transparent !important; } /* -- underline-thin-style -- */ .monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor { border-bottom-width: 1px; border-bottom-style: solid; background: transparent !important; } @keyframes monaco-cursor-smooth { 0%, 20% { opacity: 1; } 60%, 100% { opacity: 0; } } @keyframes monaco-cursor-phase { 0%, 20% { opacity: 1; } 90%, 100% { opacity: 0; } } @keyframes monaco-cursor-expand { 0%, 20% { transform: scaleY(1); } 80%, 100% { transform: scaleY(0); } } .cursor-smooth { animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate; } .cursor-phase { animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate; } .cursor-expand > .cursor { animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .mwh { position: absolute; color: var(--vscode-editorWhitespace-foreground) !important; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .monaco-decoration-css-rule-extractor { visibility: hidden; pointer-events: none; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .inputarea { min-width: 0; min-height: 0; margin: 0; padding: 0; position: absolute; outline: none !important; resize: none; border: none; overflow: hidden; color: transparent; background-color: transparent; z-index: -10; } /*.monaco-editor .inputarea { position: fixed !important; width: 800px !important; height: 500px !important; top: initial !important; left: initial !important; bottom: 0 !important; right: 0 !important; color: black !important; background: white !important; line-height: 15px !important; font-size: 14px !important; z-index: 10 !important; }*/ .monaco-editor .inputarea.ime-input { z-index: 10; caret-color: var(--vscode-editorCursor-foreground); color: var(--vscode-editor-foreground); } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .native-edit-context { margin: 0; padding: 0; position: absolute; overflow-y: scroll; scrollbar-width: none; z-index: -10; white-space: pre-wrap; } .monaco-editor .ime-text-area { min-width: 0; min-height: 0; margin: 0; padding: 0; position: absolute; outline: none !important; resize: none; border: none; overflow: hidden; color: transparent; background-color: transparent; z-index: -10; } .monaco-editor .edit-context-composition-none { background-color: transparent; border-bottom: none; } .monaco-editor :not(.hc-black, .hc-light) .edit-context-composition-secondary { border-bottom: 1px solid var(--vscode-editor-compositionBorder); } .monaco-editor :not(.hc-black, .hc-light) .edit-context-composition-primary { border-bottom: 2px solid var(--vscode-editor-compositionBorder); } .monaco-editor :is(.hc-black, .hc-light) .edit-context-composition-secondary { border: 1px solid var(--vscode-editor-compositionBorder); } .monaco-editor :is(.hc-black, .hc-light) .edit-context-composition-primary { border: 2px solid var(--vscode-editor-compositionBorder); } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .margin-view-overlays .gpu-mark { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; display: inline-block; border-left: solid 2px var(--vscode-editorWarning-foreground); opacity: 0.2; transition: background-color 0.1s linear; } .monaco-editor .margin-view-overlays .gpu-mark:hover { background-color: var(--vscode-editorWarning-foreground) } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-select-box { width: 100%; cursor: pointer; border-radius: 2px; } .monaco-select-box-dropdown-container { font-size: 13px; font-weight: normal; text-transform: none; } /** Actions */ .monaco-action-bar .action-item.select-container { cursor: default; } .monaco-action-bar .action-item .monaco-select-box { cursor: pointer; min-width: 100px; min-height: 18px; padding: 2px 23px 2px 8px; } .mac .monaco-action-bar .action-item .monaco-select-box { font-size: 11px; border-radius: 3px; min-height: 24px; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-list { position: relative; height: 100%; width: 100%; white-space: nowrap; } .monaco-list.mouse-support { user-select: none; -webkit-user-select: none; } .monaco-list > .monaco-scrollable-element { height: 100%; } .monaco-list-rows { position: relative; width: 100%; height: 100%; } .monaco-list.horizontal-scrolling .monaco-list-rows { width: auto; min-width: 100%; } .monaco-list-row { position: absolute; box-sizing: border-box; overflow: hidden; width: 100%; } .monaco-list.mouse-support .monaco-list-row { cursor: pointer; touch-action: none; } /* Make sure the scrollbar renders above overlays (sticky scroll) */ .monaco-list .monaco-scrollable-element > .scrollbar.vertical, .monaco-pane-view > .monaco-split-view2.vertical > .monaco-scrollable-element > .scrollbar.vertical { z-index: 14; } /* for OS X ballistic scrolling */ .monaco-list-row.scrolling { display: none !important; } /* Focus */ .monaco-list.element-focused, .monaco-list.selection-single, .monaco-list.selection-multiple { outline: 0 !important; } /* Filter */ .monaco-list-type-filter-message { position: absolute; box-sizing: border-box; width: 100%; height: 100%; top: 0; left: 0; padding: 40px 1em 1em 1em; text-align: center; white-space: normal; opacity: 0.7; pointer-events: none; } .monaco-list-type-filter-message:empty { display: none; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-drag-image { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; position: absolute; z-index: 1000; /* Default styles */ background-color: var(--vscode-list-activeSelectionBackground); color: var(--vscode-list-activeSelectionForeground); outline: 1px solid var(--vscode-list-focusOutline); outline-offset: -1px; /* * Browsers apply an effect to the drag image when the div becomes too * large which makes them unreadable. Use max width so it does not happen */ max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /* Use custom CSS vars to expose padding into parent select for padding calculation */ .monaco-select-box-dropdown-padding { --dropdown-padding-top: 1px; --dropdown-padding-bottom: 1px; } .hc-black .monaco-select-box-dropdown-padding, .hc-light .monaco-select-box-dropdown-padding { --dropdown-padding-top: 3px; --dropdown-padding-bottom: 4px; } .monaco-select-box-dropdown-container { display: none; box-sizing: border-box; } .monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown * { margin: 0; } .monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown a:focus { outline: 1px solid -webkit-focus-ring-color; outline-offset: -1px; } .monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown code { line-height: 15px; /** For some reason, this is needed, otherwise <code> will take up 20px height */ font-family: var(--monaco-monospace-font); } .monaco-select-box-dropdown-container.visible { display: flex; flex-direction: column; text-align: left; width: 1px; overflow: hidden; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } .monaco-select-box-dropdown-container > .select-box-dropdown-list-container { flex: 0 0 auto; align-self: flex-start; padding-top: var(--dropdown-padding-top); padding-bottom: var(--dropdown-padding-bottom); padding-left: 1px; padding-right: 1px; width: 100%; overflow: hidden; box-sizing: border-box; } .monaco-select-box-dropdown-container > .select-box-details-pane { padding: 5px; } .hc-black .monaco-select-box-dropdown-container > .select-box-dropdown-list-container { padding-top: var(--dropdown-padding-top); padding-bottom: var(--dropdown-padding-bottom); } .monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row { cursor: pointer; } .monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-text { text-overflow: ellipsis; overflow: hidden; padding-left: 3.5px; white-space: nowrap; float: left; } .monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-detail { text-overflow: ellipsis; overflow: hidden; padding-left: 3.5px; white-space: nowrap; float: left; opacity: 0.7; } .monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-decorator-right { text-overflow: ellipsis; overflow: hidden; padding-right: 10px; white-space: nowrap; float: right; } /* Accepted CSS hiding technique for accessibility reader text */ /* https://webaim.org/techniques/css/invisiblecontent/ */ .monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .visually-hidden { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; } .monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control { flex: 1 1 auto; align-self: flex-start; opacity: 0; } .monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control > .width-control-div { overflow: hidden; max-height: 0px; } .monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control > .width-control-div > .option-text-width-control { padding-left: 4px; padding-right: 8px; white-space: nowrap; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-action-bar { white-space: nowrap; height: 100%; } .monaco-action-bar .actions-container { display: flex; margin: 0 auto; padding: 0; height: 100%; width: 100%; align-items: center; } .monaco-action-bar.vertical .actions-container { display: inline-block; } .monaco-action-bar .action-item { display: block; align-items: center; justify-content: center; cursor: pointer; position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ } .monaco-action-bar .action-item.disabled { cursor: default; } .monaco-action-bar .action-item .icon, .monaco-action-bar .action-item .codicon { display: block; } .monaco-action-bar .action-item .codicon { display: flex; align-items: center; width: 16px; height: 16px; } .monaco-action-bar .action-label { display: flex; font-size: 11px; padding: 3px; border-radius: 5px; } .monaco-action-bar .action-item.disabled .action-label:not(.icon) , .monaco-action-bar .action-item.disabled .action-label:not(.icon)::before, .monaco-action-bar .action-item.disabled .action-label:not(.icon):hover { color: var(--vscode-disabledForeground); } /* Unable to change color of SVGs, hence opacity is used */ .monaco-action-bar .action-item.disabled .action-label.icon , .monaco-action-bar .action-item.disabled .action-label.icon::before, .monaco-action-bar .action-item.disabled .action-label.icon:hover { opacity: 0.6; } /* Vertical actions */ .monaco-action-bar.vertical { text-align: left; } .monaco-action-bar.vertical .action-item { display: block; } .monaco-action-bar.vertical .action-label.separator { display: block; border-bottom: 1px solid var(--vscode-disabledForeground); padding-top: 1px; margin-left: .8em; margin-right: .8em; } .monaco-action-bar .action-item .action-label.separator { width: 1px; height: 16px; margin: 5px 4px !important; cursor: default; min-width: 1px; padding: 0; background-color: var(--vscode-disabledForeground); } .secondary-actions .monaco-action-bar .action-label { margin-left: 6px; } /* Action Items */ .monaco-action-bar .action-item.select-container { overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ flex: 1; max-width: 170px; min-width: 60px; display: flex; align-items: center; justify-content: center; margin-right: 10px; } .monaco-action-bar .action-item.action-dropdown-item { display: flex; } .monaco-action-bar .action-item.action-dropdown-item > .action-dropdown-item-separator { display: flex; align-items: center; cursor: default; } .monaco-action-bar .action-item.action-dropdown-item > .action-dropdown-item-separator > div { width: 1px; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-diff-editor .diff-review { position: absolute; } .monaco-component.diff-review { user-select: none; -webkit-user-select: none; z-index: 99; .diff-review-line-number { text-align: right; display: inline-block; color: var(--vscode-editorLineNumber-foreground); } .diff-review-summary { padding-left: 10px; } .diff-review-shadow { position: absolute; box-shadow: var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset; } .diff-review-row { white-space: pre; } .diff-review-table { display: table; min-width: 100%; } .diff-review-row { display: table-row; width: 100%; } .diff-review-spacer { display: inline-block; width: 10px; vertical-align: middle; } .diff-review-spacer > .codicon { font-size: 9px !important; } .diff-review-actions { display: inline-block; position: absolute; right: 10px; top: 2px; z-index: 100; } .diff-review-actions .action-label { width: 16px; height: 16px; margin: 2px 0; } .revertButton { cursor: pointer; } .action-label { background: var(--vscode-editorActionList-background); } } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ :root { --vscode-sash-size: 4px; --vscode-sash-hover-size: 4px; } .monaco-sash { position: absolute; z-index: 35; touch-action: none; } .monaco-sash.disabled { pointer-events: none; } .monaco-sash.mac.vertical { cursor: col-resize; } .monaco-sash.vertical.minimum { cursor: e-resize; } .monaco-sash.vertical.maximum { cursor: w-resize; } .monaco-sash.mac.horizontal { cursor: row-resize; } .monaco-sash.horizontal.minimum { cursor: s-resize; } .monaco-sash.horizontal.maximum { cursor: n-resize; } .monaco-sash.disabled { cursor: default !important; pointer-events: none !important; } .monaco-sash.vertical { cursor: ew-resize; top: 0; width: var(--vscode-sash-size); height: 100%; } .monaco-sash.horizontal { cursor: ns-resize; left: 0; width: 100%; height: var(--vscode-sash-size); } .monaco-sash:not(.disabled) > .orthogonal-drag-handle { content: " "; height: calc(var(--vscode-sash-size) * 2); width: calc(var(--vscode-sash-size) * 2); z-index: 100; display: block; cursor: all-scroll; position: absolute; } .monaco-sash.horizontal.orthogonal-edge-north:not(.disabled) > .orthogonal-drag-handle.start, .monaco-sash.horizontal.orthogonal-edge-south:not(.disabled) > .orthogonal-drag-handle.end { cursor: nwse-resize; } .monaco-sash.horizontal.orthogonal-edge-north:not(.disabled) > .orthogonal-drag-handle.end, .monaco-sash.horizontal.orthogonal-edge-south:not(.disabled) > .orthogonal-drag-handle.start { cursor: nesw-resize; } .monaco-sash.vertical > .orthogonal-drag-handle.start { left: calc(var(--vscode-sash-size) * -0.5); top: calc(var(--vscode-sash-size) * -1); } .monaco-sash.vertical > .orthogonal-drag-handle.end { left: calc(var(--vscode-sash-size) * -0.5); bottom: calc(var(--vscode-sash-size) * -1); } .monaco-sash.horizontal > .orthogonal-drag-handle.start { top: calc(var(--vscode-sash-size) * -0.5); left: calc(var(--vscode-sash-size) * -1); } .monaco-sash.horizontal > .orthogonal-drag-handle.end { top: calc(var(--vscode-sash-size) * -0.5); right: calc(var(--vscode-sash-size) * -1); } .monaco-sash:before { content: ''; pointer-events: none; position: absolute; width: 100%; height: 100%; background: transparent; } .monaco-enable-motion .monaco-sash:before { transition: background-color 0.1s ease-out; } .monaco-sash.hover:before, .monaco-sash.active:before { background: var(--vscode-sash-hoverBorder); } .monaco-sash.vertical:before { width: var(--vscode-sash-hover-size); left: calc(50% - (var(--vscode-sash-hover-size) / 2)); } .monaco-sash.horizontal:before { height: var(--vscode-sash-hover-size); top: calc(50% - (var(--vscode-sash-hover-size) / 2)); } .pointer-events-disabled { pointer-events: none !important; } /** Debug **/ .monaco-sash.debug { background: cyan; } .monaco-sash.debug.disabled { background: rgba(0, 255, 255, 0.2); } .monaco-sash.debug:not(.disabled) > .orthogonal-drag-handle { background: red; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-dropdown { height: 100%; padding: 0; } .monaco-dropdown > .dropdown-label { cursor: pointer; height: 100%; display: flex; align-items: center; justify-content: center; } .monaco-dropdown > .dropdown-label > .action-label.disabled { cursor: default; } .monaco-dropdown-with-primary { display: flex !important; flex-direction: row; border-radius: 5px; } .monaco-dropdown-with-primary > .action-container > .action-label { margin-right: 0; } .monaco-dropdown-with-primary > .dropdown-action-container > .monaco-dropdown > .dropdown-label .codicon[class*='codicon-'] { font-size: 12px; padding-left: 0px; padding-right: 0px; line-height: 16px; margin-left: -3px; } .monaco-dropdown-with-primary > .dropdown-action-container > .monaco-dropdown > .dropdown-label > .action-label { display: block; background-size: 16px; background-position: center center; background-repeat: no-repeat; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-toolbar { height: 100%; } .monaco-toolbar .toolbar-toggle-more { display: inline-block; padding: 0; } .monaco-toolbar.responsive { .monaco-action-bar > .actions-container > .action-item { flex-shrink: 1; min-width: 20px; } } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-action-bar .action-item.menu-entry .action-label.icon { width: 16px; height: 16px; background-repeat: no-repeat; background-position: 50%; background-size: 16px; } .monaco-action-bar .action-item.menu-entry.text-only .action-label { color: var(--vscode-descriptionForeground); overflow: hidden; border-radius: 2px; } .monaco-action-bar .action-item.menu-entry.text-only.use-comma:not(:last-of-type) .action-label::after { content: ', '; } .monaco-action-bar .action-item.menu-entry.text-only + .action-item:not(.text-only) > .monaco-dropdown .action-label { color: var(--vscode-descriptionForeground); } .monaco-dropdown-with-default { display: flex !important; flex-direction: row; border-radius: 5px; } .monaco-dropdown-with-default > .action-container > .action-label { margin-right: 0; } .monaco-dropdown-with-default > .action-container.menu-entry > .action-label.icon { width: 16px; height: 16px; background-repeat: no-repeat; background-position: 50%; background-size: 16px; } .monaco-dropdown-with-default:hover { background-color: var(--vscode-toolbar-hoverBackground); } .monaco-dropdown-with-default > .dropdown-action-container > .monaco-dropdown > .dropdown-label .codicon[class*='codicon-'] { font-size: 12px; padding-left: 0px; padding-right: 0px; line-height: 16px; margin-left: -3px; } .monaco-dropdown-with-default > .dropdown-action-container > .monaco-dropdown > .dropdown-label > .action-label { display: block; background-size: 16px; background-position: center center; background-repeat: no-repeat; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .diff-hidden-lines-widget { width: 100%; } .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; } .monaco-editor .diff-hidden-lines:not(.dragging) .top:hover, .monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover, .monaco-editor .diff-hidden-lines .top.dragging, .monaco-editor .diff-hidden-lines .bottom.dragging { background-color: var(--vscode-focusBorder); } .monaco-editor .diff-hidden-lines .top, .monaco-editor .diff-hidden-lines .bottom { transition: background-color 0.1s ease-out; height: 4px; background-color: transparent; background-clip: padding-box; border-bottom: 2px solid transparent; border-top: 4px solid transparent; /*cursor: n-resize;*/ } .monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *, .monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom), .monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom) { cursor: n-resize !important; } .monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *, .monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom, .monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom { cursor: s-resize !important; } .monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *, .monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom, .monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom { cursor: ns-resize !important; } .monaco-editor .diff-hidden-lines .top { transform: translate(0px, 4px); } .monaco-editor .diff-hidden-lines .bottom { transform: translate(0px, -6px); } .monaco-editor .diff-unchanged-lines { background: var(--vscode-diffEditor-unchangedCodeBackground); } .monaco-editor .noModificationsOverlay { z-index: 1; background: var(--vscode-editor-background); display: flex; justify-content: center; align-items: center; } .monaco-editor .diff-hidden-lines .center { background: var(--vscode-diffEditor-unchangedRegionBackground); color: var(--vscode-diffEditor-unchangedRegionForeground); overflow: hidden; display: block; text-overflow: ellipsis; white-space: nowrap; height: 24px; box-shadow: inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow), inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow); } .monaco-editor .diff-hidden-lines .center span.codicon { vertical-align: middle; } .monaco-editor .diff-hidden-lines .center a:hover .codicon { cursor: pointer; color: var(--vscode-editorLink-activeForeground) !important; } .monaco-editor .diff-hidden-lines div.breadcrumb-item { cursor: pointer; } .monaco-editor .diff-hidden-lines div.breadcrumb-item:hover { color: var(--vscode-editorLink-activeForeground); } .monaco-editor .movedOriginal { border: 2px solid var(--vscode-diffEditor-move-border); } .monaco-editor .movedModified { border: 2px solid var(--vscode-diffEditor-move-border); } .monaco-editor .movedOriginal.currentMove, .monaco-editor .movedModified.currentMove { border: 2px solid var(--vscode-diffEditor-moveActive-border); } .monaco-diff-editor .moved-blocks-lines path.currentMove { stroke: var(--vscode-diffEditor-moveActive-border); } .monaco-diff-editor .moved-blocks-lines path { pointer-events: visiblestroke; } .monaco-diff-editor .moved-blocks-lines .arrow { fill: var(--vscode-diffEditor-move-border); } .monaco-diff-editor .moved-blocks-lines .arrow.currentMove { fill: var(--vscode-diffEditor-moveActive-border); } .monaco-diff-editor .moved-blocks-lines .arrow-rectangle { fill: var(--vscode-editor-background); } .monaco-diff-editor .moved-blocks-lines { position: absolute; pointer-events: none; } .monaco-diff-editor .moved-blocks-lines path { fill: none; stroke: var(--vscode-diffEditor-move-border); stroke-width: 2; } .monaco-editor .char-delete.diff-range-empty { margin-left: -1px; border-left: solid var(--vscode-diffEditor-removedTextBackground) 3px; } .monaco-editor .char-insert.diff-range-empty { border-left: solid var(--vscode-diffEditor-insertedTextBackground) 3px; } .monaco-editor .fold-unchanged { cursor: pointer; } .monaco-diff-editor .diff-moved-code-block { display: flex; justify-content: flex-end; margin-top: -4px; } .monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon { width: 12px; height: 12px; font-size: 12px; } /* ---------- DiffEditor ---------- */ .monaco-diff-editor .diffOverview { z-index: 9; } .monaco-diff-editor .diffOverview .diffViewport { z-index: 10; } /* colors not externalized: using transparancy on background */ .monaco-diff-editor.vs .diffOverview { background: rgba(0, 0, 0, 0.03); } .monaco-diff-editor.vs-dark .diffOverview { background: rgba(255, 255, 255, 0.01); } .monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar { background: rgba(0,0,0,0); } .monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar { background: rgba(0,0,0,0); } .monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar { background: none; } .monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar { background: none; } .monaco-scrollable-element.modified-in-monaco-diff-editor .slider