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
3296 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;
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-workbench.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-left: 0;
155
margin-right: 3px;
156
}
157
158
.monaco-editor .find-widget .button.wide {
159
width: auto;
160
padding: 1px 6px;
161
top: -1px;
162
}
163
164
.monaco-editor .find-widget .button.toggle {
165
position: absolute;
166
top: 0;
167
left: 3px;
168
width: 18px;
169
height: 100%;
170
border-radius: 0;
171
box-sizing: border-box;
172
}
173
174
.monaco-editor .find-widget .button.toggle.disabled {
175
display: none;
176
}
177
178
.monaco-editor .find-widget .disabled {
179
color: var(--vscode-disabledForeground);
180
cursor: default;
181
}
182
183
.monaco-editor .find-widget > .replace-part {
184
display: none;
185
}
186
187
.monaco-editor .find-widget > .replace-part > .monaco-findInput {
188
position: relative;
189
display: flex;
190
vertical-align: middle;
191
flex: auto;
192
flex-grow: 0;
193
flex-shrink: 0;
194
}
195
196
.monaco-editor .find-widget > .replace-part > .monaco-findInput > .controls {
197
position: absolute;
198
top: 3px;
199
right: 2px;
200
}
201
202
/* REDUCED */
203
.monaco-editor .find-widget.reduced-find-widget .matchesCount {
204
display:none;
205
}
206
207
/* NARROW (SMALLER THAN REDUCED) */
208
.monaco-editor .find-widget.narrow-find-widget {
209
max-width: 257px !important;
210
}
211
212
/* COLLAPSED (SMALLER THAN NARROW) */
213
.monaco-editor .find-widget.collapsed-find-widget {
214
max-width: 170px !important;
215
}
216
217
.monaco-editor .find-widget.collapsed-find-widget .button.previous,
218
.monaco-editor .find-widget.collapsed-find-widget .button.next,
219
.monaco-editor .find-widget.collapsed-find-widget .button.replace,
220
.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,
221
.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {
222
display:none;
223
}
224
225
.monaco-editor .find-widget.no-results .matchesCount {
226
color: var(--vscode-errorForeground);
227
}
228
229
.monaco-editor .findMatch {
230
animation-duration: 0;
231
animation-name: inherit !important;
232
background-color: var(--vscode-editor-findMatchHighlightBackground);
233
}
234
235
.monaco-editor .currentFindMatch {
236
background-color: var(--vscode-editor-findMatchBackground);
237
border: 2px solid var(--vscode-editor-findMatchBorder);
238
padding: 1px;
239
box-sizing: border-box;
240
}
241
242
.monaco-editor .findScope {
243
background-color: var(--vscode-editor-findRangeHighlightBackground);
244
}
245
246
.monaco-editor .find-widget .monaco-sash {
247
left: 0 !important;
248
background-color: var(--vscode-editorWidget-resizeBorder, var(--vscode-editorWidget-border));
249
}
250
251
.monaco-editor.hc-black .find-widget .button:before {
252
position: relative;
253
top: 1px;
254
left: 2px;
255
}
256
257
/* Action bars */
258
.monaco-editor .find-widget .button:not(.disabled):hover,
259
.monaco-editor .find-widget .codicon-find-selection:hover {
260
background-color: var(--vscode-toolbar-hoverBackground) !important;
261
}
262
263
.monaco-editor.findMatch {
264
background-color: var(--vscode-editor-findMatchHighlightBackground);
265
}
266
267
.monaco-editor.currentFindMatch {
268
background-color: var(--vscode-editor-findMatchBackground);
269
}
270
271
.monaco-editor.findScope {
272
background-color: var(--vscode-editor-findRangeHighlightBackground);
273
}
274
275
.monaco-editor.findMatch {
276
background-color: var(--vscode-editorWidget-background);
277
}
278
279
/* Close button position. */
280
.monaco-editor .find-widget > .button.codicon-widget-close {
281
position: absolute;
282
top: 5px;
283
right: 4px;
284
}
285
286