searchview.css 7.9 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.
 *--------------------------------------------------------------------------------------------*/

I
isidor 已提交
6
.search-view .search-widgets-container {
R
Rob Lourens 已提交
7 8
	margin: 0px 9px 0 2px;
	padding-top: 6px;
9 10
}

I
isidor 已提交
11
.search-view .search-widget .toggle-replace-button {
12 13 14 15 16 17 18 19 20
	position: absolute;
	top: 0;
	left: 0;
	width: 16px;
	height: 100%;
	box-sizing: border-box;
	background-position: center center;
	background-repeat: no-repeat;
	cursor: pointer;
21 22 23
	display: flex;
	align-items: center;
	justify-content: center;
E
Erich Gamma 已提交
24 25
}

I
isidor 已提交
26 27
.search-view .search-widget .search-container,
.search-view .search-widget .replace-container {
28
	margin-left: 17px;
E
Erich Gamma 已提交
29 30
}

31 32 33 34
.search-view .search-widget .monaco-inputbox > .wrapper {
	height: 100%;
}

35 36 37 38 39 40
.search-view .search-widget .monaco-inputbox > .wrapper > .mirror,
.search-view .search-widget .monaco-inputbox > .wrapper > textarea.input {
	padding: 3px;
	padding-left: 4px;
}

41 42 43 44
.search-view .search-widget .monaco-inputbox > .wrapper > .mirror {
	max-height: 134px;
}

45
.search-view .search-widget .monaco-inputbox > .wrapper > textarea.input {
46
	overflow: initial;
47
	height: 24px; /* set initial height before measure */
48 49 50 51
}

.search-view .monaco-inputbox > .wrapper > textarea.input::-webkit-scrollbar {
	display: none;
S
Sandeep Somavarapu 已提交
52 53
}

I
isidor 已提交
54
.search-view .search-widget .monaco-findInput {
E
Erich Gamma 已提交
55 56
	display: inline-block;
	vertical-align: middle;
57
	width: 100%;
E
Erich Gamma 已提交
58 59
}

I
isidor 已提交
60
.search-view .search-widget .replace-container {
61
	margin-top: 6px;
S
Sandeep Somavarapu 已提交
62
	position: relative;
63
	display: inline-flex;
64 65
}

66 67 68 69 70 71 72 73 74 75 76 77 78 79
.search-view .search-widget .replace-input {
	position: relative;
	display: flex;
	display: -webkit-flex;
	vertical-align: middle;
	width: auto !important;
}

.search-view .search-widget .replace-input > .controls {
	position: absolute;
	top: 3px;
	right: 2px;
}

I
isidor 已提交
80
.search-view .search-widget .replace-container.disabled {
81 82 83
	display: none;
}

I
isidor 已提交
84
.search-view .search-widget .replace-container .monaco-action-bar {
S
Sandeep Somavarapu 已提交
85 86 87
	margin-left: 3px;
}

R
Rob Lourens 已提交
88 89 90 91
.search-view .search-widget .replace-container .monaco-action-bar {
	height: 25px;
}

M
Miguel Solorio 已提交
92
.search-view .search-widget .replace-container .monaco-action-bar .action-item .codicon {
S
Sandeep Somavarapu 已提交
93 94 95 96 97
	background-repeat: no-repeat;
	width: 20px;
	height: 25px;
}

I
isidor 已提交
98
.search-view .query-details {
E
Erich Gamma 已提交
99 100
	min-height: 1em;
	position: relative;
101
	margin: 0 0 0 17px;
E
Erich Gamma 已提交
102 103
}

I
isidor 已提交
104
.search-view .query-details .more {
E
Erich Gamma 已提交
105
	position: absolute;
S
Sandeep Somavarapu 已提交
106
	margin-right: 0.3em;
107
	right: 0;
E
Erich Gamma 已提交
108
	cursor: pointer;
109
	width: 16px;
110
	height: 16px;
111
	z-index: 2; /* Force it above the search results message, which has a negative top margin */
112 113
}

I
isidor 已提交
114
.search-view .query-details .file-types {
E
Erich Gamma 已提交
115 116 117
	display: none;
}

I
isidor 已提交
118
.search-view .query-details .file-types > .monaco-inputbox {
E
Erich Gamma 已提交
119 120 121 122
	width: 100%;
	height: 25px;
}

I
isidor 已提交
123
.search-view .query-details.more .file-types {
E
Erich Gamma 已提交
124 125 126
	display: inherit;
}

I
isidor 已提交
127
.search-view .query-details.more .file-types:last-child {
128
	padding-bottom: 10px;
E
Erich Gamma 已提交
129 130
}

I
isidor 已提交
131
.search-view .query-details.more h4 {
E
Erich Gamma 已提交
132 133 134 135 136 137 138 139 140
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	padding: 4px 0 0;
	margin: 0;
	font-size: 11px;
	font-weight: normal;
}

I
isidor 已提交
141
.search-view .messages {
142
	margin-top: -5px;
R
Rob Lourens 已提交
143
	cursor: default;
144 145
}

I
isidor 已提交
146
.search-view .message {
E
Erich Gamma 已提交
147 148
	padding-left: 22px;
	padding-right: 22px;
149
	padding-top: 0px;
E
Erich Gamma 已提交
150 151
}

I
isidor 已提交
152
.search-view .message p:first-child {
153 154 155
	margin-top: 0px;
	margin-bottom: 0px;
	padding-bottom: 4px;
S
Sandeep Somavarapu 已提交
156
	user-select: text;
157 158
}

I
isidor 已提交
159 160
.search-view .foldermatch,
.search-view .filematch {
161
	display: flex;
E
Erich Gamma 已提交
162
	position: relative;
I
isidor 已提交
163
	line-height: 22px;
E
Erich Gamma 已提交
164 165 166
	padding: 0;
}

J
Joao Moreno 已提交
167 168 169 170 171
.search-view:not(.wide) .foldermatch .monaco-icon-label,
.search-view:not(.wide) .filematch .monaco-icon-label {
	flex: 1;
}

R
Rob Lourens 已提交
172 173 174 175
.search-view:not(.wide) .monaco-list .monaco-list-row:hover:not(.highlighted) .foldermatch .monaco-icon-label,
.search-view:not(.wide) .monaco-list .monaco-list-row.focused .foldermatch .monaco-icon-label,
.search-view:not(.wide) .monaco-list .monaco-list-row:hover:not(.highlighted) .filematch .monaco-icon-label,
.search-view:not(.wide) .monaco-list .monaco-list-row.focused .filematch .monaco-icon-label {
J
Joao Moreno 已提交
176 177 178 179 180
	flex: 1;
}

.search-view.wide .foldermatch .badge,
.search-view.wide .filematch .badge {
181 182 183
	margin-left: 10px;
}

I
isidor 已提交
184
.search-view .linematch {
E
Erich Gamma 已提交
185
	position: relative;
I
isidor 已提交
186
	line-height: 22px;
S
Sandeep Somavarapu 已提交
187
	display: flex;
R
Rob Lourens 已提交
188
	overflow: hidden;
R
Rob Lourens 已提交
189 190
}

I
isidor 已提交
191
.search-view .linematch > .match {
S
Sandeep Somavarapu 已提交
192 193
	overflow: hidden;
	text-overflow: ellipsis;
194
	white-space: pre;
E
Erich Gamma 已提交
195 196
}

197 198 199 200 201 202 203 204 205 206 207 208
.search-view .linematch .matchLineNum {
	margin-left: 7px;
	margin-right: 4px;
	opacity: .7;
	font-size: 0.9em;
	display: none;
}

.search-view .linematch .matchLineNum.show {
	display: block;
}

R
Rob Lourens 已提交
209 210 211
.search-view.wide .monaco-list .monaco-list-row .foldermatch .actionBarContainer,
.search-view.wide .monaco-list .monaco-list-row .filematch .actionBarContainer,
.search-view .monaco-list .monaco-list-row .linematch .actionBarContainer {
212 213 214
	flex: 1 0 auto;
}

R
Rob Lourens 已提交
215 216
.search-view:not(.wide) .monaco-list .monaco-list-row .foldermatch .actionBarContainer,
.search-view:not(.wide) .monaco-list .monaco-list-row .filematch .actionBarContainer {
217 218 219
	flex: 0 0 auto;
}

R
Rob Lourens 已提交
220 221 222 223
.search-view.actions-right .monaco-list .monaco-list-row .foldermatch .actionBarContainer,
.search-view.actions-right .monaco-list .monaco-list-row .filematch .actionBarContainer,
.search-view.actions-right .monaco-list .monaco-list-row .linematch .actionBarContainer,
.search-view:not(.wide) .monaco-list .monaco-list-row .linematch .actionBarContainer {
224 225 226
	text-align: right;
}

R
Rob Lourens 已提交
227
.search-view .monaco-list .monaco-list-row .monaco-action-bar {
S
Sandeep Somavarapu 已提交
228 229 230 231 232
	line-height: 1em;
	display: none;
	padding: 0 0.8em 0 0.4em;
}

R
Rob Lourens 已提交
233
.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-item {
S
Sandeep Somavarapu 已提交
234 235 236
	margin: 0;
}

R
Rob Lourens 已提交
237 238
.search-view .monaco-list .monaco-list-row:hover:not(.highlighted) .monaco-action-bar,
.search-view .monaco-list .monaco-list-row.focused .monaco-action-bar {
J
Joao Moreno 已提交
239 240 241
	display: inline-block;
}

R
Rob Lourens 已提交
242
.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-label {
S
Sandeep Somavarapu 已提交
243 244 245 246 247 248 249
	margin-right: 0.2em;
	margin-top: 4px;
	background-repeat: no-repeat;
	width: 16px;
	height: 16px;
}

250
/* Adjusts spacing in high contrast mode so that actions are vertically centered */
R
Rob Lourens 已提交
251
.hc-black .monaco-list .monaco-list-row .monaco-action-bar .action-label {
252 253 254
	margin-top: 2px;
}

I
isidor 已提交
255
.search-view .monaco-count-badge {
256 257 258
	margin-right: 12px;
}

R
Rob Lourens 已提交
259 260 261 262 263 264
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row:hover .filematch .monaco-count-badge,
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row:hover .foldermatch .monaco-count-badge,
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row:hover .linematch .monaco-count-badge,
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row.focused .filematch .monaco-count-badge,
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row.focused .foldermatch .monaco-count-badge,
.search-view:not(.wide) > .results > .monaco-list .monaco-list-row.focused .linematch .monaco-count-badge {
J
Joao Moreno 已提交
265
	display: none;
266 267
}

I
isidor 已提交
268
.search-view .replace.findInFileMatch {
S
Sandeep Somavarapu 已提交
269 270 271
	text-decoration: line-through;
}

I
isidor 已提交
272 273
.search-view .findInFileMatch,
.search-view .replaceMatch {
S
Sandeep Somavarapu 已提交
274 275 276
	white-space: pre;
}

I
isidor 已提交
277 278
.hc-black .monaco-workbench .search-view .replaceMatch,
.hc-black .monaco-workbench .search-view .findInFileMatch {
A
Alex Dima 已提交
279 280 281 282
	background: none !important;
	box-sizing: border-box;
}

I
isidor 已提交
283
.monaco-workbench .search-view a.prominent {
B
Benjamin Pasero 已提交
284 285 286
	text-decoration: underline;
}

E
Erich Gamma 已提交
287
/* Theming */
288

289
.vs .search-view .search-widget .toggle-replace-button:hover {
B
Benjamin Pasero 已提交
290 291 292
	background-color: rgba(0, 0, 0, 0.1) !important;
}

293
.vs-dark .search-view .search-widget .toggle-replace-button:hover {
B
Benjamin Pasero 已提交
294 295 296
	background-color: rgba(255, 255, 255, 0.1) !important;
}

I
isidor 已提交
297
.vs-dark .search-view .message {
298
	opacity: .5;
E
Erich Gamma 已提交
299 300
}

I
isidor 已提交
301 302
.vs-dark .search-view .foldermatch,
.vs-dark .search-view .filematch {
E
Erich Gamma 已提交
303 304 305 306 307
	padding: 0;
}

/* High Contrast Theming */

I
isidor 已提交
308 309 310
.hc-black .monaco-workbench .search-view .foldermatch,
.hc-black .monaco-workbench .search-view .filematch,
.hc-black .monaco-workbench .search-view .linematch {
E
Erich Gamma 已提交
311
	line-height: 20px;
I
isidor 已提交
312
}
313

314
.vs .search-panel .search-view .monaco-inputbox {
315
	border: 1px solid transparent;
316
}