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

/* Debug viewlet */

.debug-viewlet {
	height: 100%;
}

/* Actionbar actions */

.monaco-workbench .debug-action.configure {
	background: url('configure.svg') center center no-repeat;
}

.monaco-workbench .debug-action.toggle-repl {
	background: url('repl.svg') center center no-repeat;
}

.monaco-workbench .debug-action.notification:before {
	content: '';
	width: 6px;
	height: 6px;
	background-color: #CC6633;
	position: absolute;
	top: 11px;
	right: 5px;
	border-radius: 10px;
	border: 1px solid white;
}

.vs-dark .monaco-workbench .debug-action.configure,
.hc-black .monaco-workbench .debug-action.configure {
	background: url('configure-inverse.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .debug-action.toggle-repl,
.hc-black .monaco-workbench .debug-action.toggle-repl {
	background: url('repl-inverse.svg') center center no-repeat;
}

.monaco-workbench .debug-action.start {
	background: url('continue.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .debug-action.start,
.hc-black .monaco-workbench .debug-action.start {
	background: url('continue-inverse.svg') center center no-repeat;
}

/* Debug viewlet trees */

.debug-viewlet .monaco-tree .monaco-tree-row > .content {
	line-height: 22px;
}

.monaco-workbench .monaco-action-bar .action-item.select-container {
	overflow: hidden;
}

.debug-viewlet .line-number {
	background: rgba(136, 136, 136, 0.3);
	border-radius: 2px;
	font-size: 0.9em;
	padding: 0 3px;
	margin-left: 0.8em;
}

.debug-viewlet .monaco-tree .monaco-tree-row.selected .line-number,
.debug-viewlet .monaco-tree .monaco-tree-row.selected .thread > .state > .label,
.debug-viewlet .monaco-tree .monaco-tree-row.selected .process > .state > .label {
	background-color: #ffffff;
	color: #666;
}

.debug-viewlet .monaco-tree .monaco-tree-row .content .monaco-action-bar {
	visibility: hidden;
	flex-shrink: 0;
}

.debug-viewlet .monaco-tree .monaco-tree-row .content .monaco-action-bar .action-label {
	width: 16px;
	height: 16px;
	vertical-align: text-bottom;
}

.debug-viewlet .monaco-tree .monaco-tree-row:hover .content .monaco-action-bar,
.debug-viewlet .monaco-tree.focused .monaco-tree-row.focused .content .monaco-action-bar {
	visibility: visible;
}

.debug-viewlet .disabled {
	opacity: 0.35;
}

/* Call stack */

.debug-viewlet .debug-call-stack-title {
	display: flex;
	width: 100%;
}

.debug-viewlet .debug-call-stack-title > .pause-message {
	flex: 1;
	text-align: right;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	padding-left: 5px;
}

.debug-viewlet .debug-call-stack-title > .pause-message > .label {
	border-radius: 3px;
	padding: 1px 2px;
	font-size: 9px;
}

.debug-viewlet .debug-call-stack-title > .pause-message > .label.exception {
	background-color: #A31515;
	color: rgb(255, 255, 255);
}

.vs-dark .debug-viewlet .debug-call-stack-title > .pause-message > .label.exception {
	background-color: #6C2022;
	color: inherit;
}

.hc-black .debug-viewlet .debug-call-stack-title > .pause-message > .label.exception {
	background-color: #6C2022;
	color: inherit;
}

.debug-viewlet .debug-call-stack .thread,
.debug-viewlet .debug-call-stack .process {
	display: flex;
}

.debug-viewlet .debug-call-stack .thread > .state,
.debug-viewlet .debug-call-stack .process > .state {
	flex: 1;
	text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 10px;
	text-transform: uppercase;
}

.debug-viewlet .debug-call-stack .thread > .state > .label,
.debug-viewlet .debug-call-stack .process > .state > .label {
	background: rgba(136, 136, 136, 0.3);
	border-radius: 2px;
	font-size: 0.8em;
	padding: 0 3px;
}

.debug-viewlet .debug-call-stack .stack-frame {
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 0.8em;
}

.debug-viewlet .debug-call-stack .stack-frame > .file {
	float: right;
}

.debug-viewlet .debug-call-stack .stack-frame > .file > .line-number.unavailable {
	display: none;
}

.debug-viewlet .debug-call-stack > .monaco-tree-row:not(.selected) .stack-frame > .file {
	color: rgba(108, 108, 108, 0.8);
}

.vs-dark .debug-viewlet .debug-call-stack > .monaco-tree-row:not(.selected) .stack-frame > .file {
	color: rgba(204, 204, 204, 0.6);
}

.debug-viewlet .debug-call-stack .stack-frame > .file:not(:first-child) {
	margin-left: 0.8em;
}

.debug-viewlet .debug-call-stack .load-more {
	font-style: italic;
	text-align: center;
}

.monaco-workbench .debug-viewlet .monaco-tree-row .expression {
	white-space: pre;
}

.debug-viewlet .debug-call-stack .error {
	font-style: italic;
	text-overflow: ellipsis;
	overflow: hidden;
}

/* Variables & Expression view */

.debug-viewlet .scope {
	font-weight: bold;
	font-size: 11px;
}

/* Animation of changed values in Debug viewlet */
@keyframes debugViewletValueChanged {
	0% { background-color: rgba(86, 156, 214, 0) }
	5% { background-color: rgba(86, 156, 214, .75) }
	100% { background-color: rgba(86, 156, 214, .3) }
}

@keyframes debugViewletValueChangedDark {
	0% { background-color: rgba(86, 156, 214, 0) }
	5% { background-color: rgba(86, 156, 214, .5) }
	100% { background-color: rgba(86, 156, 214, .2) }
}

.debug-viewlet .monaco-tree-row .expression .value.changed {
	padding: 2px;
	margin: 4px;
	border-radius: 4px;
	background-color: rgba(86, 156, 214, .5);
	animation-name: debugViewletValueChanged;
	animation-duration: .75s;
	animation-fill-mode: forwards;
}

.debug-viewlet .monaco-inputbox {
	width: 100%;
	line-height: normal;
}

.debug-viewlet .inputBoxContainer {
	box-sizing: border-box;
	flex-grow: 1;
}

.debug-viewlet .debug-watch .monaco-inputbox {
	font-family: Monaco, Menlo, Consolas, "Droid Sans Mono", "Inconsolata", "Courier New", monospace, "Droid Sans Fallback";
}

.debug-viewlet .monaco-inputbox > .wrapper {
	height: 19px;
}

.debug-viewlet .monaco-inputbox > .wrapper > .input {
	padding: 0px;
	color: initial;
}

.debug-viewlet .watch-expression {
	display: flex;
}

.debug-viewlet .watch-expression .expression {
	flex : 1;
}

.debug-viewlet .debug-action.add-watch-expression,
.debug-viewlet .debug-action.add-function-breakpoint {
	background: url('add.svg') center center no-repeat;
}

.debug-viewlet .focused .monaco-tree-row.selected:not(.highlighted) > .content.actions .debug-action.add-watch-expression {
	background: url("add-focus.svg") center center no-repeat;
}

.vs-dark .debug-viewlet .debug-action.add-watch-expression,
.vs-dark .debug-viewlet .debug-action.add-function-breakpoint,
.hc-black .debug-viewlet .debug-action.add-watch-expression {
	background: url('add-inverse.svg') center center no-repeat;
}

.vs-dark .debug-viewlet .monaco-tree-row .expression .value.changed {
	animation-name: debugViewletValueChanged;
}

.vs-dark .debug-viewlet .monaco-inputbox > .wrapper > .input,
.hc-black .debug-viewlet .monaco-inputbox > .wrapper > .input {
	color: #CCC;
}

/* Breakpoints */

.debug-viewlet .debug-breakpoints .breakpoint {
	display: flex;
	padding-right: 0.8em;
	flex: 1;
	align-items: center;
}

.debug-viewlet .debug-breakpoints .breakpoint input {
	flex-shrink: 0;
}

.debug-viewlet .debug-breakpoints .breakpoint > .file-path {
	opacity: 0.7;
	font-size: 0.9em;
	margin-left: 0.8em;
	flex: 1;
	text-overflow: ellipsis;
	overflow: hidden;
}


.debug-viewlet .debug-action.remove {
	background: url('remove.svg') center center no-repeat;
}

.debug-viewlet .debug-action.remove-all {
	background: url('remove-all.svg') center center no-repeat;
}

.debug-viewlet .debug-action.breakpoints-activate {
	background: url('breakpoints-activate.svg') center center no-repeat;
}

.debug-viewlet .focused .monaco-tree-row.selected:not(.highlighted) > .content.actions .debug-action.remove,
.vs-dark .debug-viewlet .focused .monaco-tree-row.selected:not(.highlighted) > .content.actions .debug-action.remove {
	background: url("remove-focus.svg") center center no-repeat;
}

.vs-dark .debug-viewlet .debug-action.remove,
.hc-black .debug-viewlet .debug-action.remove {
	background: url('remove-inverse.svg') center center no-repeat;
}

.vs-dark .debug-viewlet .debug-action.remove-all,
.hc-black .debug-viewlet .debug-action.remove-all {
	background: url('remove-all-inverse.svg') center center no-repeat;
}

.vs-dark .debug-viewlet .debug-action.breakpoints-activate,
.hc-black .debug-viewlet .debug-action.breakpoints-activate {
	background: url('breakpoints-activate-inverse.svg') center center no-repeat;
}

/* No workspace view */

.debug-viewlet > .noworkspace-view {
	padding: 0 20px 0 20px;
}

.debug-viewlet > .noworkspace-view > p {
	line-height: 1.5em;
}
