searchview.css 8.3 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 {
7
	margin: 0px 12px 0 2px;
R
Rob Lourens 已提交
8
	padding-top: 6px;
9
	padding-bottom: 6px;
10 11
}

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

I
isidor 已提交
27 28
.search-view .search-widget .search-container,
.search-view .search-widget .replace-container {
29
	margin-left: 18px;
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;
}

R
romainHainaut 已提交
46
/* NOTE: height is also used in searchWidget.ts as a constant*/
47
.search-view .search-widget .monaco-inputbox > .wrapper > textarea.input {
48
	overflow: initial;
49
	height: 24px; /* set initial height before measure */
50 51
}

B
Benjamin Pasero 已提交
52 53 54 55
.search-view .monaco-inputbox > .wrapper > textarea.input {
	scrollbar-width: none; /* Firefox: hide scrollbar */
}

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

I
isidor 已提交
60
.search-view .search-widget .monaco-findInput {
E
Erich Gamma 已提交
61 62
	display: inline-block;
	vertical-align: middle;
63
	width: 100%;
E
Erich Gamma 已提交
64 65
}

I
isidor 已提交
66
.search-view .search-widget .replace-container {
67
	margin-top: 6px;
S
Sandeep Somavarapu 已提交
68
	position: relative;
69
	display: inline-flex;
70 71
}

72 73 74 75 76 77 78 79 80 81 82 83 84
.search-view .search-widget .replace-input {
	position: relative;
	display: flex;
	vertical-align: middle;
	width: auto !important;
}

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

I
isidor 已提交
85
.search-view .search-widget .replace-container.disabled {
86 87 88
	display: none;
}

I
isidor 已提交
89
.search-view .search-widget .replace-container .monaco-action-bar {
90
	margin-left: 0;
S
Sandeep Somavarapu 已提交
91 92
}

R
Rob Lourens 已提交
93 94 95 96
.search-view .search-widget .replace-container .monaco-action-bar {
	height: 25px;
}

M
Miguel Solorio 已提交
97
.search-view .search-widget .replace-container .monaco-action-bar .action-item .codicon {
S
Sandeep Somavarapu 已提交
98
	background-repeat: no-repeat;
M
Miguel Solorio 已提交
99
	width: 25px;
S
Sandeep Somavarapu 已提交
100
	height: 25px;
M
Miguel Solorio 已提交
101 102 103 104
	margin-right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
S
Sandeep Somavarapu 已提交
105 106
}

I
isidor 已提交
107
.search-view .query-details {
E
Erich Gamma 已提交
108 109
	min-height: 1em;
	position: relative;
110
	margin: 0 0 0 17px;
E
Erich Gamma 已提交
111 112
}

I
isidor 已提交
113
.search-view .query-details .more {
E
Erich Gamma 已提交
114
	position: absolute;
115
	right: -2px;
E
Erich Gamma 已提交
116
	cursor: pointer;
M
Miguel Solorio 已提交
117
	width: 25px;
118
	height: 16px;
119
	z-index: 2; /* Force it above the search results message, which has a negative top margin */
120 121
}

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

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

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

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

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

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

I
isidor 已提交
154
.search-view .message {
155
	padding: 0 22px 8px;
E
Erich Gamma 已提交
156 157
}

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

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

S
Sandeep Somavarapu 已提交
174 175
.pane-body:not(.wide) .search-view .foldermatch .monaco-icon-label,
.pane-body:not(.wide) .search-view .filematch .monaco-icon-label {
J
Joao Moreno 已提交
176 177 178
	flex: 1;
}

S
Sandeep Somavarapu 已提交
179 180 181 182
.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row:hover:not(.highlighted) .foldermatch .monaco-icon-label,
.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row.focused .foldermatch .monaco-icon-label,
.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row:hover:not(.highlighted) .filematch .monaco-icon-label,
.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row.focused .filematch .monaco-icon-label {
J
Joao Moreno 已提交
183 184 185
	flex: 1;
}

S
Sandeep Somavarapu 已提交
186 187
.pane-body.wide .search-view .foldermatch .badge,
.pane-body.wide .search-view .filematch .badge {
188 189 190
	margin-left: 10px;
}

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

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

204 205 206 207 208 209 210 211 212 213 214 215
.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;
}

S
Sandeep Somavarapu 已提交
216 217
.pane-body.wide .search-view .monaco-list .monaco-list-row .foldermatch .actionBarContainer,
.pane-body.wide .search-view .monaco-list .monaco-list-row .filematch .actionBarContainer,
R
Rob Lourens 已提交
218
.search-view .monaco-list .monaco-list-row .linematch .actionBarContainer {
219 220 221
	flex: 1 0 auto;
}

S
Sandeep Somavarapu 已提交
222 223
.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row .foldermatch .actionBarContainer,
.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row .filematch .actionBarContainer {
224 225 226
	flex: 0 0 auto;
}

R
Rob Lourens 已提交
227 228 229
.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,
S
Sandeep Somavarapu 已提交
230
.pane-body:not(.wide) .search-view .monaco-list .monaco-list-row .linematch .actionBarContainer {
231 232 233
	text-align: right;
}

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

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

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

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

258
/* Adjusts spacing in high contrast mode so that actions are vertically centered */
M
Miguel Solorio 已提交
259
.hc-black .search-view .monaco-list .monaco-list-row .monaco-action-bar .action-label {
260 261 262
	margin-top: 2px;
}

I
isidor 已提交
263
.search-view .monaco-count-badge {
264 265 266
	margin-right: 12px;
}

S
Sandeep Somavarapu 已提交
267 268 269 270 271 272
.pane-body:not(.wide) .search-view > .results > .monaco-list .monaco-list-row:hover .filematch .monaco-count-badge,
.pane-body:not(.wide) .search-view > .results > .monaco-list .monaco-list-row:hover .foldermatch .monaco-count-badge,
.pane-body:not(.wide) .search-view > .results > .monaco-list .monaco-list-row:hover .linematch .monaco-count-badge,
.pane-body:not(.wide) .search-view > .results > .monaco-list .monaco-list-row.focused .filematch .monaco-count-badge,
.pane-body:not(.wide) .search-view > .results > .monaco-list .monaco-list-row.focused .foldermatch .monaco-count-badge,
.pane-body:not(.wide) .search-view > .results > .monaco-list .monaco-list-row.focused .linematch .monaco-count-badge {
J
Joao Moreno 已提交
273
	display: none;
274 275
}

I
isidor 已提交
276
.search-view .replace.findInFileMatch {
S
Sandeep Somavarapu 已提交
277 278 279
	text-decoration: line-through;
}

I
isidor 已提交
280 281
.search-view .findInFileMatch,
.search-view .replaceMatch {
S
Sandeep Somavarapu 已提交
282 283 284
	white-space: pre;
}

285 286
.monaco-workbench.hc-black .search-view .replaceMatch,
.monaco-workbench.hc-black .search-view .findInFileMatch {
A
Alex Dima 已提交
287 288 289 290
	background: none !important;
	box-sizing: border-box;
}

I
isidor 已提交
291
.monaco-workbench .search-view a.prominent {
B
Benjamin Pasero 已提交
292 293 294
	text-decoration: underline;
}

E
Erich Gamma 已提交
295
/* Theming */
296

297
.vs .search-view .search-widget .toggle-replace-button:hover {
B
Benjamin Pasero 已提交
298 299 300
	background-color: rgba(0, 0, 0, 0.1) !important;
}

301
.vs-dark .search-view .search-widget .toggle-replace-button:hover {
B
Benjamin Pasero 已提交
302 303 304
	background-color: rgba(255, 255, 255, 0.1) !important;
}

I
isidor 已提交
305 306
.vs-dark .search-view .foldermatch,
.vs-dark .search-view .filematch {
E
Erich Gamma 已提交
307 308 309 310 311
	padding: 0;
}

/* High Contrast Theming */

312 313 314
.monaco-workbench.hc-black .search-view .foldermatch,
.monaco-workbench.hc-black .search-view .filematch,
.monaco-workbench.hc-black .search-view .linematch {
E
Erich Gamma 已提交
315
	line-height: 20px;
I
isidor 已提交
316
}
317

318
.vs .search-panel .search-view .monaco-inputbox {
319
	border: 1px solid transparent;
320
}