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

/* --- Explorer viewlet --- */
I
isidor 已提交
7 8
.explorer-viewlet,
.explorer-folders-view {
E
Erich Gamma 已提交
9 10 11
	height: 100%;
}

J
Joao Moreno 已提交
12 13 14 15
.explorer-folders-view .monaco-list-row {
	padding-left: 4px; /* align top level twistie with `Explorer` title label */
}

16 17
.explorer-viewlet .explorer-folders-view.highlight .monaco-list .explorer-item:not(.explorer-item-edited),
.explorer-viewlet .explorer-folders-view.highlight .monaco-list .monaco-tl-twistie {
18 19 20
	opacity: 0.3;
}

21 22
.explorer-viewlet .explorer-item,
.explorer-viewlet .editor-group {
J
Joao Moreno 已提交
23
	height: 22px;
I
isidor 已提交
24
	line-height: 22px;
E
Erich Gamma 已提交
25 26
}

27 28 29 30 31
.explorer-viewlet .explorer-item {
	display: flex; /* this helps showing the overflow ellipsis (...) even though we use display:inline-block for the labels */
	flex-wrap: nowrap;
}

B
Benjamin Pasero 已提交
32
.explorer-viewlet .explorer-item > a,
33
.explorer-viewlet .editor-group {
E
Erich Gamma 已提交
34 35 36 37
	text-overflow: ellipsis;
	overflow: hidden;
}

B
Benjamin Pasero 已提交
38
.explorer-viewlet .explorer-item,
39
.explorer-viewlet .explorer-item .monaco-inputbox {
40
	flex: 1;
41 42
}

I
isidor 已提交
43
.explorer-viewlet .explorer-item.cut {
I
isidor 已提交
44
	opacity: 0.5;
I
isidor 已提交
45 46
}

47 48 49 50
.explorer-viewlet .explorer-item.explorer-item-edited .label-name {
	flex: 0; /* do not steal space when label is hidden because we are in edit mode */
}

51
.explorer-viewlet .pane-header .count {
J
Joao Moreno 已提交
52
	min-width: fit-content;
53
	min-width: -moz-fit-content;
54 55
	display: flex;
	align-items: center;
E
Erich Gamma 已提交
56 57
}

S
SteVen Batten 已提交
58
.pane.horizontal:not(.expanded) .pane-header .dirty-count.monaco-count-badge,
S
SteVen Batten 已提交
59
.pane-header .dirty-count.monaco-count-badge.hidden {
60 61 62
	display: none;
}

S
SteVen Batten 已提交
63
.dirty-count.monaco-count-badge {
64
	padding: 2px 4px;
65
	margin-left: 6px;
66
	min-height: auto;
E
Erich Gamma 已提交
67 68
}

I
isidor 已提交
69 70 71 72
.explorer-viewlet .explorer-item.nonexistent-root {
	opacity: 0.5;
}

E
Erich Gamma 已提交
73 74 75 76 77
.explorer-viewlet .explorer-item .monaco-inputbox {
	width: 100%;
	line-height: normal;
}

J
Joao Moreno 已提交
78
.explorer-viewlet .explorer-item .monaco-icon-name-container.multiple > .label-name > .monaco-highlighted-label {
J
Joao Moreno 已提交
79 80 81
	border-radius: 3px;
}

82
.explorer-viewlet .explorer-item .monaco-icon-name-container.multiple > .label-name:hover > .monaco-highlighted-label,
J
Joao Moreno 已提交
83
.explorer-viewlet .monaco-list .monaco-list-row.focused .explorer-item .monaco-icon-name-container.multiple > .label-name.active > .monaco-highlighted-label {
J
Joao Moreno 已提交
84
	text-decoration: underline;
J
Joao Moreno 已提交
85 86
}

87 88
.monaco-workbench.linux .explorer-viewlet .explorer-item .monaco-inputbox,
.monaco-workbench.mac .explorer-viewlet .explorer-item .monaco-inputbox {
89 90 91
	height: 22px;
}

92
.monaco-workbench .explorer-viewlet .explorer-item .monaco-inputbox > .ibwrapper > .input {
93 94 95 96
	padding: 0;
	height: 20px;
}

E
Erich Gamma 已提交
97
/* High Contrast Theming */
98
.monaco-workbench.hc-black .explorer-viewlet .explorer-item {
E
Erich Gamma 已提交
99
	line-height: 20px;
100
}