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

.monaco-workbench .part.activitybar {
	width: 48px;
	height: 100%;
}

.monaco-workbench .activitybar.bordered::before {
	content: '';
	float: left;
	position: absolute;
	box-sizing: border-box;
	height: 100%;
	width: 0px;
	border-color: inherit;
}

.monaco-workbench .activitybar.left.bordered::before {
	right: 0;
	border-right-style: solid;
	border-right-width: 1px;
}

.monaco-workbench .activitybar.right.bordered::before {
	left: 0;
	border-left-style: solid;
	border-left-width: 1px;
}

.monaco-workbench .activitybar > .content {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/*
 * Fix menu jumping and background inheritance in Safari
 */
.monaco-workbench.safari .activitybar > .content {
	position: absolute;
	background-color: inherit;
}

/** Home Bar */

.monaco-workbench .activitybar > .content > .home-bar {
	position: relative;
	width: 100%;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	order: -1;

	/* NOTE@coder: Hide since it doesn't seem to do anything when used with
	code-server except open the VS Code repository. */
	display: none !important;
}

.monaco-workbench .activitybar > .content > .home-bar > .home-bar-icon-badge {
	position: absolute;
	right: 10px;
	bottom: 9px;
	width: 14px;
	height: 14px;
	z-index: 1; /* on top of home indicator */
	background-image: url('../../../media/code-icon.svg');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 14px;
	pointer-events: none;
	border-top: 2px solid transparent;
	border-left: 2px solid transparent;
}

/** Viewlet Switcher */

.monaco-workbench .activitybar > .content .monaco-action-bar {
	text-align: left;
	background-color: inherit;
}

.monaco-workbench .activitybar .action-item:focus {
	outline: 0 !important; /* activity bar indicates focus custom */
}

.monaco-workbench .activitybar > .content > .composite-bar {
	margin-bottom: auto;
}

.monaco-workbench .activitybar > .content > .composite-bar-excess {
	height: 100%;
}

/** Menu Bar */

.monaco-workbench .activitybar .menubar {
	width: 100%;
	height: 35px;
}

.monaco-workbench .activitybar .menubar.compact .toolbar-toggle-more {
	width: 100%;
	height: 35px;
}
