searchview.css 10.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 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
}

I
isidor 已提交
32 33
.search-view .search-widget .input-box,
.search-view .search-widget .input-box .monaco-inputbox {
S
Sandeep Somavarapu 已提交
34 35 36
	height: 25px;
}

I
isidor 已提交
37
.search-view .search-widget .monaco-findInput {
E
Erich Gamma 已提交
38 39 40 41
	display: inline-block;
	vertical-align: middle;
}

I
isidor 已提交
42
.search-view .search-widget .replace-container {
43
	margin-top: 6px;
S
Sandeep Somavarapu 已提交
44
	position: relative;
45
	display: inline-flex;
46 47
}

I
isidor 已提交
48
.search-view .search-widget .replace-container.disabled {
49 50 51
	display: none;
}

I
isidor 已提交
52
.search-view .search-widget .replace-container .monaco-action-bar {
S
Sandeep Somavarapu 已提交
53 54 55
	margin-left: 3px;
}

R
Rob Lourens 已提交
56 57 58 59
.search-view .search-widget .replace-container .monaco-action-bar {
	height: 25px;
}

I
isidor 已提交
60
.search-view .search-widget .replace-container .monaco-action-bar .action-item .icon {
S
Sandeep Somavarapu 已提交
61 62 63 64 65
	background-repeat: no-repeat;
	width: 20px;
	height: 25px;
}

I
isidor 已提交
66
.search-view .query-clear {
E
Erich Gamma 已提交
67 68 69 70 71 72 73 74
	width: 20px;
	height: 20px;
	position: absolute;
	top: 3px;
	right: 3px;
	cursor: pointer;
}

I
isidor 已提交
75
.search-view .query-details {
E
Erich Gamma 已提交
76 77
	min-height: 1em;
	position: relative;
78
	margin: 0 0 0 17px;
E
Erich Gamma 已提交
79 80
}

I
isidor 已提交
81
.search-view .query-details .more {
E
Erich Gamma 已提交
82
	position: absolute;
S
Sandeep Somavarapu 已提交
83
	margin-right: 0.3em;
84
	right: 0;
E
Erich Gamma 已提交
85
	cursor: pointer;
86
	width: 16px;
B
Benjamin Pasero 已提交
87
	height: 13px;
88
	z-index: 2; /* Force it above the search results message, which has a negative top margin */
89 90
}

I
isidor 已提交
91 92
.hc-black .monaco-workbench .search-view .query-details .more,
.vs-dark .monaco-workbench .search-view .query-details .more {
B
Benjamin Pasero 已提交
93
	background: url('ellipsis-inverse.svg') top center no-repeat;
94 95
}

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

I
isidor 已提交
100
.search-view .query-details .file-types {
E
Erich Gamma 已提交
101 102 103
	display: none;
}

I
isidor 已提交
104
.search-view .query-details .file-types > .monaco-inputbox {
E
Erich Gamma 已提交
105 106 107 108
	width: 100%;
	height: 25px;
}

I
isidor 已提交
109
.search-view .query-details.more .file-types {
E
Erich Gamma 已提交
110 111 112
	display: inherit;
}

I
isidor 已提交
113
.search-view .query-details.more .file-types:last-child {
114
	padding-bottom: 10px;
E
Erich Gamma 已提交
115 116
}

I
isidor 已提交
117
.search-view .query-details .search-pattern-info {
E
Erich Gamma 已提交
118 119 120 121
	width: 16px;
	height: 16px;
}

I
isidor 已提交
122
.search-view .query-details .search-configure-exclusions {
E
Erich Gamma 已提交
123 124 125 126 127 128 129 130
	width: 16px;
	height: 16px;
}

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

131 132
.vs-dark .monaco-workbench .search-configure-exclusions,
.hc-black .monaco-workbench .search-configure-exclusions {
E
Erich Gamma 已提交
133
	background: url('configure-inverse.svg') center center no-repeat;
134
	opacity: .7;
E
Erich Gamma 已提交
135 136
}

137
.vs .monaco-workbench .search-configure-exclusions {
E
Erich Gamma 已提交
138 139 140 141
	background: url('configure.svg') center center no-repeat;
	opacity: 0.7;
}

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

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

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

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

I
isidor 已提交
170
.search-view > .results > .monaco-tree .sub-content {
171 172 173
	overflow: hidden;
}

I
isidor 已提交
174 175
.search-view .foldermatch,
.search-view .filematch {
176
	display: flex;
E
Erich Gamma 已提交
177
	position: relative;
I
isidor 已提交
178
	line-height: 22px;
E
Erich Gamma 已提交
179 180 181
	padding: 0;
}

I
isidor 已提交
182 183
.search-view .foldermatch .directory,
.search-view .filematch .directory {
E
Erich Gamma 已提交
184 185 186 187 188
	opacity: 0.7;
	font-size: 0.9em;
	margin-left: 0.8em;
}

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

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

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

205 206 207 208 209 210 211 212 213 214 215 216
.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 已提交
217
.search-view .linematch.changedOrRemoved {
E
Erich Gamma 已提交
218 219 220
	font-style: italic;
}

I
isidor 已提交
221
.search-view .query-clear {
E
Erich Gamma 已提交
222 223 224
	background: url("action-query-clear.svg") center center no-repeat;
}

I
isidor 已提交
225
.search-view .monaco-tree .monaco-tree-row .monaco-action-bar {
S
Sandeep Somavarapu 已提交
226 227 228 229 230
	line-height: 1em;
	display: none;
	padding: 0 0.8em 0 0.4em;
}

I
isidor 已提交
231
.search-view .monaco-tree .monaco-tree-row .monaco-action-bar .action-item {
S
Sandeep Somavarapu 已提交
232 233 234
	margin: 0;
}

235
.search-view .monaco-tree .monaco-tree-row:hover:not(.highlighted) .monaco-action-bar,
I
isidor 已提交
236
.search-view .monaco-tree .monaco-tree-row.focused .monaco-action-bar {
237
	display: block;
S
Sandeep Somavarapu 已提交
238 239
}

240
.search-view:not(.wide) .monaco-tree .monaco-tree-row .monaco-action-bar {
241
	flex: 1 0 auto;
242 243
}

I
isidor 已提交
244
.search-view .monaco-tree .monaco-tree-row .monaco-action-bar .action-label {
S
Sandeep Somavarapu 已提交
245 246 247 248 249 250 251
	margin-right: 0.2em;
	margin-top: 4px;
	background-repeat: no-repeat;
	width: 16px;
	height: 16px;
}

252 253 254 255 256
/* 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 已提交
257
.search-view .action-remove {
E
Erich Gamma 已提交
258 259 260
	background: url("action-remove.svg") center center no-repeat;
}

I
isidor 已提交
261
.search-view .action-replace {
262 263 264
	background-image: url('replace.svg');
}

I
isidor 已提交
265
.search-view .action-replace-all {
S
Sandeep Somavarapu 已提交
266
	background: url('replace-all.svg') center center no-repeat;
267 268
}

I
isidor 已提交
269 270
.hc-black .search-view .action-replace,
.vs-dark .search-view .action-replace {
271 272 273
	background-image: url('replace-inverse.svg');
}

I
isidor 已提交
274 275
.hc-black .search-view .action-replace-all,
.vs-dark .search-view .action-replace-all {
S
Sandeep Somavarapu 已提交
276
	background: url('replace-all-inverse.svg') center center no-repeat;
277 278
}

I
isidor 已提交
279
.search-view .label {
E
Erich Gamma 已提交
280 281 282
	font-style: italic;
}

I
isidor 已提交
283
.search-view .monaco-count-badge {
284 285 286
	margin-right: 12px;
}

287 288 289 290 291 292
.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 {
293
	display: none;
294 295
}

I
isidor 已提交
296 297
.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 已提交
298 299 300 301 302 303 304
	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 已提交
305 306
.vs-dark .monaco-workbench .search-action.refresh,
.hc-black .monaco-workbench .search-action.refresh {
E
Erich Gamma 已提交
307 308 309 310 311 312 313
	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 已提交
314 315
.vs-dark .monaco-workbench .search-action.collapse,
.hc-black .monaco-workbench .search-action.collapse {
E
Erich Gamma 已提交
316 317 318 319 320 321 322
	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 已提交
323 324
.vs-dark .monaco-workbench .search-action.clear-search-results,
.hc-black .monaco-workbench .search-action.clear-search-results {
E
Erich Gamma 已提交
325 326 327
	background: url('clear-search-results-dark.svg') center center no-repeat;
}

328 329 330 331 332 333 334 335 336
.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;
}

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

341 342
.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 已提交
343
	background: url('pattern-dark.svg') center center no-repeat;
E
Erich Gamma 已提交
344 345
}

346
.vs .monaco-workbench .search-view .query-details .file-types .controls>.monaco-custom-checkbox.useExcludesAndIgnoreFiles {
347
	background: url('excludeSettings.svg') center center no-repeat;
348 349
}

350 351
.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 {
352
	background: url('excludeSettings-dark.svg') center center no-repeat;
353 354
}

I
isidor 已提交
355
.search-view .replace.findInFileMatch {
S
Sandeep Somavarapu 已提交
356 357 358
	text-decoration: line-through;
}

I
isidor 已提交
359 360
.search-view .findInFileMatch,
.search-view .replaceMatch {
S
Sandeep Somavarapu 已提交
361 362 363
	white-space: pre;
}

I
isidor 已提交
364 365
.hc-black .monaco-workbench .search-view .replaceMatch,
.hc-black .monaco-workbench .search-view .findInFileMatch {
A
Alex Dima 已提交
366 367 368 369
	background: none !important;
	box-sizing: border-box;
}

I
isidor 已提交
370
.monaco-workbench .search-view a.prominent {
B
Benjamin Pasero 已提交
371 372 373
	text-decoration: underline;
}

E
Erich Gamma 已提交
374
/* Theming */
375

376
.vs .search-view .search-widget .toggle-replace-button:hover {
B
Benjamin Pasero 已提交
377 378 379
	background-color: rgba(0, 0, 0, 0.1) !important;
}

380
.vs-dark .search-view .search-widget .toggle-replace-button:hover {
B
Benjamin Pasero 已提交
381 382 383
	background-color: rgba(255, 255, 255, 0.1) !important;
}

I
isidor 已提交
384
.vs .search-view .search-widget .toggle-replace-button.collapse {
385 386 387
	background-image: url('expando-collapsed.svg');
}

I
isidor 已提交
388
.vs .search-view .search-widget .toggle-replace-button.expand {
389 390 391
	background-image: url('expando-expanded.svg');
}

I
isidor 已提交
392
.vs-dark .search-view .query-clear {
E
Erich Gamma 已提交
393 394 395
	background: url("action-query-clear-dark.svg") center center no-repeat;
}

I
isidor 已提交
396 397
.vs-dark .search-view .action-remove,
.hc-black .search-view .action-remove {
E
Erich Gamma 已提交
398 399 400
	background: url("action-remove-dark.svg") center center no-repeat;
}

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

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

I
isidor 已提交
410 411
.vs-dark .search-view .search-widget .toggle-replace-button.expand,
.hc-black .search-view .search-widget .toggle-replace-button.expand {
412 413 414
	background-image: url('expando-expanded-dark.svg');
}

I
isidor 已提交
415 416
.vs-dark .search-view .search-widget .toggle-replace-button.collapse,
.hc-black .search-view .search-widget .toggle-replace-button.collapse {
417 418 419
	background-image: url('expando-collapsed-dark.svg');
}

E
Erich Gamma 已提交
420 421
/* High Contrast Theming */

I
isidor 已提交
422 423 424
.hc-black .monaco-workbench .search-view .foldermatch,
.hc-black .monaco-workbench .search-view .filematch,
.hc-black .monaco-workbench .search-view .linematch {
E
Erich Gamma 已提交
425
	line-height: 20px;
I
isidor 已提交
426
}