shell.css 6.1 KB
Newer Older
E
Erich Gamma 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.monaco-shell {
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-size: 11px;
	-webkit-user-select: none;
}

16
/* Font Families (with CJK support) */
B
Benjamin Pasero 已提交
17

18
.monaco-shell { font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Ubuntu", "Droid Sans", sans-serif; }
J
Joao Moreno 已提交
19 20 21 22
.monaco-shell:lang(zh-Hans) { font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Noto Sans", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }
.monaco-shell:lang(zh-Hant) { font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Noto Sans", "Microsoft Jhenghei", "PingFang TC", "Source Han Sans TC", "Source Han Sans", "Source Han Sans TW", sans-serif; }
.monaco-shell:lang(ja) { font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Noto Sans", "Meiryo", "Hiragino Kaku Gothic Pro", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", "Sazanami Gothic", "IPA Gothic", sans-serif; }
.monaco-shell:lang(ko) { font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Noto Sans", "Malgun Gothic", "Nanum Gothic", "Dotom", "Apple SD Gothic Neo", "AppleGothic", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }
B
Benjamin Pasero 已提交
23

E
Erich Gamma 已提交
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
@-webkit-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.monaco-shell img {
	border: 0;
}

.monaco-shell label {
	cursor: pointer;
}

.monaco-shell a {
	text-decoration: none;
}

B
Benjamin Pasero 已提交
39 40 41 42 43
.monaco-shell a:active {
	color: inherit;
	background-color: inherit;
}

E
Erich Gamma 已提交
44 45 46 47 48
.monaco-shell a.plain {
	color: inherit;
	text-decoration: none;
}

B
Benjamin Pasero 已提交
49 50
.monaco-shell a.plain:hover,
.monaco-shell a.plain.hover {
E
Erich Gamma 已提交
51 52 53 54
	color: inherit;
	text-decoration: none;
}

B
Benjamin Pasero 已提交
55 56 57 58 59 60 61 62 63 64 65 66 67 68
.monaco-shell input {
	color: inherit;
	font-family: inherit;
	font-size: 100%;
}

.monaco-shell select {
	font-family: inherit;
}

.monaco-shell .pointer {
	cursor: pointer;
}

J
Joao Moreno 已提交
69 70 71
.monaco-shell input[type="search"]::-webkit-search-decoration,
.monaco-shell input[type="search"]::-webkit-search-results-button,
.monaco-shell input[type="search"]::-webkit-search-results-decoration {
J
Joao Moreno 已提交
72 73 74
	display: none;
}

J
Joao Moreno 已提交
75
.monaco-shell input[type="search"]::-webkit-search-cancel-button {
J
Joao Moreno 已提交
76 77 78 79 80 81 82 83
	-webkit-appearance: none;
	height: 18px;
	width: 18px;
	background-image: url('clear.svg');
	background-repeat: no-repeat;
	background-position: center center;
}

B
Benjamin Pasero 已提交
84 85 86 87 88 89 90 91 92 93 94 95 96
/* START Keyboard Focus Indication Styles */

.monaco-shell [tabindex="0"]:focus,
.monaco-shell .synthetic-focus,
.monaco-shell select:focus,
.monaco-shell input[type="button"]:focus,
.monaco-shell input[type="submit"]:focus,
.monaco-shell input[type="search"]:focus,
.monaco-shell input[type="text"]:focus,
.monaco-shell textarea:focus,
.monaco-shell input[type="checkbox"]:focus {
	outline-width: 1px;
	outline-style: solid;
B
Benjamin Pasero 已提交
97
	outline-offset: -1px;
98
	opacity: 1 !important;
99 100
}

101
.monaco-shell .mac select:focus {
102
	border: none; /* outline is a square, but border has a radius, so we avoid this glitch when focused (https://github.com/Microsoft/vscode/issues/26045) */
103 104
}

105
.monaco-shell.hc-black [tabindex="0"]:focus,
106
.monaco-shell.hc-black .synthetic-focus,
107 108
.monaco-shell.hc-black select:focus,
.monaco-shell.hc-black input[type="button"]:focus,
B
Benjamin Pasero 已提交
109 110
.monaco-shell.hc-black input[type="text"]:focus,
.monaco-shell.hc-black textarea:focus,
J
Joao Moreno 已提交
111
.monaco-shell.hc-black input[type="search"]:focus,
112
.monaco-shell.hc-black input[type="checkbox"]:focus {
B
Benjamin Pasero 已提交
113
	outline-style: solid;
B
Benjamin Pasero 已提交
114
	outline-width: 1px;
115 116
}

117
.monaco-shell.hc-black .synthetic-focus input {
B
Benjamin Pasero 已提交
118
	background: transparent; /* Search input focus fix when in high contrast */
119 120
}

B
Benjamin Pasero 已提交
121
.monaco-shell.vs .monaco-tree.focused .monaco-tree-row.focused [tabindex="0"]:focus,
122
.monaco-shell.vs-dark .monaco-tree.focused .monaco-tree-row.focused [tabindex="0"]:focus {
B
Benjamin Pasero 已提交
123 124
	outline-width: 1px; /* higher contrast color for focusable elements in a row that shows focus feedback */
	outline-style: solid;
125 126
}

J
Joao Moreno 已提交
127 128
.monaco-shell .monaco-tree.focused.no-focused-item:focus:before,
.monaco-shell .monaco-list:not(.element-focused):focus:before {
129 130 131 132 133 134 135 136
	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 */
B
Benjamin Pasero 已提交
137
	outline: 1px solid; /* we still need to handle the empty tree or no focus item case */
B
Benjamin Pasero 已提交
138 139
	outline-width: 1px;
	outline-style: solid;
B
Benjamin Pasero 已提交
140
	outline-offset: -1px;
141 142
}

143
.monaco-shell.hc-black .monaco-tree.focused.no-focused-item:focus:before {
B
Benjamin Pasero 已提交
144
	outline-width: 1px;
145 146 147
	outline-offset: -2px;
}

B
Benjamin Pasero 已提交
148 149 150 151
.monaco-shell .synthetic-focus :focus {
	outline: 0 !important; /* elements within widgets that draw synthetic-focus should never show focus */
}

152 153 154
.monaco-shell .monaco-inputbox.info.synthetic-focus,
.monaco-shell .monaco-inputbox.warning.synthetic-focus,
.monaco-shell .monaco-inputbox.error.synthetic-focus,
B
Benjamin Pasero 已提交
155 156 157
.monaco-shell .monaco-inputbox.info input[type="text"]:focus,
.monaco-shell .monaco-inputbox.warning input[type="text"]:focus,
.monaco-shell .monaco-inputbox.error input[type="text"]:focus {
158
	outline: 0 !important; /* outline is not going well with decoration */
B
Benjamin Pasero 已提交
159 160
}

J
Joao Moreno 已提交
161 162
.monaco-shell .monaco-tree.focused:focus,
.monaco-shell .monaco-list:focus {
163
	outline: 0 !important; /* tree indicates focus not via outline but through the focused item */
164 165
}

B
Benjamin Pasero 已提交
166 167 168 169 170
.monaco-shell [tabindex="0"]:active,
.monaco-shell select:active,
.monaco-shell input[type="button"]:active,
.monaco-shell input[type="submit"]:active,
.monaco-shell input[type="checkbox"]:active,
B
Benjamin Pasero 已提交
171 172
.monaco-shell .monaco-tree .monaco-tree-row
.monaco-action-bar .action-item [tabindex="0"]:hover,
173
.monaco-shell .monaco-tree.focused.no-focused-item:active:before {
B
Benjamin Pasero 已提交
174
	outline: 0 !important; /* fixes some flashing outlines from showing up when clicking */
B
Benjamin Pasero 已提交
175
}