/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.quick-open-widget .extension {
	padding: 0 14px 0 0;
	height: 48px;
}

.quick-open-widget .extension.loading,
.extensions-viewlet > .extensions .extension.loading,
.extension-editor > .body > .content.loading {
	background: url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjU3NSIgaGVpZ2h0PSI2cHgiPg0KICA8c3R5bGU+DQogICAgY2lyY2xlIHsNCiAgICAgIGFuaW1hdGlvbjogYmFsbCAyLjVzIGN1YmljLWJlemllcigwLjAwMCwgMS4wMDAsIDEuMDAwLCAwLjAwMCkgaW5maW5pdGU7DQogICAgICBmaWxsOiAjYmJiOw0KICAgIH0NCg0KICAgICNiYWxscyB7DQogICAgICBhbmltYXRpb246IGJhbGxzIDIuNXMgbGluZWFyIGluZmluaXRlOw0KICAgIH0NCg0KICAgICNjaXJjbGUyIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjFzOyB9DQogICAgI2NpcmNsZTMgeyBhbmltYXRpb24tZGVsYXk6IDAuMnM7IH0NCiAgICAjY2lyY2xlNCB7IGFuaW1hdGlvbi1kZWxheTogMC4zczsgfQ0KICAgICNjaXJjbGU1IHsgYW5pbWF0aW9uLWRlbGF5OiAwLjRzOyB9DQoNCiAgICBAa2V5ZnJhbWVzIGJhbGwgew0KICAgICAgZnJvbSB7IHRyYW5zZm9ybTogbm9uZTsgfQ0KICAgICAgMjAlIHsgdHJhbnNmb3JtOiBub25lOyB9DQogICAgICA4MCUgeyB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoODY0cHgpOyB9DQogICAgICB0byB7IHRyYW5zZm9ybTogdHJhbnNsYXRlWCg4NjRweCk7IH0NCiAgICB9DQoNCiAgICBAa2V5ZnJhbWVzIGJhbGxzIHsNCiAgICAgIGZyb20geyB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTQwcHgpOyB9DQogICAgICB0byB7IHRyYW5zZm9ybTogdHJhbnNsYXRlWCgzMHB4KTsgfQ0KICAgIH0NCiAgPC9zdHlsZT4NCiAgPGcgaWQ9ImJhbGxzIj4NCiAgICA8Y2lyY2xlIGNsYXNzPSJjaXJjbGUiIGlkPSJjaXJjbGUxIiBjeD0iLTExNSIgY3k9IjMiIHI9IjMiLz4NCiAgICA8Y2lyY2xlIGNsYXNzPSJjaXJjbGUiIGlkPSJjaXJjbGUyIiBjeD0iLTEzMCIgY3k9IjMiIHI9IjMiIC8+DQogICAgPGNpcmNsZSBjbGFzcz0iY2lyY2xlIiBpZD0iY2lyY2xlMyIgY3g9Ii0xNDUiIGN5PSIzIiByPSIzIiAvPg0KICAgIDxjaXJjbGUgY2xhc3M9ImNpcmNsZSIgaWQ9ImNpcmNsZTQiIGN4PSItMTYwIiBjeT0iMyIgcj0iMyIgLz4NCiAgICA8Y2lyY2xlIGNsYXNzPSJjaXJjbGUiIGlkPSJjaXJjbGU1IiBjeD0iLTE3NSIgY3k9IjMiIHI9IjMiIC8+DQogIDwvZz4NCjwvc3ZnPg==') center center no-repeat;
}

.quick-open-widget .extension.loading > * {
	opacity: 0.4;
}

.quick-open-widget .extension .row {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	height: 24px;
}

.quick-open-widget .extension .row .actions {
	float: right;
}

.quick-open-widget .extension .description {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	opacity: 0.6;
}

.quick-open-widget .extension .install {
	margin-left: 6px;
	padding: 1px 3px;
	border-radius: 3px;
	background-color: rgba(132, 132, 132, 0.3);
	font-size: smaller;
	opacity: 0.7;
}

.quick-open-widget .extension .install > .octicon {
	font-size: small;
	margin-right: 3px;
}

.quick-open-widget .extension .icon.octicon-x:before {
	margin-right: 2px;
	margin-top: 2px;
	display: inline-block;
}

.quick-open-widget .extension .published {
	float: right;
	opacity: 0.6;
	font-size: smaller;
}

.quick-open-widget .extension .published > .version {
	opacity: 0.6;
	margin-right: 0.5em;
}

@keyframes move-background {
	to { background-position: 8px 0; }
}

.quick-open-widget .extension .actions .action-item:not(.disabled) {
	display: none;
}

.quick-open-widget .monaco-tree-row:hover .extension .actions .action-item,
.quick-open-widget .monaco-tree-row.focused .extension .actions .action-item {
	display: inherit;
}

.quick-open-widget .extension .actions .action-item:not(:first-child) {
	margin-left: 2px;
}

.quick-open-widget .extension .actions .action-item {
	line-height: 12px;
}

.quick-open-widget .extension .actions .action-label {
	width: 12px;
	height: 12px;
	font-size: smaller;
	border: 1px solid rgba(132, 132, 132, 0.5);
	/*border-radius: 2px;*/
	padding: 1px;
	vertical-align: text-bottom;
	text-transform: uppercase;
	color: rgb(0, 157, 255);
	border-color: rgb(0, 157, 255);
}

.quick-open-widget .monaco-tree.focused .monaco-tree-row.focused .extension .actions .action-label:focus {
	outline: 1px solid #DF740C;
	outline-offset: -1px;
}

.quick-open-widget .monaco-tree.focused .monaco-tree-row.focused .extension .actions .action-label:active {
	outline: none;
}

.quick-open-widget .extension .actions .action-label:not(.icon) {
	padding: 1px 3px;
	display: inline-block;
	width: auto;
	font-size: x-small;
}

.quick-open-widget .extension .actions .action-item.disabled .action-label {
	animation: move-background 0.5s linear infinite;
	background-color: rgba(132, 132, 132, 0.5);
	background-size: 8px;
	background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.5) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.5) 75%, transparent 75%, transparent);
	color: rgb(0, 0, 0);
	border-color: rgb(0, 0, 0);
}

.quick-open-widget .extension .actions .action-item .action-label:hover {
	text-decoration: none;
}

.quick-open-widget .extension .actions .action-item:not(.disabled) .action-label:hover {
	color: inherit;
	background: rgba(132, 132, 132, 0.2);
	border-color: #CCC;
}

.quick-open-widget .extension .actions .action-item:not(.disabled) .action-label:active {
	background: rgba(132, 132, 132, 0.5);
}

.quick-open-widget .extension .actions .action-item:active {
	transform: none;
}

/* Status bar */
.monaco-shell .extensions-statusbar {
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	position: relative;
	padding: 0 5px;
	width: 14px;
}

.monaco-shell .extensions-statusbar > .icon {
	background-size: 14px;
	width: 14px;
	height: 14px;
}

.monaco-shell .extensions-statusbar > .icon,
.monaco-workbench > .activitybar .monaco-action-bar .action-label.extensions {
	background: url('extensions-status.svg') center center no-repeat;
}

.monaco-shell .extensions-statusbar.has-updates::after {
	content: '';
	width: 6px;
	height: 6px;
	background-color: #39A71E;
	position: absolute;
	top: 2px;
	right: 3px;
	border-radius: 10px;
	border: 1px solid white;
}

.monaco-shell .extensions-statusbar.has-errors::after {
	content: '';
	width: 6px;
	height: 6px;
	background-color: #CC6633;
	position: absolute;
	top: 2px;
	right: 3px;
	border-radius: 10px;
	border: 1px solid white;
}

.monaco-shell .extensions-statusbar.is-installing .icon {
	opacity: 0.8;
}

.monaco-shell .extensions-statusbar.is-installing .icon::before {
	content: '';
	display: block;
	height: 100%;
	width: 100%;
	background-color: rgba(132, 132, 132, 0.5);
	background-size: 8px;
	background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.5) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.5) 75%, transparent 75%, transparent);
	animation: move-background 0.5s linear infinite;
}

/* Global action */

.monaco-workbench > .activitybar .monaco-action-bar .action-label.extensions {
	background-size: 22px;
	background-repeat: no-repeat;
	background-position: 50% !important;
}