shell.css 9.2 KB
Newer Older
E
Erich Gamma 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*---------------------------------------------------------------------------------------------
 *  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%;
	color: #6C6C6C;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-size: 11px;
	-webkit-user-select: none;
}

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

J
Joao Moreno 已提交
19 20 21 22 23
.monaco-shell { font-family: "Segoe WPC", "Segoe UI", ".SFNSDisplay-Light", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback"; }
.monaco-shell:lang(zh-Hans) { font-family: "Segoe WPC", "Segoe UI", ".SFNSDisplay-Light", "SFUIText-Light", "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: "Segoe WPC", "Segoe UI", ".SFNSDisplay-Light", "SFUIText-Light", "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: "Segoe WPC", "Segoe UI", ".SFNSDisplay-Light", "SFUIText-Light", "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: "Segoe WPC", "Segoe UI", ".SFNSDisplay-Light", "SFUIText-Light", "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 已提交
24

E
Erich Gamma 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
@-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;
}

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

.monaco-shell a.plain:hover, .monaco-shell a.plain.hover {
	color: inherit;
	text-decoration: none;
}

50 51
/* START Keyboard Focus Indication Styles */

52
.monaco-shell.vs [tabindex="0"]:focus,
53
.monaco-shell.vs .synthetic-focus,
54
.monaco-shell.vs select:focus,
55 56
.monaco-shell.vs input[type="button"]:focus,
.monaco-shell.vs input[type="submit"]:focus,
J
Joao Moreno 已提交
57
.monaco-shell.vs input[type="search"]:focus,
58
.monaco-shell.vs input[type="text"]:focus, .monaco-shell.vs textarea:focus,
59
.monaco-shell.vs input[type="checkbox"]:focus {
B
Benjamin Pasero 已提交
60 61
	outline: 1px solid rgba(0, 122, 204, 0.4);
	outline-offset: -1px;
62
	opacity: 1 !important;
63 64
}

J
Joao Moreno 已提交
65 66 67
.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 已提交
68 69 70
	display: none;
}

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

80
.monaco-shell.vs-dark [tabindex="0"]:focus,
81
.monaco-shell.vs-dark .synthetic-focus,
82 83 84
.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 已提交
85
.monaco-shell.vs-dark input[type="search"]:focus,
86
.monaco-shell.vs-dark input[type="text"]:focus, .monaco-shell.vs-dark textarea:focus,
87
.monaco-shell.vs-dark input[type="checkbox"]:focus {
B
Benjamin Pasero 已提交
88 89
	outline: 1px solid rgba(14, 99, 156, 0.6);
	outline-offset: -1px;
90
	opacity: 1 !important;
91 92
}

93
.monaco-shell.hc-black [tabindex="0"]:focus,
94
.monaco-shell.hc-black .synthetic-focus,
95 96
.monaco-shell.hc-black select:focus,
.monaco-shell.hc-black input[type="button"]:focus,
97
.monaco-shell.hc-black input[type="text"]:focus, .monaco-shell.hc-black textarea:focus,
J
Joao Moreno 已提交
98
.monaco-shell.hc-black input[type="search"]:focus,
99
.monaco-shell.hc-black input[type="checkbox"]:focus {
100
	outline: 2px solid #f38518;
101 102 103
	outline-offset: -1px;
}

104 105
.monaco-shell.vs .monaco-text-button:focus,
.monaco-shell.vs-dark .monaco-text-button:focus,
106
.monaco-shell.vs .action-button:focus,
107 108 109 110
.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 */
}

111
.monaco-shell.vs .monaco-text-button:focus,
112 113 114 115 116 117 118 119
.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. */
}

120 121
.monaco-shell.hc-black .synthetic-focus input {
	background:transparent; /* Search input focus fix when in high contrast */
122 123
}

124 125 126 127 128 129 130 131
.monaco-shell.vs .monaco-tree.focused .monaco-tree-row.focused [tabindex="0"]:focus {
	outline: 1px solid #007ACC; /* higher contrast color for focusable elements in a row that shows focus feedback */
}

.monaco-shell.vs-dark .monaco-tree.focused .monaco-tree-row.focused [tabindex="0"]:focus {
	outline: 1px solid #007ACC; /* higher contrast color for focusable elements in a row that shows focus feedback */
}

132
.monaco-shell .monaco-tree.focused.no-focused-item:focus:before {
133 134 135 136 137 138 139 140
	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 */
141 142
}

143
.monaco-shell.vs .monaco-tree.focused.no-focused-item:focus:before {
144 145 146 147
	outline: 1px solid rgba(0, 122, 204, 0.4); /* we still need to handle the empty tree or no focus item case */
	outline-offset: -1px;
}

148
.monaco-shell.vs-dark .monaco-tree.focused.no-focused-item:focus:before {
B
Benjamin Pasero 已提交
149 150
	outline: 1px solid rgba(14, 99, 156, 0.6); /* we still need to handle the empty tree or no focus item case */
	outline-offset: -1px;
151 152
}

153
.monaco-shell.hc-black .monaco-tree.focused.no-focused-item:focus:before {
154
	outline: 2px solid #f38518; /* we still need to handle the empty tree or no focus item case */
155 156 157
	outline-offset: -2px;
}

B
Benjamin Pasero 已提交
158 159 160 161
.monaco-shell .synthetic-focus :focus {
	outline: 0 !important; /* elements within widgets that draw synthetic-focus should never show focus */
}

162 163 164
.monaco-shell .monaco-inputbox.info.synthetic-focus,
.monaco-shell .monaco-inputbox.warning.synthetic-focus,
.monaco-shell .monaco-inputbox.error.synthetic-focus,
B
Benjamin Pasero 已提交
165 166 167
.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 {
168
	outline: 0 !important; /* outline is not going well with decoration */
B
Benjamin Pasero 已提交
169 170
}

171
.monaco-shell .monaco-tree.focused:focus {
172
	outline: 0 !important; /* tree indicates focus not via outline but through the focussed item */
173 174
}

B
Benjamin Pasero 已提交
175 176 177 178 179
.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 已提交
180
.monaco-shell .monaco-tree .monaco-tree-row .monaco-action-bar .action-item [tabindex="0"]:hover,
181
.monaco-shell .monaco-tree.focused.no-focused-item:active:before {
B
Benjamin Pasero 已提交
182
	outline: 0 !important; /* fixes some flashing outlines from showing up when clicking */
183 184
}

B
Benjamin Pasero 已提交
185
.monaco-shell .activitybar [tabindex="0"]:focus {
186 187 188 189
	outline: 0 !important; /* activity bar indicates focus custom */
}

.monaco-shell .part.editor .binary-container {
B
Benjamin Pasero 已提交
190
	outline: 0 !important;
191 192
}

193
/* END Keyboard Focus Indication Styles */
194

E
Erich Gamma 已提交
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
.monaco-shell a.prominent {
	text-decoration: underline;
}

.monaco-shell a.strong {
	font-weight: bold;
}

a:active {
	color: inherit;
	background-color: inherit;
}

.monaco-shell input {
	color: inherit;
B
Benjamin Pasero 已提交
210
	font-family: inherit;
E
Erich Gamma 已提交
211 212 213
}

.monaco-shell select {
B
Benjamin Pasero 已提交
214
	font-family: inherit;
E
Erich Gamma 已提交
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296
}

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

.monaco-shell .context-view .tooltip {
	background-color: white;
	border: 1px solid #ccc;
}

.monaco-shell .context-view.bottom.right .tooltip:before {
	border-width: 6px;
	border-bottom: 6px solid #ccc;
}

.monaco-shell .context-view.bottom.right .tooltip:after {
	border-width: 5px;
	border-bottom: 5px solid white;
}

.monaco-shell .context-view .monaco-menu .actions-container {
	min-width: 160px;
}

.monaco-shell .monaco-menu .action-label.check {
	font-weight: bold;
}

.monaco-shell .monaco-menu .action-label.uncheck {
	font-weight: normal;
}

.monaco-shell input:disabled {
	background-color: #E1E1E1;
}

/**
 * Dark Theme
 */
.monaco-shell.vs-dark {
	color: #BBB;
	background-color: #1E1E1E;
}

.monaco-shell.vs-dark .monaco-action-bar.vertical .action-label.separator {
	border-bottom-color: #666;
}

.monaco-shell.vs-dark .context-view .tooltip {
	background-color: #1E1E1E;
	border-color: #707070;
}

.monaco-shell.vs-dark .context-view.bottom.right .tooltip:before {
	border-bottom: 6px solid #707070;
}

.monaco-shell.vs-dark .context-view.bottom.right .tooltip:after {
	border-bottom: 5px solid #1E1E1E;
}

.monaco-shell.vs-dark input:disabled {
	background-color: #333;
}

/**
 * High Contrast Theme
 */
.monaco-shell.hc-black { color: #fff; background-color: #000; }

.monaco-shell.hc-black .context-view .tooltip {
	background-color: black;
}

.monaco-shell.hc-black .context-view .tooltip:before {
	border-width: 0 !important;
}

.monaco-shell.hc-black .context-view .tooltip:after {
	border-width: 0 !important;
}