searchview.css 12.1 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 7 8 9 10
.vs .panel .search-view .monaco-inputbox {
	border: 1px solid #ddd;
}

.search-view .search-widgets-container {
R
Rob Lourens 已提交
11 12
	margin: 0px 9px 0 2px;
	padding-top: 6px;
13 14
}

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

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

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

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

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

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

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

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

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
}

I
isidor 已提交
66
.search-view .search-widget .replace-container.disabled {
67 68 69
	display: none;
}

I
isidor 已提交
70
.search-view .search-widget .replace-container .monaco-action-bar {
S
Sandeep Somavarapu 已提交
71 72 73
	margin-left: 3px;
}

R
Rob Lourens 已提交
74 75 76 77
.search-view .search-widget .replace-container .monaco-action-bar {
	height: 25px;
}

I
isidor 已提交
78
.search-view .search-widget .replace-container .monaco-action-bar .action-item .icon {
S
Sandeep Somavarapu 已提交
79 80 81 82 83
	background-repeat: no-repeat;
	width: 20px;
	height: 25px;
}

I
isidor 已提交
84
.search-view .query-clear {
E
Erich Gamma 已提交
85 86 87 88 89 90 91 92
	width: 20px;
	height: 20px;
	position: absolute;
	top: 3px;
	right: 3px;
	cursor: pointer;
}

I
isidor 已提交
93
.search-view .query-details {
E
Erich Gamma 已提交
94 95
	min-height: 1em;
	position: relative;
96
	margin: 0 0 0 17px;
E
Erich Gamma 已提交
97 98
}

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

I
isidor 已提交
109 110
.hc-black .monaco-workbench .search-view .query-details .more,
.vs-dark .monaco-workbench .search-view .query-details .more {
B
Benjamin Pasero 已提交
111
	background: url('ellipsis-inverse.svg') top center no-repeat;
112 113
}

I
isidor 已提交
114
.vs .monaco-workbench .search-view .query-details .more {
B
Benjamin Pasero 已提交
115
	background: url('ellipsis.svg') top center no-repeat;
E
Erich Gamma 已提交
116 117
}

I
isidor 已提交
118
.search-view .query-details .file-types {
E
Erich Gamma 已提交
119 120 121
	display: none;
}

I
isidor 已提交
122
.search-view .query-details .file-types > .monaco-inputbox {
E
Erich Gamma 已提交
123 124 125 126
	width: 100%;
	height: 25px;
}

I
isidor 已提交
127
.search-view .query-details.more .file-types {
E
Erich Gamma 已提交
128 129 130
	display: inherit;
}

I
isidor 已提交
131
.search-view .query-details.more .file-types:last-child {
132
	padding-bottom: 10px;
E
Erich Gamma 已提交
133 134
}

I
isidor 已提交
135
.search-view .query-details .search-pattern-info {
E
Erich Gamma 已提交
136 137 138 139
	width: 16px;
	height: 16px;
}

I
isidor 已提交
140
.search-view .query-details .search-configure-exclusions {
E
Erich Gamma 已提交
141 142 143 144 145 146 147 148
	width: 16px;
	height: 16px;
}

.monaco-action-bar .action-label.search-configure-exclusions {
	margin-right: 2px;
}

149 150
.vs-dark .monaco-workbench .search-configure-exclusions,
.hc-black .monaco-workbench .search-configure-exclusions {
E
Erich Gamma 已提交
151
	background: url('configure-inverse.svg') center center no-repeat;
152
	opacity: .7;
E
Erich Gamma 已提交
153 154
}

155
.vs .monaco-workbench .search-configure-exclusions {
E
Erich Gamma 已提交
156 157 158 159
	background: url('configure.svg') center center no-repeat;
	opacity: 0.7;
}

I
isidor 已提交
160
.search-view .query-details.more h4 {
E
Erich Gamma 已提交
161 162 163 164 165 166 167 168 169
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	padding: 4px 0 0;
	margin: 0;
	font-size: 11px;
	font-weight: normal;
}

I
isidor 已提交
170
.search-view .messages {
171
	margin-top: -5px;
R
Rob Lourens 已提交
172
	cursor: default;
173 174
}

I
isidor 已提交
175
.search-view .message {
E
Erich Gamma 已提交
176 177
	padding-left: 22px;
	padding-right: 22px;
178
	padding-top: 0px;
E
Erich Gamma 已提交
179 180
}

I
isidor 已提交
181
.search-view .message p:first-child {
182 183 184
	margin-top: 0px;
	margin-bottom: 0px;
	padding-bottom: 4px;
S
Sandeep Somavarapu 已提交
185
	user-select: text;
186 187
}

I
isidor 已提交
188
.search-view > .results > .monaco-tree .sub-content {
189 190 191
	overflow: hidden;
}

I
isidor 已提交
192 193
.search-view .foldermatch,
.search-view .filematch {
194
	display: flex;
E
Erich Gamma 已提交
195
	position: relative;
I
isidor 已提交
196
	line-height: 22px;
E
Erich Gamma 已提交
197 198 199
	padding: 0;
}

J
Joao Moreno 已提交
200 201 202 203 204 205 206 207 208 209 210 211
.search-view:not(.wide) .foldermatch .monaco-icon-label,
.search-view:not(.wide) .filematch .monaco-icon-label {
	flex: 1;
}

.search-view:not(.wide) .monaco-tree .monaco-tree-row:hover:not(.highlighted) .foldermatch .monaco-icon-label,
.search-view:not(.wide) .monaco-tree .monaco-tree-row.focused .foldermatch .monaco-icon-label,
.search-view:not(.wide) .monaco-tree .monaco-tree-row:hover:not(.highlighted) .filematch .monaco-icon-label,
.search-view:not(.wide) .monaco-tree .monaco-tree-row.focused .filematch .monaco-icon-label {
	flex: 1;
}

I
isidor 已提交
212 213
.search-view .foldermatch .directory,
.search-view .filematch .directory {
E
Erich Gamma 已提交
214 215 216 217 218
	opacity: 0.7;
	font-size: 0.9em;
	margin-left: 0.8em;
}

J
Joao Moreno 已提交
219 220
.search-view.wide .foldermatch .badge,
.search-view.wide .filematch .badge {
221 222 223
	margin-left: 10px;
}

I
isidor 已提交
224
.search-view .linematch {
E
Erich Gamma 已提交
225
	position: relative;
I
isidor 已提交
226
	line-height: 22px;
S
Sandeep Somavarapu 已提交
227 228 229
	display: flex;
}

I
isidor 已提交
230
.search-view .linematch > .match {
S
Sandeep Somavarapu 已提交
231 232
	overflow: hidden;
	text-overflow: ellipsis;
E
Erich Gamma 已提交
233 234
}

235 236 237 238 239 240 241 242 243 244 245 246
.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;
}

I
isidor 已提交
247
.search-view .linematch.changedOrRemoved {
E
Erich Gamma 已提交
248 249 250
	font-style: italic;
}

I
isidor 已提交
251
.search-view .query-clear {
E
Erich Gamma 已提交
252 253 254
	background: url("action-query-clear.svg") center center no-repeat;
}

I
isidor 已提交
255
.search-view .monaco-tree .monaco-tree-row .monaco-action-bar {
S
Sandeep Somavarapu 已提交
256 257 258 259 260
	line-height: 1em;
	display: none;
	padding: 0 0.8em 0 0.4em;
}

I
isidor 已提交
261
.search-view .monaco-tree .monaco-tree-row .monaco-action-bar .action-item {
S
Sandeep Somavarapu 已提交
262 263 264
	margin: 0;
}

265
.search-view .monaco-tree .monaco-tree-row:hover:not(.highlighted) .monaco-action-bar,
I
isidor 已提交
266
.search-view .monaco-tree .monaco-tree-row.focused .monaco-action-bar {
J
Joao Moreno 已提交
267 268 269 270 271
	display: inline-block;
}

.search-view:not(.wide) .monaco-tree .monaco-tree-row .linematch .actionBarContainer {
	flex: 1;
S
Sandeep Somavarapu 已提交
272 273
}

274
.search-view:not(.wide) .monaco-tree .monaco-tree-row .monaco-action-bar {
J
Joao Moreno 已提交
275
	float: right;
276 277
}

I
isidor 已提交
278
.search-view .monaco-tree .monaco-tree-row .monaco-action-bar .action-label {
S
Sandeep Somavarapu 已提交
279 280 281 282 283 284 285
	margin-right: 0.2em;
	margin-top: 4px;
	background-repeat: no-repeat;
	width: 16px;
	height: 16px;
}

286 287 288 289 290
/* Adjusts spacing in high contrast mode so that actions are vertically centered */
.hc-black .monaco-tree .monaco-tree-row .monaco-action-bar .action-label {
	margin-top: 2px;
}

I
isidor 已提交
291
.search-view .action-remove {
E
Erich Gamma 已提交
292 293 294
	background: url("action-remove.svg") center center no-repeat;
}

I
isidor 已提交
295
.search-view .action-replace {
296 297 298
	background-image: url('replace.svg');
}

I
isidor 已提交
299
.search-view .action-replace-all {
S
Sandeep Somavarapu 已提交
300
	background: url('replace-all.svg') center center no-repeat;
301 302
}

I
isidor 已提交
303 304
.hc-black .search-view .action-replace,
.vs-dark .search-view .action-replace {
305 306 307
	background-image: url('replace-inverse.svg');
}

I
isidor 已提交
308 309
.hc-black .search-view .action-replace-all,
.vs-dark .search-view .action-replace-all {
S
Sandeep Somavarapu 已提交
310
	background: url('replace-all-inverse.svg') center center no-repeat;
311 312
}

I
isidor 已提交
313
.search-view .label {
E
Erich Gamma 已提交
314 315 316
	font-style: italic;
}

I
isidor 已提交
317
.search-view .monaco-count-badge {
318 319 320
	margin-right: 12px;
}

321 322 323 324 325 326
.search-view > .results > .monaco-tree .monaco-tree-row:hover .content .filematch .monaco-count-badge,
.search-view > .results > .monaco-tree .monaco-tree-row:hover .content .foldermatch .monaco-count-badge,
.search-view > .results > .monaco-tree .monaco-tree-row:hover .content .linematch .monaco-count-badge,
.search-view > .results > .monaco-tree .monaco-tree-row.focused .content .filematch .monaco-count-badge,
.search-view > .results > .monaco-tree .monaco-tree-row.focused .content .foldermatch .monaco-count-badge,
.search-view > .results > .monaco-tree .monaco-tree-row.focused .content .linematch .monaco-count-badge {
J
Joao Moreno 已提交
327
	display: none;
328 329
}

I
isidor 已提交
330 331
.search-view .focused .monaco-tree-row.selected:not(.highlighted) > .content.actions .action-remove,
.vs-dark .monaco-workbench .search-view .focused .monaco-tree-row.selected:not(.highlighted) > .content.actions .action-remove {
E
Erich Gamma 已提交
332 333 334 335 336 337 338
	background: url("action-remove-focus.svg") center center no-repeat;
}

.monaco-workbench .search-action.refresh {
	background: url('Refresh.svg') center center no-repeat;
}

B
Benjamin Pasero 已提交
339 340
.vs-dark .monaco-workbench .search-action.refresh,
.hc-black .monaco-workbench .search-action.refresh {
E
Erich Gamma 已提交
341 342 343 344 345 346 347
	background: url('Refresh_inverse.svg') center center no-repeat;
}

.monaco-workbench .search-action.collapse {
	background: url('CollapseAll.svg') center center no-repeat;
}

B
Benjamin Pasero 已提交
348 349
.vs-dark .monaco-workbench .search-action.collapse,
.hc-black .monaco-workbench .search-action.collapse {
E
Erich Gamma 已提交
350 351 352 353 354 355 356
	background: url('CollapseAll_inverse.svg') center center no-repeat;
}

.monaco-workbench .search-action.clear-search-results {
	background: url('clear-search-results.svg') center center no-repeat;
}

B
Benjamin Pasero 已提交
357 358
.vs-dark .monaco-workbench .search-action.clear-search-results,
.hc-black .monaco-workbench .search-action.clear-search-results {
E
Erich Gamma 已提交
359 360 361
	background: url('clear-search-results-dark.svg') center center no-repeat;
}

362 363 364 365 366 367 368 369 370
.monaco-workbench .search-action.cancel-search {
	background: url('stop.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .search-action.cancel-search,
.hc-black .monaco-workbench .search-action.cancel-search {
	background: url('stop-inverse.svg') center center no-repeat;
}

371
.vs .monaco-workbench .search-view .query-details .file-types .controls > .monaco-custom-checkbox.pattern {
E
Erich Gamma 已提交
372 373 374
	background: url('pattern.svg') center center no-repeat;
}

375 376
.vs-dark .monaco-workbench .search-view .query-details .file-types .controls > .monaco-custom-checkbox.pattern,
.hc-black .monaco-workbench .search-view .query-details .file-types .controls > .monaco-custom-checkbox.pattern {
B
Benjamin Pasero 已提交
377
	background: url('pattern-dark.svg') center center no-repeat;
E
Erich Gamma 已提交
378 379
}

380
.vs .monaco-workbench .search-view .query-details .file-types .controls>.monaco-custom-checkbox.useExcludesAndIgnoreFiles {
381
	background: url('excludeSettings.svg') center center no-repeat;
382 383
}

384 385
.vs-dark .monaco-workbench .search-view .query-details .file-types .controls>.monaco-custom-checkbox.useExcludesAndIgnoreFiles,
.hc-black .monaco-workbench .search-view .query-details .file-types .controls>.monaco-custom-checkbox.useExcludesAndIgnoreFiles {
386
	background: url('excludeSettings-dark.svg') center center no-repeat;
387 388
}

I
isidor 已提交
389
.search-view .replace.findInFileMatch {
S
Sandeep Somavarapu 已提交
390 391 392
	text-decoration: line-through;
}

I
isidor 已提交
393 394
.search-view .findInFileMatch,
.search-view .replaceMatch {
S
Sandeep Somavarapu 已提交
395 396 397
	white-space: pre;
}

I
isidor 已提交
398 399
.hc-black .monaco-workbench .search-view .replaceMatch,
.hc-black .monaco-workbench .search-view .findInFileMatch {
A
Alex Dima 已提交
400 401 402 403
	background: none !important;
	box-sizing: border-box;
}

I
isidor 已提交
404
.monaco-workbench .search-view a.prominent {
B
Benjamin Pasero 已提交
405 406 407
	text-decoration: underline;
}

E
Erich Gamma 已提交
408
/* Theming */
409

410
.vs .search-view .search-widget .toggle-replace-button:hover {
B
Benjamin Pasero 已提交
411 412 413
	background-color: rgba(0, 0, 0, 0.1) !important;
}

414
.vs-dark .search-view .search-widget .toggle-replace-button:hover {
B
Benjamin Pasero 已提交
415 416 417
	background-color: rgba(255, 255, 255, 0.1) !important;
}

I
isidor 已提交
418
.vs .search-view .search-widget .toggle-replace-button.collapse {
419 420 421
	background-image: url('expando-collapsed.svg');
}

I
isidor 已提交
422
.vs .search-view .search-widget .toggle-replace-button.expand {
423 424 425
	background-image: url('expando-expanded.svg');
}

I
isidor 已提交
426
.vs-dark .search-view .query-clear {
E
Erich Gamma 已提交
427 428 429
	background: url("action-query-clear-dark.svg") center center no-repeat;
}

I
isidor 已提交
430 431
.vs-dark .search-view .action-remove,
.hc-black .search-view .action-remove {
E
Erich Gamma 已提交
432 433 434
	background: url("action-remove-dark.svg") center center no-repeat;
}

I
isidor 已提交
435
.vs-dark .search-view .message {
436
	opacity: .5;
E
Erich Gamma 已提交
437 438
}

I
isidor 已提交
439 440
.vs-dark .search-view .foldermatch,
.vs-dark .search-view .filematch {
E
Erich Gamma 已提交
441 442 443
	padding: 0;
}

I
isidor 已提交
444 445
.vs-dark .search-view .search-widget .toggle-replace-button.expand,
.hc-black .search-view .search-widget .toggle-replace-button.expand {
446 447 448
	background-image: url('expando-expanded-dark.svg');
}

I
isidor 已提交
449 450
.vs-dark .search-view .search-widget .toggle-replace-button.collapse,
.hc-black .search-view .search-widget .toggle-replace-button.collapse {
451 452 453
	background-image: url('expando-collapsed-dark.svg');
}

E
Erich Gamma 已提交
454 455
/* High Contrast Theming */

I
isidor 已提交
456 457 458
.hc-black .monaco-workbench .search-view .foldermatch,
.hc-black .monaco-workbench .search-view .filematch,
.hc-black .monaco-workbench .search-view .linematch {
E
Erich Gamma 已提交
459
	line-height: 20px;
I
isidor 已提交
460
}