Path: blob/main/src/vs/workbench/browser/media/style.css
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45/* Animations */67@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }89/* Font Families (with CJK support) */1011.monaco-workbench.mac { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }12.monaco-workbench.mac:lang(zh-Hans) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }13.monaco-workbench.mac:lang(zh-Hant) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }14.monaco-workbench.mac:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }15.monaco-workbench.mac:lang(ko) { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Nanum Gothic", "AppleGothic", sans-serif; }1617.monaco-workbench.windows { font-family: "Segoe WPC", "Segoe UI", sans-serif; }18.monaco-workbench.windows:lang(zh-Hans) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }19.monaco-workbench.windows:lang(zh-Hant) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }20.monaco-workbench.windows:lang(ja) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }21.monaco-workbench.windows:lang(ko) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }2223/* Linux: add `system-ui` as first font and not `Ubuntu` to allow other distribution pick their standard OS font */24.monaco-workbench.linux { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }25.monaco-workbench.linux:lang(zh-Hans) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }26.monaco-workbench.linux:lang(zh-Hant) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }27.monaco-workbench.linux:lang(ja) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }28.monaco-workbench.linux:lang(ko) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }2930.monaco-workbench.mac { --monaco-monospace-font: "SF Mono", Monaco, Menlo, Courier, monospace; }31.monaco-workbench.windows { --monaco-monospace-font: Consolas, "Courier New", monospace; }32.monaco-workbench.linux { --monaco-monospace-font: "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace; }3334/* Global Styles */3536body {37height: 100%;38width: 100%;39margin: 0;40padding: 0;41overflow: hidden;42font-size: 11px;43user-select: none;44-webkit-user-select: none;45}4647.monaco-workbench {48font-size: 13px;49line-height: 1.4em;50position: relative;51inset: 0;52z-index: 1;53overflow: hidden;54color: var(--vscode-foreground);55}5657.monaco-workbench.web {58touch-action: none; /* Disable browser handling of all panning and zooming gestures. Removes 300ms touch delay. */59overscroll-behavior: none; /* Prevent bounce effect */60}6162.monaco-workbench.border:not(.fullscreen) {63box-sizing: border-box;64border: 1px solid var(--window-border-color);65}6667.monaco-workbench.border.mac {68border-radius: 5px;69}7071.monaco-workbench.border.mac.macos-bigsur-or-newer {72border-radius: 10px; /* macOS Big Sur increased rounded corners size */73}7475.monaco-workbench img {76border: 0;77}7879.monaco-workbench label {80cursor: pointer;81}8283.monaco-workbench a {84text-decoration: none;85}868788.monaco-workbench p > a {89text-decoration: var(--text-link-decoration);90}9192.monaco-workbench.underline-links {93--text-link-decoration: underline;94}9596.monaco-workbench.hc-black p > a,97.monaco-workbench.hc-light p > a {98text-decoration: underline !important;99}100101.monaco-workbench a:active {102color: inherit;103background-color: inherit;104}105106.monaco-workbench a.plain {107color: inherit;108text-decoration: none;109}110111.monaco-workbench a.plain:hover,112.monaco-workbench a.plain.hover {113color: inherit;114text-decoration: none;115}116117.monaco-workbench input {118color: inherit;119font-family: inherit;120font-size: 100%;121}122123.monaco-workbench table {124/*125* Somehow this is required when tables show in floating windows126* to override the user-agent style which sets a specific color127* and font-size128*/129color: inherit;130font-size: inherit;131}132133.monaco-workbench input::placeholder { color: var(--vscode-input-placeholderForeground); }134.monaco-workbench input::-webkit-input-placeholder { color: var(--vscode-input-placeholderForeground); }135.monaco-workbench input::-moz-placeholder { color: var(--vscode-input-placeholderForeground); }136137.monaco-workbench textarea::placeholder { color: var(--vscode-input-placeholderForeground); }138.monaco-workbench textarea::-webkit-input-placeholder { color: var(--vscode-input-placeholderForeground); }139.monaco-workbench textarea::-moz-placeholder { color: var(--vscode-input-placeholderForeground); }140141.monaco-workbench .pointer {142cursor: pointer;143}144145.monaco-workbench.mac.monaco-font-aliasing-antialiased {146-webkit-font-smoothing: antialiased;147-moz-osx-font-smoothing: grayscale;148}149150.monaco-workbench.mac.monaco-font-aliasing-none {151-webkit-font-smoothing: none;152-moz-osx-font-smoothing: unset;153}154155@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {156.monaco-workbench.mac.monaco-font-aliasing-auto {157-webkit-font-smoothing: antialiased;158-moz-osx-font-smoothing: grayscale;159}160}161162.monaco-workbench .context-view {163-webkit-app-region: no-drag;164}165166.monaco-workbench .codicon {167color: var(--vscode-icon-foreground);168}169170.monaco-workbench .codicon[class*='codicon-'] {171font-size: 16px; /* sets font-size for codicons in workbench (https://github.com/microsoft/vscode/issues/98495) */172}173174.monaco-workbench .predefined-file-icon[class*='codicon-']::before {175width: 16px;176padding-left: 3px; /* width (16px) - font-size (13px) = padding-left (3px) */177padding-right: 3px;178}179180.predefined-file-icon::before { /* do add additional specificity to this selector, so it can be overridden by product themes */181font-family: 'codicon';182}183184.monaco-workbench:not(.file-icons-enabled) .predefined-file-icon[class*='codicon-']::before {185content: unset !important;186}187188.monaco-workbench.modal-dialog-visible .monaco-progress-container.infinite .progress-bit {189display: none; /* stop progress animations when dialogs are visible (https://github.com/microsoft/vscode/issues/138396) */190}191192/* Custom Dropdown (select) Arrows */193194.monaco-workbench select {195font-family: inherit;196appearance: none;197-webkit-appearance: none;198-moz-appearance: none;199/* Hides inner border from FF */200border: 1px solid;201}202203.monaco-workbench .select-container {204position: relative;205}206207.monaco-workbench .select-container:after {208content: var(--vscode-icon-chevron-down-content);209font-family: var(--vscode-icon-chevron-down-font-family);210font-size: 16px;211width: 16px;212height: 16px;213line-height: 16px;214position: absolute;215top: 0;216bottom: 0;217right: 6px;218margin: auto;219pointer-events: none;220}221222/* Keyboard Focus Indication Styles */223224.monaco-workbench [tabindex="0"]:focus,225.monaco-workbench [tabindex="-1"]:focus,226.monaco-workbench .synthetic-focus,227.monaco-workbench select:focus,228.monaco-workbench input[type="button"]:focus,229.monaco-workbench input[type="text"]:focus,230.monaco-workbench button:focus,231.monaco-workbench textarea:focus,232.monaco-workbench input[type="search"]:focus,233.monaco-workbench input[type="checkbox"]:focus {234outline-width: 1px;235outline-style: solid;236outline-offset: -1px;237outline-color: var(--vscode-focusBorder);238opacity: 1;239}240241.monaco-workbench.hc-black .synthetic-focus input,242.monaco-workbench.hc-light .synthetic-focus input {243background: transparent; /* Search input focus fix when in high contrast */244}245246.monaco-workbench input[type="checkbox"]:focus {247outline-offset: 2px;248}249250.monaco-workbench [tabindex="0"]:active,251.monaco-workbench [tabindex="-1"]:active,252.monaco-workbench select:active,253.monaco-workbench input[type="button"]:active,254.monaco-workbench input[type="checkbox"]:active {255outline: 0 !important; /* fixes some flashing outlines from showing up when clicking */256}257258.monaco-workbench.mac select:focus {259border-color: transparent; /* outline is a square, but border has a radius, so we avoid this glitch when focused (https://github.com/microsoft/vscode/issues/26045) */260}261262.monaco-workbench .monaco-list:not(.element-focused):focus:before {263position: absolute;264top: 0;265left: 0;266width: 100%;267height: 100%;268z-index: 15; /* make sure we are on top of the tree sticky scroll widget */269content: "";270pointer-events: none; /* enable click through */271outline: 1px solid; /* we still need to handle the empty tree or no focus item case */272outline-width: 1px;273outline-style: solid;274outline-offset: -1px;275outline-color: var(--vscode-focusBorder);276}277278.monaco-workbench .monaco-list .monaco-list-row .monaco-highlighted-label .highlight {279color: var(--vscode-list-highlightForeground);280}281282.monaco-workbench .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight {283color: var(--vscode-list-focusHighlightForeground);284}285286.monaco-workbench .synthetic-focus :focus {287outline: 0 !important; /* elements within widgets that draw synthetic-focus should never show focus */288}289290.monaco-workbench .monaco-inputbox.info.synthetic-focus,291.monaco-workbench .monaco-inputbox.warning.synthetic-focus,292.monaco-workbench .monaco-inputbox.error.synthetic-focus,293.monaco-workbench .monaco-inputbox.info input[type="text"]:focus,294.monaco-workbench .monaco-inputbox.warning input[type="text"]:focus,295.monaco-workbench .monaco-inputbox.error input[type="text"]:focus {296outline: 0 !important; /* outline is not going well with decoration */297}298299.monaco-workbench .monaco-list:focus {300outline: 0 !important; /* tree indicates focus not via outline but through the focused item */301}302303.monaco-workbench a.monaco-link:hover {304text-decoration: underline; /* render underline on hover for accessibility requirements */305}306307.monaco-workbench .monaco-action-bar:not(.vertical) .action-label:not(.disabled):hover,308.monaco-workbench .monaco-action-bar:not(.vertical) .monaco-dropdown-with-primary:not(.disabled):hover {309background-color: var(--vscode-toolbar-hoverBackground);310}311312.monaco-workbench .monaco-action-bar:not(.vertical) .action-item.active .action-label:not(.disabled),313.monaco-workbench .monaco-action-bar:not(.vertical) .monaco-dropdown.active .action-label:not(.disabled) {314background-color: var(--vscode-toolbar-activeBackground);315}316317.monaco-workbench .monaco-action-bar:not(.vertical) .action-item .action-label:hover:not(.disabled) {318outline: 1px dashed var(--vscode-toolbar-hoverOutline);319outline-offset: -1px;320}321322323