shell.css 8.4 KB
Newer Older
E
Erich Gamma 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 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
/*---------------------------------------------------------------------------------------------
 *  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-family: "Segoe WPC", "Segoe UI", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";
	font-size: 11px;
	-webkit-user-select: none;
	-ms-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: -moz-none;
	-o-user-select: none;
	user-select: none;
}

@-webkit-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@-moz-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@-ms-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 53 54 55
.monaco-shell.vs [tabindex="0"]:focus,
.monaco-shell.vs select:focus,
.monaco-shell.vs input[type="button"]:focus,
.monaco-shell.vs input[type="submit"]:focus,
56
.monaco-shell.vs input[type="text"]:focus, .monaco-shell.vs textarea:focus,
57
.monaco-shell.vs input[type="checkbox"]:focus {
B
Benjamin Pasero 已提交
58 59
	outline: 1px solid rgba(0, 122, 204, 0.4);
	outline-offset: -1px;
60
	opacity: 1 !important;
61 62
}

63 64 65 66
.monaco-shell.vs-dark [tabindex="0"]:focus,
.monaco-shell.vs-dark select:focus,
.monaco-shell.vs-dark input[type="button"]:focus,
.monaco-shell.vs-dark input[type="submit"]:focus,
67
.monaco-shell.vs-dark input[type="text"]:focus, .monaco-shell.vs-dark textarea:focus,
68
.monaco-shell.vs-dark input[type="checkbox"]:focus {
B
Benjamin Pasero 已提交
69 70
	outline: 1px solid rgba(14, 99, 156, 0.6);
	outline-offset: -1px;
71
	opacity: 1 !important;
72 73
}

74 75 76 77
.monaco-shell.hc-black [tabindex="0"]:focus,
.monaco-shell.hc-black select:focus,
.monaco-shell.hc-black input[type="button"]:focus,
.monaco-shell.hc-black input[type="submit"]:focus,
78
.monaco-shell.hc-black input[type="text"]:focus, .monaco-shell.hc-black textarea:focus,
79
.monaco-shell.hc-black input[type="checkbox"]:focus {
B
Benjamin Pasero 已提交
80
	outline: 2px solid #DF740C;
81 82 83
	outline-offset: -2px;
}

84 85
.monaco-shell.vs .monaco-tree.focused:focus .monaco-tree-rows:empty,
.monaco-shell.vs .monaco-tree.focused:focus.no-item-focus .monaco-tree-rows {
B
Benjamin Pasero 已提交
86 87
	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;
88 89
}

90 91
.monaco-shell.vs-dark .monaco-tree.focused:focus .monaco-tree-rows:empty,
.monaco-shell.vs-dark .monaco-tree.focused.no-item-focus:focus .monaco-tree-rows {
B
Benjamin Pasero 已提交
92 93
	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;
94 95
}

96 97
.monaco-shell.hc-black .monaco-tree.focused:focus .monaco-tree-rows:empty,
.monaco-shell.hc-black .monaco-tree.focused.no-item-focus:focus .monaco-tree-rows {
B
Benjamin Pasero 已提交
98
	outline: 2px solid #DF740C; /* we still need to handle the empty tree or no focus item case */
99 100 101
	outline-offset: -2px;
}

102 103 104 105
.monaco-shell .monaco-tree:focus {
	outline: 0 !important; /* tree indicates focus not via outline but through the focussed item */
}

B
Benjamin Pasero 已提交
106 107 108 109 110 111
.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,
.monaco-shell .monaco-tree.focused:active .monaco-tree-rows:empty,
B
Benjamin Pasero 已提交
112 113
.monaco-shell .monaco-tree.focused.no-item-focus:active .monaco-tree-rows,
.monaco-shell .monaco-action-bar .action-label:hover {
B
Benjamin Pasero 已提交
114
	outline: 0 !important; /* fixes some flashing outlines from showing up when clicking */
115 116
}

B
Benjamin Pasero 已提交
117 118
.monaco-shell .activitybar [tabindex="0"]:focus {
	outline: 0; /* activity bar indicates focus custom */
119 120
}

121
/* END Keyboard Focus Indication Styles */
122

E
Erich Gamma 已提交
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 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 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317
.monaco-shell a.prominent {
	text-decoration: underline;
}

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

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

.monaco-shell input {
	font-family: "Segoe UI", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";
	color: inherit;
}

.monaco-shell select {
	font-family: "Segoe UI","SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";
}

.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;
}

/* Notifications */

.monaco-shell .monaco-notification-container {
	position: absolute;
	width: 100%;
	height: 400px;
	top: calc(50% - 200px);
	top: -moz-calc(50% - 200px);
	top: -webkit-calc(50% - 200px);
	top: -ms-calc(50% - 200px);
	top: -o-calc(50% - 200px);
	background-color: #0E6198;
	color: white;
	border-top: 2px solid transparent;
	border-bottom: 2px solid transparent;
}

.monaco-shell .monaco-notification-container a {
	color: inherit;
	opacity: 0.6;
	text-decoration: underline;
}

.monaco-shell .monaco-notification-container .buttons {
	margin-top: 2em;
}

.monaco-shell .monaco-notification-container button {
	color: inherit;
	text-decoration: none;
	display: inline-block;
	padding: 6px 16px;
	margin-right: 12px;
	font-family: 'Segoe UI Semibold', "Segoe UI", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";
	font-weight: 400;
	font-size: 12px;
	min-width: 65px;
	border: 2px solid #fff;
	background-color: transparent;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	cursor: pointer;
}

.monaco-shell .monaco-notification-container button.default {
	background-color: rgba(255, 255, 255, 0.2);
}

.monaco-shell .monaco-notification-container button:disabled {
	opacity: 0.4;
}

.monaco-shell .monaco-notification-container button:not(:disabled):hover {
	color: inherit;
	background-color: rgba(255, 255, 255, 0.1);
}

.monaco-shell .monaco-notification-container button.default:not(:disabled)hover {
	background-color: rgba(255, 255, 255, 0.3);
}

.monaco-shell .monaco-notification-container > .notification {
	max-width: 800px;
	height: 100%;
	margin: 0 auto;
	padding: 0 16px;
	overflow-y: auto;
	overflow-x: hidden;
	font-family: "Segoe WPC", "Segoe UI", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";
	font-size: 14px;
}

.monaco-shell .monaco-notification-container > .notification > .notification-title {
	font-family: "Segoe UI Light", "Segoe UI", "SFUIText-Light", "HelveticaNeue-Light", "Helvetica Neue", sans-serif, "Droid Sans Fallback";
	font-weight: 300;
	font-size: 2.5em;
}

.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 .monaco-modal-view.visible .monaco-modal-view-background {
	opacity: 0.6;
}

.monaco-shell.hc-black .monaco-notification-container {
	background-color: #0C141F;
	color: white;
	border-top: 2px solid #6FC3DF;
	border-bottom: 2px solid  #6FC3DF;
}

.monaco-shell.hc-black .monaco-notification-container input {
	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;
}