statusbarpart.css 3.4 KB
Newer Older
E
Erich Gamma 已提交
1 2 3 4 5
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

6
.monaco-workbench .part.statusbar {
E
Erich Gamma 已提交
7
	box-sizing: border-box;
8
	cursor: default;
E
Erich Gamma 已提交
9 10 11
	width: 100%;
	height: 22px;
	font-size: 12px;
12
	display: flex;
13
	overflow: visible;
E
Erich Gamma 已提交
14 15
}

B
Benjamin Pasero 已提交
16 17 18 19 20 21 22 23
.monaco-workbench .part.statusbar.status-border-top::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	pointer-events: none;
	background-color: var(--status-border-top-color);
B
Benjamin Pasero 已提交
24 25
	width: 100%;
	height: 1px;
B
Benjamin Pasero 已提交
26 27
}

28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
.monaco-workbench .part.statusbar > .left-items,
.monaco-workbench .part.statusbar > .right-items {
	display: flex;
	flex-wrap: wrap; /* individual entries should not shrink since we do not control their content */
}

.monaco-workbench .part.statusbar > .right-items {
	flex-direction: row-reverse; /* ensures that the most right elements wrap last when space is little */
}

.monaco-workbench .part.statusbar > .left-items {
	flex-grow: 1; /* left items push right items to the far right end */
}

.monaco-workbench  .part.statusbar > .items-container > .statusbar-item {
E
Erich Gamma 已提交
43 44 45 46 47 48
	display: inline-block;
	line-height: 22px;
	height: 100%;
	vertical-align: top;
}

49
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak {
50 51 52
	position: relative;
}

53
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak:before {
54 55
	content: '';
	position: absolute;
56
	left: calc(50% - 9px); /* 3px (margin) + 5px (padding) + 1px (icon) = 9px */
57 58 59 60 61 62 63
	top: -5px;
	border-bottom-width: 5px;
	border-bottom-style: solid;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
}

64
.monaco-workbench .part.statusbar > .items-container > .statusbar-item > :first-child {
65 66
	margin-right: 3px;
	margin-left: 3px;
E
Erich Gamma 已提交
67 68
}

69
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.left.first-visible-item {
70
	padding-left: 7px; /* Add padding to the most left status bar item */
71
}
72

73
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.right.last-visible-item {
74
	padding-right: 7px; /* Add padding to the most right status bar item */
75
}
76 77

/* tweak appearance for items with background to improve hover feedback */
78 79
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color.left.first-visible-item,
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color.right.last-visible-item {
80 81 82 83
	padding-right: 0;
	padding-left: 0;
}

84
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color > :first-child {
85 86 87 88
	margin-right: 0;
	margin-left: 0;
	padding-left: 10px;
	padding-right: 10px;
89
}
90

91
.monaco-workbench .part.statusbar > .items-container > .statusbar-item > a {
E
Erich Gamma 已提交
92
	cursor: pointer;
M
Miguel Solorio 已提交
93
	display: flex;
94
	height: 100%;
E
Erich Gamma 已提交
95 96
	padding: 0 5px 0 5px;
	white-space: pre; /* gives some degree of styling */
M
Miguel Solorio 已提交
97
	align-items: center
E
Erich Gamma 已提交
98 99
}

100 101 102 103 104
.monaco-workbench .part.statusbar > .items-container > .statusbar-item > a:hover {
	text-decoration: none;
}

.monaco-workbench .part.statusbar > .items-container > .statusbar-item > a.disabled {
B
Benjamin Pasero 已提交
105 106 107
	pointer-events: none;
}

M
Miguel Solorio 已提交
108
.monaco-workbench .part.statusbar > .items-container > .statusbar-item  span.codicon {
E
Erich Gamma 已提交
109 110
	text-align: center;
	font-size: 14px;
M
Miguel Solorio 已提交
111
	color: inherit;
E
Erich Gamma 已提交
112
}