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

.monaco-workbench .panel.integrated-terminal .xterm-viewport {
	/* Use the hack presented in http://stackoverflow.com/a/38748186/1156119 to get opacity transitions working on the scrollbar */
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	transition: background-color 800ms linear;
}

.monaco-workbench .panel.integrated-terminal .xterm-viewport::-webkit-scrollbar {
	width: 10px;
}

.monaco-workbench .panel.integrated-terminal .xterm-viewport::-webkit-scrollbar-track {
	opacity: 0;
}

.monaco-workbench .panel.integrated-terminal .xterm-viewport::-webkit-scrollbar-thumb {
	background-color: inherit;
}

.monaco-workbench .panel.integrated-terminal .xterm.focus .xterm-viewport,
.monaco-workbench .panel.integrated-terminal .xterm:focus .xterm-viewport,
.monaco-workbench .panel.integrated-terminal .xterm:hover .xterm-viewport {
	transition: opacity 100ms linear;
}

.monaco-workbench .panel.integrated-terminal .xterm .xterm-viewport::-webkit-scrollbar-thumb:hover {
	transition: opacity 0ms linear;
}

.monaco-workbench .panel.integrated-terminal .xterm .xterm-viewport::-webkit-scrollbar-thumb:window-inactive {
	background-color: inherit;
}