mirror of
https://github.com/coder/code-server.git
synced 2026-05-09 13:57:26 +02:00
Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'
This commit is contained in:
1
lib/vscode/src/vs/workbench/browser/media/code-icon.svg
Normal file
1
lib/vscode/src/vs/workbench/browser/media/code-icon.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"><style>.st0{fill:#f6f6f6;fill-opacity:0}.st1{fill:#fff}.st2{fill:#167abf}</style><path class="st0" d="M1024 1024H0V0h1024v1024z"/><path class="st1" d="M1024 85.333v853.333H0V85.333h1024z"/><path class="st2" d="M0 85.333h298.667v853.333H0V85.333zm1024 0v853.333H384V85.333h640zm-554.667 160h341.333v-64H469.333v64zm341.334 533.334H469.333v64h341.333l.001-64zm128-149.334H597.333v64h341.333l.001-64zm0-149.333H597.333v64h341.333l.001-64zm0-149.333H597.333v64h341.333l.001-64z"/></svg>
|
||||
|
After Width: | Height: | Size: 559 B |
108
lib/vscode/src/vs/workbench/browser/media/part.css
Normal file
108
lib/vscode/src/vs/workbench/browser/media/part.css
Normal file
@@ -0,0 +1,108 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
.monaco-workbench .part {
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .drop-block-overlay.visible {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .drop-block-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title {
|
||||
display: none; /* Parts have to opt in to show title area */
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title {
|
||||
height: 35px;
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title > .title-label {
|
||||
line-height: 35px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title > .title-label {
|
||||
padding-left: 12px;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title > .title-label h2 {
|
||||
font-size: 11px;
|
||||
cursor: default;
|
||||
font-weight: normal;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title > .title-label a {
|
||||
text-decoration: none;
|
||||
font-size: 13px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title > .title-actions {
|
||||
height: 35px;
|
||||
flex: 1;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title > .title-actions .action-label {
|
||||
display: block;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
min-width: 28px;
|
||||
background-size: 16px;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title > .title-actions .action-label .label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .title > .title-actions .action-label.codicon {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .content {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .content > .monaco-progress-container,
|
||||
.monaco-workbench .part.editor > .content .monaco-progress-container {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 33px; /* at the bottom of the 35px height title container */
|
||||
z-index: 5; /* on top of things */
|
||||
height: 2px;
|
||||
}
|
||||
|
||||
.monaco-workbench .part > .content > .monaco-progress-container .progress-bit,
|
||||
.monaco-workbench .part.editor > .content .monaco-progress-container .progress-bit {
|
||||
height: 2px;
|
||||
}
|
||||
269
lib/vscode/src/vs/workbench/browser/media/style.css
Normal file
269
lib/vscode/src/vs/workbench/browser/media/style.css
Normal file
@@ -0,0 +1,269 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
/* Font Families (with CJK support) */
|
||||
|
||||
.mac { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
|
||||
.mac:lang(zh-Hans) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }
|
||||
.mac:lang(zh-Hant) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }
|
||||
.mac:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }
|
||||
.mac:lang(ko) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }
|
||||
|
||||
.windows { font-family: "Segoe WPC", "Segoe UI", sans-serif; }
|
||||
.windows:lang(zh-Hans) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }
|
||||
.windows:lang(zh-Hant) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }
|
||||
.windows:lang(ja) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }
|
||||
.windows:lang(ko) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }
|
||||
|
||||
/* Linux: add `system-ui` as first font and not `Ubuntu` to allow other distribution pick their standard OS font */
|
||||
.linux { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }
|
||||
.linux:lang(zh-Hans) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }
|
||||
.linux:lang(zh-Hant) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }
|
||||
.linux:lang(ja) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }
|
||||
.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; }
|
||||
|
||||
.mac { --monaco-monospace-font: "SF Mono", Monaco, Menlo, Courier, monospace; }
|
||||
.windows { --monaco-monospace-font: Consolas, "Courier New", monospace; }
|
||||
.linux { --monaco-monospace-font: "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace; }
|
||||
|
||||
/* Global Styles */
|
||||
|
||||
body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
font-size: 11px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
body.web {
|
||||
position: fixed; /* prevent bounce effect */
|
||||
}
|
||||
|
||||
.monaco-workbench.web {
|
||||
touch-action: initial; /* reenable touch events on workbench */
|
||||
}
|
||||
|
||||
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
||||
|
||||
.monaco-workbench {
|
||||
font-size: 13px;
|
||||
line-height: 1.4em;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.monaco-workbench.border:not(.fullscreen) {
|
||||
box-sizing: border-box;
|
||||
border: 1px solid var(--window-border-color);
|
||||
}
|
||||
|
||||
.monaco-workbench.border.mac {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.monaco-workbench img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.monaco-workbench label {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.monaco-workbench a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.monaco-workbench a:active {
|
||||
color: inherit;
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
.monaco-workbench a.plain {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.monaco-workbench a.plain:hover,
|
||||
.monaco-workbench a.plain.hover {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.monaco-workbench input {
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
.monaco-workbench select {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.monaco-workbench .pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.monaco-workbench.mac.monaco-font-aliasing-antialiased {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.monaco-workbench.mac.monaco-font-aliasing-none {
|
||||
-webkit-font-smoothing: none;
|
||||
-moz-osx-font-smoothing: unset;
|
||||
}
|
||||
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
.monaco-workbench.mac.monaco-font-aliasing-auto {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
}
|
||||
|
||||
.monaco-workbench .context-view {
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-menu .monaco-action-bar.vertical {
|
||||
padding: .5em 0;
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-menu .monaco-action-bar.vertical .action-menu-item {
|
||||
height: 1.8em;
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),
|
||||
.monaco-workbench .monaco-menu .monaco-action-bar.vertical .keybinding {
|
||||
font-size: inherit;
|
||||
padding: 0 2em;
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-menu .monaco-action-bar.vertical .menu-item-check {
|
||||
font-size: inherit;
|
||||
width: 2em;
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
||||
font-size: inherit;
|
||||
padding: 0.2em 0 0 0;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.monaco-workbench.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
||||
font-size: 60%;
|
||||
padding: 0 1.8em;
|
||||
}
|
||||
|
||||
.monaco-workbench.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
||||
height: 100%;
|
||||
mask-size: 10px 10px;
|
||||
-webkit-mask-size: 10px 10px;
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-menu .action-item {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* Custom Dropdown (select) Arrows */
|
||||
|
||||
.monaco-workbench select {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
/* Hides inner border from FF */
|
||||
border: 1px solid;
|
||||
}
|
||||
|
||||
.monaco-workbench .select-container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.monaco-workbench .select-container:after {
|
||||
content: "\eab4";
|
||||
font-family: codicon;
|
||||
font-size: 14px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
line-height: 14px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 6px;
|
||||
margin: auto;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* START Keyboard Focus Indication Styles */
|
||||
|
||||
.monaco-workbench [tabindex="0"]:focus,
|
||||
.monaco-workbench [tabindex="-1"]:focus,
|
||||
.monaco-workbench .synthetic-focus,
|
||||
.monaco-workbench select:focus,
|
||||
.monaco-workbench input[type="button"]:focus,
|
||||
.monaco-workbench input[type="text"]:focus,
|
||||
.monaco-workbench textarea:focus,
|
||||
.monaco-workbench input[type="checkbox"]:focus {
|
||||
outline-width: 1px;
|
||||
outline-style: solid;
|
||||
outline-offset: -1px;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
|
||||
.monaco-workbench [tabindex="0"]:active,
|
||||
.monaco-workbench [tabindex="-1"]:active,
|
||||
.monaco-workbench select:active,
|
||||
.monaco-workbench input[type="button"]:active,
|
||||
.monaco-workbench input[type="checkbox"]:active {
|
||||
outline: 0 !important; /* fixes some flashing outlines from showing up when clicking */
|
||||
}
|
||||
|
||||
.monaco-workbench.mac select:focus {
|
||||
border-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) */
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-list:not(.element-focused):focus:before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 5; /* make sure we are on top of the tree items */
|
||||
content: "";
|
||||
pointer-events: none; /* enable click through */
|
||||
outline: 1px solid; /* we still need to handle the empty tree or no focus item case */
|
||||
outline-width: 1px;
|
||||
outline-style: solid;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
|
||||
.monaco-workbench .synthetic-focus :focus {
|
||||
outline: 0 !important; /* elements within widgets that draw synthetic-focus should never show focus */
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-inputbox.info.synthetic-focus,
|
||||
.monaco-workbench .monaco-inputbox.warning.synthetic-focus,
|
||||
.monaco-workbench .monaco-inputbox.error.synthetic-focus,
|
||||
.monaco-workbench .monaco-inputbox.info input[type="text"]:focus,
|
||||
.monaco-workbench .monaco-inputbox.warning input[type="text"]:focus,
|
||||
.monaco-workbench .monaco-inputbox.error input[type="text"]:focus {
|
||||
outline: 0 !important; /* outline is not going well with decoration */
|
||||
}
|
||||
|
||||
.monaco-workbench .monaco-list:focus {
|
||||
outline: 0 !important; /* tree indicates focus not via outline but through the focused item */
|
||||
}
|
||||
|
||||
.monaco-workbench .codicon[class*='codicon-'] {
|
||||
font-size: 16px; /* sets font-size for codicons in workbench https://github.com/microsoft/vscode/issues/98495 */
|
||||
}
|
||||
Reference in New Issue
Block a user