statusbarpart.css 2.8 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 12 13
	width: 100%;
	height: 22px;
	font-size: 12px;
}

14
.monaco-workbench  .part.statusbar > .statusbar-item {
E
Erich Gamma 已提交
15 16 17 18 19 20
	display: inline-block;
	line-height: 22px;
	height: 100%;
	vertical-align: top;
}

21
.monaco-workbench .part.statusbar > .statusbar-item.has-beak {
22 23 24
	position: relative;
}

25
.monaco-workbench .part.statusbar > .statusbar-item.has-beak:before {
26 27 28 29 30 31 32 33 34 35
	content: '';
	position: absolute;
	left: 11px;
	top: -5px;
	border-bottom-width: 5px;
	border-bottom-style: solid;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
}

36 37 38 39 40
.monaco-workbench .part.statusbar > .statusbar-item.left > :first-child,
.monaco-workbench .part.statusbar > .statusbar-item.right > :first-child
{
	margin-right: 3px;
	margin-left: 3px;
E
Erich Gamma 已提交
41 42
}

43
.monaco-workbench .part.statusbar > .statusbar-item.right {
E
Erich Gamma 已提交
44
	float: right;
J
Joao Moreno 已提交
45 46
}

47
/* adding padding to the most left status bar item */
B
Benjamin Pasero 已提交
48 49
.monaco-workbench .part.statusbar > .statusbar-item.left:first-child,
.monaco-workbench .part.statusbar > .statusbar-item.right + .statusbar-item.left {
50
	padding-left: 7px;
51
}
52

53
/* adding padding to the most right status bar item */
54
.monaco-workbench .part.statusbar > .statusbar-item.right:first-child {
55
	padding-right: 7px;
56
}
57 58 59 60

/* tweak appearance for items with background to improve hover feedback */
.monaco-workbench .part.statusbar > .statusbar-item.has-background-color.left:first-child,
.monaco-workbench .part.statusbar > .statusbar-item.right + .statusbar-item.has-background-color.left,
61
.monaco-workbench .part.statusbar > .statusbar-item.has-background-color.right:first-child {
62 63 64 65 66 67 68 69 70 71 72
	padding-right: 0;
	padding-left: 0;
}

.monaco-workbench .part.statusbar > .statusbar-item.has-background-color.left > :first-child,
.monaco-workbench .part.statusbar > .statusbar-item.has-background-color.right > :first-child
{
	margin-right: 0;
	margin-left: 0;
	padding-left: 10px;
	padding-right: 10px;
73
}
74

75
.monaco-workbench .part.statusbar > .statusbar-item a {
E
Erich Gamma 已提交
76 77
	cursor: pointer;
	display: inline-block;
78
	height: 100%;
E
Erich Gamma 已提交
79 80
}

81
.monaco-workbench .part.statusbar > .statusbar-entry > span {
82
	height: 100%;
83 84
}

85 86
.monaco-workbench .part.statusbar > .statusbar-entry > span,
.monaco-workbench .part.statusbar > .statusbar-entry > a {
E
Erich Gamma 已提交
87 88 89 90
	padding: 0 5px 0 5px;
	white-space: pre; /* gives some degree of styling */
}

91
.monaco-workbench .part.statusbar > .statusbar-entry span.octicon {
E
Erich Gamma 已提交
92 93 94 95
	text-align: center;
	font-size: 14px;
}

96
.monaco-workbench .part.statusbar > .statusbar-item a:hover {
E
Erich Gamma 已提交
97
	text-decoration: none;
B
Benjamin Pasero 已提交
98
}