shell.css 10.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

J
Joao Moreno 已提交
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;
}

69 70
/* START Keyboard Focus Indication Styles */

71
.monaco-shell.vs [tabindex="0"]:focus,
72
.monaco-shell.vs .synthetic-focus,
73
.monaco-shell.vs select:focus,
74 75
.monaco-shell.vs input[type="button"]:focus,
.monaco-shell.vs input[type="submit"]:focus,
J
Joao Moreno 已提交
76
.monaco-shell.vs input[type="search"]:focus,
77
.monaco-shell.vs input[type="text"]:focus, .monaco-shell.vs textarea:focus,
78
.monaco-shell.vs input[type="checkbox"]:focus {
B
Benjamin Pasero 已提交
79
	outline: 1px solid;
B
Benjamin Pasero 已提交
80
	outline-offset: -1px;
81
	opacity: 1 !important;
82 83
}

J
Joao Moreno 已提交
84 85 86
.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 已提交
87 88 89
	display: none;
}

J
Joao Moreno 已提交
90
.monaco-shell input[type="search"]::-webkit-search-cancel-button {
J
Joao Moreno 已提交
91 92 93 94 95 96 97 98
	-webkit-appearance: none;
	height: 18px;
	width: 18px;
	background-image: url('clear.svg');
	background-repeat: no-repeat;
	background-position: center center;
}

99
.monaco-shell.vs-dark [tabindex="0"]:focus,
100
.monaco-shell.vs-dark .synthetic-focus,
101 102 103
.monaco-shell.vs-dark select:focus,
.monaco-shell.vs-dark input[type="button"]:focus,
.monaco-shell.vs-dark input[type="submit"]:focus,
J
Joao Moreno 已提交
104
.monaco-shell.vs-dark input[type="search"]:focus,
105
.monaco-shell.vs-dark input[type="text"]:focus, .monaco-shell.vs-dark textarea:focus,
106
.monaco-shell.vs-dark input[type="checkbox"]:focus {
B
Benjamin Pasero 已提交
107
	outline: 1px solid;
B
Benjamin Pasero 已提交
108
	outline-offset: -1px;
109
	opacity: 1 !important;
110 111
}

112
.monaco-shell.hc-black [tabindex="0"]:focus,
113
.monaco-shell.hc-black .synthetic-focus,
114 115
.monaco-shell.hc-black select:focus,
.monaco-shell.hc-black input[type="button"]:focus,
116
.monaco-shell.hc-black input[type="text"]:focus, .monaco-shell.hc-black textarea:focus,
J
Joao Moreno 已提交
117
.monaco-shell.hc-black input[type="search"]:focus,
118
.monaco-shell.hc-black input[type="checkbox"]:focus {
B
Benjamin Pasero 已提交
119
	outline: 2px solid;
120 121 122
	outline-offset: -1px;
}

123
.monaco-shell.vs .monaco-text-button:focus,
124 125 126 127 128 129 130 131
.monaco-shell.vs .action-button:focus {
	outline-offset: -2px; /* Inset outline so it stands out on light background. */
}

.monaco-shell.hc-black .action-button:focus {
	outline-offset: -4px; /* Helps high-contrast outline avoid clipping. */
}

132
.monaco-shell.hc-black .synthetic-focus input {
B
Benjamin Pasero 已提交
133
	background: transparent; /* Search input focus fix when in high contrast */
134 135
}

136
.monaco-shell.vs .monaco-tree.focused .monaco-tree-row.focused [tabindex="0"]:focus {
B
Benjamin Pasero 已提交
137
	outline: 1px solid; /* higher contrast color for focusable elements in a row that shows focus feedback */
138 139 140
}

.monaco-shell.vs-dark .monaco-tree.focused .monaco-tree-row.focused [tabindex="0"]:focus {
B
Benjamin Pasero 已提交
141
	outline: 1px solid; /* higher contrast color for focusable elements in a row that shows focus feedback */
142 143
}

144
.monaco-shell .monaco-tree.focused.no-focused-item:focus:before {
145 146 147 148 149 150 151 152
	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 */
153 154
}

155
.monaco-shell.vs .monaco-tree.focused.no-focused-item:focus:before {
B
Benjamin Pasero 已提交
156
	outline: 1px solid; /* we still need to handle the empty tree or no focus item case */
157 158 159
	outline-offset: -1px;
}

160
.monaco-shell.vs-dark .monaco-tree.focused.no-focused-item:focus:before {
B
Benjamin Pasero 已提交
161
	outline: 1px solid; /* we still need to handle the empty tree or no focus item case */
B
Benjamin Pasero 已提交
162
	outline-offset: -1px;
163 164
}

165
.monaco-shell.hc-black .monaco-tree.focused.no-focused-item:focus:before {
B
Benjamin Pasero 已提交
166
	outline: 2px solid; /* we still need to handle the empty tree or no focus item case */
167 168 169
	outline-offset: -2px;
}

B
Benjamin Pasero 已提交
170 171 172 173
.monaco-shell .synthetic-focus :focus {
	outline: 0 !important; /* elements within widgets that draw synthetic-focus should never show focus */
}

174 175 176
.monaco-shell .monaco-inputbox.info.synthetic-focus,
.monaco-shell .monaco-inputbox.warning.synthetic-focus,
.monaco-shell .monaco-inputbox.error.synthetic-focus,
B
Benjamin Pasero 已提交
177 178 179
.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 {
180
	outline: 0 !important; /* outline is not going well with decoration */
B
Benjamin Pasero 已提交
181 182
}

183
.monaco-shell .monaco-tree.focused:focus {
184
	outline: 0 !important; /* tree indicates focus not via outline but through the focussed item */
185 186
}

B
Benjamin Pasero 已提交
187 188 189 190 191
.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 已提交
192
.monaco-shell .monaco-tree .monaco-tree-row .monaco-action-bar .action-item [tabindex="0"]:hover,
193
.monaco-shell .monaco-tree.focused.no-focused-item:active:before {
B
Benjamin Pasero 已提交
194
	outline: 0 !important; /* fixes some flashing outlines from showing up when clicking */
195 196
}

B
Benjamin Pasero 已提交
197
.monaco-shell .activitybar [tabindex="0"]:focus {
198 199 200 201
	outline: 0 !important; /* activity bar indicates focus custom */
}

.monaco-shell .part.editor .binary-container {
B
Benjamin Pasero 已提交
202
	outline: 0 !important;
203 204
}

205
/* END Keyboard Focus Indication Styles */
206

207
/* TODO@theme (widgets) */
E
Erich Gamma 已提交
208

B
Benjamin Pasero 已提交
209 210
.monaco-shell.vs input {
	background-color: white;
E
Erich Gamma 已提交
211 212
}

B
Benjamin Pasero 已提交
213 214 215
.monaco-shell.vs-dark input,
.monaco-shell.vs-dark textarea {
	background-color: #3C3C3C;
E
Erich Gamma 已提交
216 217
}

B
Benjamin Pasero 已提交
218 219
.monaco-shell.vs input:disabled {
	background-color: #E1E1E1;
E
Erich Gamma 已提交
220 221
}

B
Benjamin Pasero 已提交
222 223
.monaco-shell.vs-dark input:disabled {
	background-color: #333;
E
Erich Gamma 已提交
224 225
}

B
Benjamin Pasero 已提交
226 227 228
.monaco-shell.hc-black input,
.monaco-shell.hc-black textarea {
	background-color: #000;
E
Erich Gamma 已提交
229 230
}

B
Benjamin Pasero 已提交
231
/* START Keyboard Focus Indication Styles */
B
Benjamin Pasero 已提交
232

B
Benjamin Pasero 已提交
233 234 235 236 237 238 239 240 241
.monaco-shell.vs [tabindex="0"]:focus,
.monaco-shell.vs .synthetic-focus,
.monaco-shell.vs select:focus,
.monaco-shell.vs input[type="button"]:focus,
.monaco-shell.vs input[type="submit"]:focus,
.monaco-shell.vs input[type="search"]:focus,
.monaco-shell.vs input[type="text"]:focus, .monaco-shell.vs textarea:focus,
.monaco-shell.vs input[type="checkbox"]:focus {
	outline-color: rgba(0, 122, 204, 0.4);
E
Erich Gamma 已提交
242 243
}

B
Benjamin Pasero 已提交
244 245 246 247 248 249 250 251 252
.monaco-shell.vs-dark [tabindex="0"]:focus,
.monaco-shell.vs-dark .synthetic-focus,
.monaco-shell.vs-dark select:focus,
.monaco-shell.vs-dark input[type="button"]:focus,
.monaco-shell.vs-dark input[type="submit"]:focus,
.monaco-shell.vs-dark input[type="search"]:focus,
.monaco-shell.vs-dark input[type="text"]:focus, .monaco-shell.vs-dark textarea:focus,
.monaco-shell.vs-dark input[type="checkbox"]:focus {
	outline-color: rgba(14, 99, 156, 0.6);
E
Erich Gamma 已提交
253 254
}

B
Benjamin Pasero 已提交
255 256 257 258 259 260 261 262
.monaco-shell.hc-black [tabindex="0"]:focus,
.monaco-shell.hc-black .synthetic-focus,
.monaco-shell.hc-black select:focus,
.monaco-shell.hc-black input[type="button"]:focus,
.monaco-shell.hc-black input[type="text"]:focus, .monaco-shell.hc-black textarea:focus,
.monaco-shell.hc-black input[type="search"]:focus,
.monaco-shell.hc-black input[type="checkbox"]:focus {
	outline-color: #f38518;
E
Erich Gamma 已提交
263 264
}

B
Benjamin Pasero 已提交
265 266 267 268 269
.monaco-shell.vs .monaco-text-button:focus,
.monaco-shell.vs-dark .monaco-text-button:focus,
.monaco-shell.vs .action-button:focus,
.monaco-shell.vs-dark .action-button:focus {
	outline-color: rgba(255, 255, 255, .5); /* buttons have a blue color, so focus indication needs to be different */
E
Erich Gamma 已提交
270 271
}

B
Benjamin Pasero 已提交
272 273
.monaco-shell.vs .monaco-tree.focused .monaco-tree-row.focused [tabindex="0"]:focus {
	outline-color: #007ACC; /* higher contrast color for focusable elements in a row that shows focus feedback */
E
Erich Gamma 已提交
274 275
}

B
Benjamin Pasero 已提交
276 277
.monaco-shell.vs-dark .monaco-tree.focused .monaco-tree-row.focused [tabindex="0"]:focus {
	outline-color: #007ACC; /* higher contrast color for focusable elements in a row that shows focus feedback */
E
Erich Gamma 已提交
278 279
}

B
Benjamin Pasero 已提交
280 281 282
.monaco-shell.vs .monaco-tree.focused.no-focused-item:focus:before {
	outline-color: rgba(0, 122, 204, 0.4); /* we still need to handle the empty tree or no focus item case */
}
E
Erich Gamma 已提交
283

B
Benjamin Pasero 已提交
284 285
.monaco-shell.vs-dark .monaco-tree.focused.no-focused-item:focus:before {
	outline-color: rgba(14, 99, 156, 0.6); /* we still need to handle the empty tree or no focus item case */
E
Erich Gamma 已提交
286 287
}

B
Benjamin Pasero 已提交
288 289
.monaco-shell.hc-black .monaco-tree.focused.no-focused-item:focus:before {
	outline-color: #f38518; /* we still need to handle the empty tree or no focus item case */
E
Erich Gamma 已提交
290 291
}

B
Benjamin Pasero 已提交
292
/* END Keyboard Focus Indication Styles */