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

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;
E
Erich Gamma 已提交
21 22
}

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

28 29 30 31
.search-view .search-widget .monaco-inputbox > .wrapper {
	height: 100%;
}

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

38 39 40 41
.search-view .search-widget .monaco-inputbox > .wrapper > .mirror {
	max-height: 134px;
}

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

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

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

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

63 64 65 66 67 68 69 70 71 72 73 74 75 76
.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 已提交
77
.search-view .search-widget .replace-container.disabled {
78 79 80
	display: none;
}

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

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

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

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

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

I
isidor 已提交
111
.vs-dark .monaco-workbench .search-view .query-details .more {
M
Miguel Solorio 已提交
112 113 114 115 116
	background: url('ellipsis-dark.svg') center no-repeat;
}

.hc-black .monaco-workbench .search-view .query-details .more {
	background: url('ellipsis-hc.svg') center no-repeat;
117 118
}

I
isidor 已提交
119
.vs .monaco-workbench .search-view .query-details .more {
M
Miguel Solorio 已提交
120
	background: url('ellipsis-light.svg') center no-repeat;
E
Erich Gamma 已提交
121 122
}

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

I
isidor 已提交
127
.search-view .query-details .file-types > .monaco-inputbox {
E
Erich Gamma 已提交
128 129 130 131
	width: 100%;
	height: 25px;
}

I
isidor 已提交
132
.search-view .query-details.more .file-types {
E
Erich Gamma 已提交
133 134 135
	display: inherit;
}

I
isidor 已提交
136
.search-view .query-details.more .file-types:last-child {
137
	padding-bottom: 10px;
E
Erich Gamma 已提交
138 139
}

I
isidor 已提交
140
.search-view .query-details.more h4 {
E
Erich Gamma 已提交
141 142 143 144 145 146 147 148 149
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	padding: 4px 0 0;
	margin: 0;
	font-size: 11px;
	font-weight: normal;
}

I
isidor 已提交
150
.search-view .messages {
151
	margin-top: -5px;
R
Rob Lourens 已提交
152
	cursor: default;
153 154
}

I
isidor 已提交
155
.search-view .message {
E
Erich Gamma 已提交
156 157
	padding-left: 22px;
	padding-right: 22px;
158
	padding-top: 0px;
E
Erich Gamma 已提交
159 160
}

I
isidor 已提交
161
.search-view .message p:first-child {
162 163 164
	margin-top: 0px;
	margin-bottom: 0px;
	padding-bottom: 4px;
S
Sandeep Somavarapu 已提交
165
	user-select: text;
166 167
}

I
isidor 已提交
168 169
.search-view .foldermatch,
.search-view .filematch {
170
	display: flex;
E
Erich Gamma 已提交
171
	position: relative;
I
isidor 已提交
172
	line-height: 22px;
E
Erich Gamma 已提交
173 174 175
	padding: 0;
}

J
Joao Moreno 已提交
176 177 178 179 180
.search-view:not(.wide) .foldermatch .monaco-icon-label,
.search-view:not(.wide) .filematch .monaco-icon-label {
	flex: 1;
}

R
Rob Lourens 已提交
181 182 183 184
.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 已提交
185 186 187 188 189
	flex: 1;
}

.search-view.wide .foldermatch .badge,
.search-view.wide .filematch .badge {
190 191 192
	margin-left: 10px;
}

I
isidor 已提交
193
.search-view .linematch {
E
Erich Gamma 已提交
194
	position: relative;
I
isidor 已提交
195
	line-height: 22px;
S
Sandeep Somavarapu 已提交
196
	display: flex;
R
Rob Lourens 已提交
197
	overflow: hidden;
R
Rob Lourens 已提交
198 199
}

I
isidor 已提交
200
.search-view .linematch > .match {
S
Sandeep Somavarapu 已提交
201 202
	overflow: hidden;
	text-overflow: ellipsis;
203
	white-space: pre;
E
Erich Gamma 已提交
204 205
}

206 207 208 209 210 211 212 213 214 215 216 217
.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 已提交
218 219 220
.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 {
221 222 223
	flex: 1 0 auto;
}

R
Rob Lourens 已提交
224 225
.search-view:not(.wide) .monaco-list .monaco-list-row .foldermatch .actionBarContainer,
.search-view:not(.wide) .monaco-list .monaco-list-row .filematch .actionBarContainer {
226 227 228
	flex: 0 0 auto;
}

R
Rob Lourens 已提交
229 230 231 232
.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 {
233 234 235
	text-align: right;
}

R
Rob Lourens 已提交
236
.search-view .monaco-list .monaco-list-row .monaco-action-bar {
S
Sandeep Somavarapu 已提交
237 238 239 240 241
	line-height: 1em;
	display: none;
	padding: 0 0.8em 0 0.4em;
}

R
Rob Lourens 已提交
242
.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-item {
S
Sandeep Somavarapu 已提交
243 244 245
	margin: 0;
}

R
Rob Lourens 已提交
246 247
.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 已提交
248 249 250
	display: inline-block;
}

R
Rob Lourens 已提交
251
.search-view .monaco-list .monaco-list-row .monaco-action-bar .action-label {
S
Sandeep Somavarapu 已提交
252 253 254 255 256 257 258
	margin-right: 0.2em;
	margin-top: 4px;
	background-repeat: no-repeat;
	width: 16px;
	height: 16px;
}

259
/* Adjusts spacing in high contrast mode so that actions are vertically centered */
R
Rob Lourens 已提交
260
.hc-black .monaco-list .monaco-list-row .monaco-action-bar .action-label {
261 262 263
	margin-top: 2px;
}

M
Miguel Solorio 已提交
264 265
.search-view .action-replace {
	background-image: url('replace-light.svg');
E
Erich Gamma 已提交
266 267
}

M
Miguel Solorio 已提交
268 269
.vs-dark .search-view .action-replace {
	background-image: url('replace-dark.svg');
270 271
}

M
Miguel Solorio 已提交
272 273
.hc-black .search-view .action-replace {
	background-image: url('replace-hc.svg');
274 275
}

M
Miguel Solorio 已提交
276 277
.search-view .action-replace-all {
	background: url('replace-all-light.svg') center center no-repeat;
278 279
}

I
isidor 已提交
280
.vs-dark .search-view .action-replace-all {
M
Miguel Solorio 已提交
281 282 283 284 285
	background: url('replace-all-dark.svg') center center no-repeat;
}

.hc-black .search-view .action-replace-all {
	background: url('replace-all-hc.svg') center center no-repeat;
286 287
}

I
isidor 已提交
288
.search-view .monaco-count-badge {
289 290 291
	margin-right: 12px;
}

R
Rob Lourens 已提交
292 293 294 295 296 297
.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 已提交
298
	display: none;
299 300
}

E
Erich Gamma 已提交
301
.monaco-workbench .search-action.refresh {
M
Miguel Solorio 已提交
302 303 304 305 306
	background: url('refresh-light.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .search-action.refresh {
	background: url('refresh-dark.svg') center center no-repeat;
E
Erich Gamma 已提交
307 308
}

B
Benjamin Pasero 已提交
309
.hc-black .monaco-workbench .search-action.refresh {
M
Miguel Solorio 已提交
310
	background: url('refresh-hc.svg') center center no-repeat;
E
Erich Gamma 已提交
311 312 313
}

.monaco-workbench .search-action.collapse {
M
Miguel Solorio 已提交
314
	background: url('collapse-all-light.svg') center center no-repeat;
E
Erich Gamma 已提交
315 316
}

B
Benjamin Pasero 已提交
317 318
.vs-dark .monaco-workbench .search-action.collapse,
.hc-black .monaco-workbench .search-action.collapse {
M
Miguel Solorio 已提交
319 320 321 322 323
	background: url('collapse-all-dark.svg') center center no-repeat;
}

.hc-black .monaco-workbench .search-action.collapse {
	background: url('collapse-all-hc.svg') center center no-repeat;
E
Erich Gamma 已提交
324 325 326
}

.monaco-workbench .search-action.clear-search-results {
M
Miguel Solorio 已提交
327 328 329 330 331
	background: url('clear-light.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .search-action.clear-search-results {
	background: url('clear-dark.svg') center center no-repeat;
E
Erich Gamma 已提交
332 333
}

B
Benjamin Pasero 已提交
334
.hc-black .monaco-workbench .search-action.clear-search-results {
M
Miguel Solorio 已提交
335
	background: url('clear-hc.svg') center center no-repeat;
E
Erich Gamma 已提交
336 337
}

338
.monaco-workbench .search-action.cancel-search {
M
Miguel Solorio 已提交
339 340 341 342 343
	background: url('stop-light.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .search-action.cancel-search {
	background: url('stop-dark.svg') center center no-repeat;
344 345 346
}

.hc-black .monaco-workbench .search-action.cancel-search {
M
Miguel Solorio 已提交
347
	background: url('stop-hc.svg') center center no-repeat;
348 349
}

350
.vs .monaco-workbench .search-view .query-details .file-types .controls>.monaco-custom-checkbox.useExcludesAndIgnoreFiles {
M
Miguel Solorio 已提交
351 352 353 354 355
	background: url('exclude-settings-light.svg') center center no-repeat;
}

.vs-dark .monaco-workbench .search-view .query-details .file-types .controls>.monaco-custom-checkbox.useExcludesAndIgnoreFiles {
	background: url('exclude-settings-dark.svg') center center no-repeat;
356 357
}

358
.hc-black .monaco-workbench .search-view .query-details .file-types .controls>.monaco-custom-checkbox.useExcludesAndIgnoreFiles {
M
Miguel Solorio 已提交
359
	background: url('exclude-settings-hc.svg') center center no-repeat;
360 361
}

I
isidor 已提交
362
.search-view .replace.findInFileMatch {
S
Sandeep Somavarapu 已提交
363 364 365
	text-decoration: line-through;
}

I
isidor 已提交
366 367
.search-view .findInFileMatch,
.search-view .replaceMatch {
S
Sandeep Somavarapu 已提交
368 369 370
	white-space: pre;
}

I
isidor 已提交
371 372
.hc-black .monaco-workbench .search-view .replaceMatch,
.hc-black .monaco-workbench .search-view .findInFileMatch {
A
Alex Dima 已提交
373 374 375 376
	background: none !important;
	box-sizing: border-box;
}

I
isidor 已提交
377
.monaco-workbench .search-view a.prominent {
B
Benjamin Pasero 已提交
378 379 380
	text-decoration: underline;
}

E
Erich Gamma 已提交
381
/* Theming */
382

383
.vs .search-view .search-widget .toggle-replace-button:hover {
B
Benjamin Pasero 已提交
384 385 386
	background-color: rgba(0, 0, 0, 0.1) !important;
}

387
.vs-dark .search-view .search-widget .toggle-replace-button:hover {
B
Benjamin Pasero 已提交
388 389 390
	background-color: rgba(255, 255, 255, 0.1) !important;
}

M
Miguel Solorio 已提交
391 392
.search-view .action-remove {
	background: url("remove-light.svg") center center no-repeat;
393 394
}

M
Miguel Solorio 已提交
395 396
.vs-dark .search-view .action-remove {
	background: url("remove-dark.svg") center center no-repeat;
397 398
}

I
isidor 已提交
399
.hc-black .search-view .action-remove {
M
Miguel Solorio 已提交
400
	background: url("remove-hc.svg") center center no-repeat;
E
Erich Gamma 已提交
401 402
}

I
isidor 已提交
403
.vs-dark .search-view .message {
404
	opacity: .5;
E
Erich Gamma 已提交
405 406
}

I
isidor 已提交
407 408
.vs-dark .search-view .foldermatch,
.vs-dark .search-view .filematch {
E
Erich Gamma 已提交
409 410 411
	padding: 0;
}

M
Miguel Solorio 已提交
412 413 414 415 416 417 418 419
.vs .search-view .search-widget .toggle-replace-button.expand {
	background-image: url('tree-expanded-light.svg');
}

.vs-dark .search-view .search-widget .toggle-replace-button.expand {
	background-image: url('tree-expanded-dark.svg');
}

I
isidor 已提交
420
.hc-black .search-view .search-widget .toggle-replace-button.expand {
M
Miguel Solorio 已提交
421 422 423 424 425 426 427 428 429
	background-image: url('tree-expanded-hc.svg');
}

.vs .search-view .search-widget .toggle-replace-button.collapse {
	background-image: url('tree-collapsed-light.svg');
}

.vs-dark .search-view .search-widget .toggle-replace-button.collapse {
	background-image: url('tree-collapsed-dark.svg');
430 431
}

I
isidor 已提交
432
.hc-black .search-view .search-widget .toggle-replace-button.collapse {
M
Miguel Solorio 已提交
433
	background-image: url('tree-collapsed-hc.svg');
434 435
}

E
Erich Gamma 已提交
436 437
/* High Contrast Theming */

I
isidor 已提交
438 439 440
.hc-black .monaco-workbench .search-view .foldermatch,
.hc-black .monaco-workbench .search-view .filematch,
.hc-black .monaco-workbench .search-view .linematch {
E
Erich Gamma 已提交
441
	line-height: 20px;
I
isidor 已提交
442
}
443

444
.vs .search-panel .search-view .monaco-inputbox {
445
	border: 1px solid transparent;
446
}