explorerviewlet.css 5.4 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 23
.explorer-viewlet .explorer-item,
.explorer-viewlet .open-editor,
.explorer-viewlet .editor-group {
J
Joao Moreno 已提交
24
	height: 22px;
I
isidor 已提交
25
	line-height: 22px;
E
Erich Gamma 已提交
26 27
}

28 29 30 31 32
.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 已提交
33
.explorer-viewlet .explorer-item > a,
34
.explorer-viewlet .open-editor > a,
35
.explorer-viewlet .editor-group {
E
Erich Gamma 已提交
36 37 38 39
	text-overflow: ellipsis;
	overflow: hidden;
}

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

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

49 50 51 52
.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 */
}

I
isidor 已提交
53 54
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row {
	padding-left: 22px;
I
isidor 已提交
55 56 57
	display: flex;
}

I
isidor 已提交
58
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row > .monaco-action-bar {
J
Joao Moreno 已提交
59
	visibility: hidden;
M
Miguel Solorio 已提交
60 61
	display: flex;
	align-items: center;
J
Joao Moreno 已提交
62 63 64 65
}

.explorer-viewlet .panel-header .count {
	min-width: fit-content;
66
	min-width: -moz-fit-content;
67 68
	display: flex;
	align-items: center;
E
Erich Gamma 已提交
69 70
}

71
.explorer-viewlet .panel-header .monaco-count-badge.hidden {
72 73 74
	display: none;
}

I
isidor 已提交
75
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row:hover > .monaco-action-bar,
76
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row.focused > .monaco-action-bar,
I
isidor 已提交
77
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row.dirty > .monaco-action-bar {
J
Joao Moreno 已提交
78
	visibility: visible;
E
Erich Gamma 已提交
79 80
}

I
isidor 已提交
81
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row > .monaco-action-bar .action-label {
82 83 84
	display: block;
}

M
Miguel Solorio 已提交
85 86 87 88
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row > .monaco-action-bar .codicon {
	color: inherit;
}

M
Miguel Solorio 已提交
89
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row > .monaco-action-bar .codicon-close {
I
isidor 已提交
90
	width: 8px;
I
isidor 已提交
91
	height: 22px;
M
Miguel Solorio 已提交
92 93 94
	display: flex;
	align-items: center;
	justify-content: center;
I
isidor 已提交
95 96
}

I
isidor 已提交
97 98
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row > .monaco-action-bar .action-close-all-files,
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row > .monaco-action-bar .save-all {
99
	width: 23px;
100 101 102
	height: 22px;
}

I
isidor 已提交
103
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row > .open-editor {
I
isidor 已提交
104 105 106
	flex: 1;
}

I
isidor 已提交
107
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row > .editor-group {
I
isidor 已提交
108
	flex: 1;
E
Erich Gamma 已提交
109 110 111
}

.explorer-viewlet .monaco-count-badge {
112
	padding: 1px 6px 2px;
113
	margin-left: 6px;
114
	min-height: auto;
115
	border-radius: 0; /* goes better when ellipsis shows up on narrow sidebar */
E
Erich Gamma 已提交
116 117 118 119 120 121
}

.explorer-viewlet .explorer-empty-view {
	padding: 0 20px 0 20px;
}

I
isidor 已提交
122 123 124 125
.explorer-viewlet .explorer-item.nonexistent-root {
	opacity: 0.5;
}

E
Erich Gamma 已提交
126 127 128 129 130
.explorer-viewlet .explorer-item .monaco-inputbox {
	width: 100%;
	line-height: normal;
}

J
Joao Moreno 已提交
131 132 133 134 135 136 137 138 139
.explorer-viewlet .explorer-item .monaco-icon-name-container.multiple > .label-name {
	padding: 1px 3px;
	border-radius: 3px;
}

.explorer-viewlet .explorer-item .monaco-icon-name-container.multiple > .label-name:hover {
	background: rgb(210, 219, 228);
}

140 141
.monaco-workbench.linux .explorer-viewlet .explorer-item .monaco-inputbox,
.monaco-workbench.mac .explorer-viewlet .explorer-item .monaco-inputbox {
142 143 144
	height: 22px;
}

I
isidor 已提交
145
.monaco-workbench .explorer-viewlet .explorer-item .monaco-inputbox > .wrapper > .input {
146 147 148 149
	padding: 0;
	height: 20px;
}

I
isidor 已提交
150
.explorer-viewlet .explorer-open-editors .monaco-list .monaco-list-row .editor-group {
151 152 153 154 155 156
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	cursor: default;
}

157
/* Bold font style does not go well with CJK fonts */
I
isidor 已提交
158 159 160 161
.explorer-viewlet:lang(zh-Hans) .explorer-open-editors .monaco-list .monaco-list-row .editor-group,
.explorer-viewlet:lang(zh-Hant) .explorer-open-editors .monaco-list .monaco-list-row .editor-group,
.explorer-viewlet:lang(ja) .explorer-open-editors .monaco-list .monaco-list-row .editor-group,
.explorer-viewlet:lang(ko) .explorer-open-editors .monaco-list .monaco-list-row .editor-group {
B
Benjamin Pasero 已提交
162 163
	font-weight: normal;
}
164

E
Erich Gamma 已提交
165
/* High Contrast Theming */
166 167 168
.hc-black .monaco-workbench .explorer-viewlet .explorer-item,
.hc-black .monaco-workbench .explorer-viewlet .open-editor,
.hc-black .monaco-workbench .explorer-viewlet .editor-group {
E
Erich Gamma 已提交
169
	line-height: 20px;
170
}
171 172 173 174 175 176 177 178 179 180 181 182 183

/* TODO @misolori convert these to use icon font, for the debug viewlet */
.monaco-workbench .explorer-action.collapse-explorer {
	background: url("collapse-all-light.svg") 50% no-repeat;
}

.vs-dark .monaco-workbench .explorer-action.collapse-explorer {
	background: url("collapse-all-dark.svg") 50% no-repeat;
}

.hc-black .monaco-workbench .explorer-action.collapse-explorer {
	background: url("collapse-all-hc.svg") 50% no-repeat;
}