Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/editor/contrib/find/browser/findWidget.css
5253 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
/* Find widget */
7
.monaco-editor .find-widget {
8
position: absolute;
9
z-index: 35;
10
height: 33px;
11
overflow: hidden;
12
line-height: 19px;
13
transition: transform 200ms linear;
14
padding: 0 4px 0 9px;
15
box-sizing: border-box;
16
transform: translateY(calc(-100% - 10px)); /* shadow (10px) */
17
box-shadow: 0 0 8px 2px var(--vscode-widget-shadow);
18
color: var(--vscode-editorWidget-foreground);
19
border-left: 1px solid var(--vscode-widget-border);
20
border-right: 1px solid var(--vscode-widget-border);
21
border-bottom: 1px solid var(--vscode-widget-border);
22
border-bottom-left-radius: 4px;
23
border-bottom-right-radius: 4px;
24
background-color: var(--vscode-editorWidget-background);
25
}
26
27
.monaco-reduce-motion .monaco-editor .find-widget {
28
transition: transform 0ms linear;
29
}
30
31
.monaco-editor .find-widget textarea {
32
margin: 0px;
33
}
34
35
.monaco-editor .find-widget.hiddenEditor {
36
display: none;
37
}
38
39
/* Find widget when replace is toggled on */
40
.monaco-editor .find-widget.replaceToggled > .replace-part {
41
display: flex;
42
}
43
44
.monaco-editor .find-widget.visible {
45
transform: translateY(0);
46
}
47
48
/* This outline-color rule is used to override the outline color for synthetic-focus find input. */
49
.monaco-editor .find-widget .monaco-inputbox.synthetic-focus {
50
outline: 1px solid -webkit-focus-ring-color;
51
outline-offset: -1px;
52
outline-color: var(--vscode-focusBorder);
53
}
54
55
.monaco-editor .find-widget .monaco-inputbox .input {
56
background-color: transparent;
57
min-height: 0;
58
}
59
60
.monaco-editor .find-widget .monaco-findInput .input {
61
font-size: 13px;
62
}
63
64
.monaco-editor .find-widget > .find-part,
65
.monaco-editor .find-widget > .replace-part {
66
margin: 3px 25px 0 17px;
67
font-size: 12px;
68
display: flex;
69
}
70
71
.monaco-editor .find-widget > .find-part .monaco-inputbox,
72
.monaco-editor .find-widget > .replace-part .monaco-inputbox {
73
min-height: 25px;
74
}
75
76
77
.monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .mirror {
78
padding-right: 22px;
79
}
80
81
.monaco-editor .find-widget > .find-part .monaco-inputbox > .ibwrapper > .input,
82
.monaco-editor .find-widget > .find-part .monaco-inputbox > .ibwrapper > .mirror,
83
.monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .input,
84
.monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .mirror {
85
padding-top: 2px;
86
padding-bottom: 2px;
87
}
88
89
.monaco-editor .find-widget > .find-part .find-actions {
90
height: 25px;
91
display: flex;
92
align-items: center;
93
}
94
95
.monaco-editor .find-widget > .replace-part .replace-actions {
96
height: 25px;
97
display: flex;
98
align-items: center;
99
}
100
101
.monaco-editor .find-widget .monaco-findInput {
102
vertical-align: middle;
103
display: flex;
104
flex: 1;
105
}
106
107
.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element {
108
/* Make sure textarea inherits the width correctly */
109
width: 100%;
110
}
111
112
.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical {
113
/* Hide vertical scrollbar */
114
opacity: 0;
115
}
116
117
.monaco-editor .find-widget .matchesCount {
118
display: flex;
119
flex: initial;
120
margin: 0 0 0 3px;
121
padding: 2px 0 0 2px;
122
height: 25px;
123
vertical-align: middle;
124
box-sizing: border-box;
125
text-align: center;
126
line-height: 23px;
127
}
128
129
.monaco-editor .find-widget .button {
130
width: 16px;
131
height: 16px;
132
padding: 3px;
133
border-radius: 5px;
134
display: flex;
135
flex: initial;
136
margin-left: 3px;
137
background-position: center center;
138
background-repeat: no-repeat;
139
cursor: pointer;
140
display: flex;
141
align-items: center;
142
justify-content: center;
143
}
144
145
/* find in selection button */
146
.monaco-editor .find-widget .codicon-find-selection {
147
width: 22px;
148
height: 22px;
149
padding: 3px;
150
border-radius: 5px;
151
}
152
153
.monaco-editor .find-widget .button.left {
154
margin: 4px 0 4px 5px;
155
}
156
157
.monaco-editor .find-widget .button.wide {
158
width: auto;
159
padding: 1px 6px;
160
top: -1px;
161
}
162
163
.monaco-editor .find-widget .button.toggle {
164
position: absolute;
165
top: 0;
166
left: 0;
167
width: 18px;
168
height: -webkit-fill-available;
169
border-radius: var(--vscode-cornerRadius-small);
170
box-sizing: border-box;
171
}
172
173
.monaco-editor .find-widget .button.toggle.disabled {
174
display: none;
175
}
176
177
.monaco-editor .find-widget .disabled {
178
color: var(--vscode-disabledForeground);
179
cursor: default;
180
}
181
182
.monaco-editor .find-widget > .replace-part {
183
display: none;
184
}
185
186
.monaco-editor .find-widget > .replace-part > .monaco-findInput {
187
position: relative;
188
display: flex;
189
vertical-align: middle;
190
flex: auto;
191
flex-grow: 0;
192
flex-shrink: 0;
193
}
194
195
.monaco-editor .find-widget > .replace-part > .monaco-findInput > .controls {
196
position: absolute;
197
top: 3px;
198
right: 2px;
199
}
200
201
/* REDUCED */
202
.monaco-editor .find-widget.reduced-find-widget .matchesCount {
203
display: none;
204
}
205
206
/* NARROW (SMALLER THAN REDUCED) */
207
.monaco-editor .find-widget.narrow-find-widget {
208
max-width: 257px !important;
209
}
210
211
/* COLLAPSED (SMALLER THAN NARROW) */
212
.monaco-editor .find-widget.collapsed-find-widget {
213
max-width: 170px !important;
214
}
215
216
.monaco-editor .find-widget.collapsed-find-widget .button.previous,
217
.monaco-editor .find-widget.collapsed-find-widget .button.next,
218
.monaco-editor .find-widget.collapsed-find-widget .button.replace,
219
.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,
220
.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {
221
display: none;
222
}
223
224
.monaco-editor .find-widget.no-results .matchesCount {
225
color: var(--vscode-errorForeground);
226
}
227
228
.monaco-editor .findMatch {
229
animation-duration: 0;
230
animation-name: inherit !important;
231
background-color: var(--vscode-editor-findMatchHighlightBackground);
232
}
233
234
.monaco-editor .currentFindMatch {
235
background-color: var(--vscode-editor-findMatchBackground);
236
border: 2px solid var(--vscode-editor-findMatchBorder);
237
padding: 1px;
238
box-sizing: border-box;
239
}
240
241
.monaco-editor .findScope {
242
background-color: var(--vscode-editor-findRangeHighlightBackground);
243
}
244
245
.monaco-editor .find-widget .monaco-sash {
246
left: 0 !important;
247
background-color: var(--vscode-editorWidget-resizeBorder, var(--vscode-editorWidget-border));
248
}
249
250
.monaco-editor.hc-black .find-widget .button:before {
251
position: relative;
252
top: 1px;
253
left: 2px;
254
}
255
256
/* Action bars */
257
.monaco-editor .find-widget .button:not(.disabled):hover,
258
.monaco-editor .find-widget .codicon-find-selection:hover {
259
background-color: var(--vscode-toolbar-hoverBackground) !important;
260
}
261
262
.monaco-editor.findMatch {
263
background-color: var(--vscode-editor-findMatchHighlightBackground);
264
}
265
266
.monaco-editor.currentFindMatch {
267
background-color: var(--vscode-editor-findMatchBackground);
268
}
269
270
.monaco-editor.findScope {
271
background-color: var(--vscode-editor-findRangeHighlightBackground);
272
}
273
274
.monaco-editor.findMatch {
275
background-color: var(--vscode-editorWidget-background);
276
}
277
278
/* Close button position. */
279
.monaco-editor .find-widget > .button.codicon-widget-close {
280
position: absolute;
281
top: 5px;
282
right: 4px;
283
}
284
285