Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/contrib/browserView/electron-browser/media/browser.css
5241 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
.browser-root {
7
display: flex;
8
flex-direction: column;
9
width: 100%;
10
height: 100%;
11
12
.browser-toolbar {
13
display: flex;
14
align-items: center;
15
padding: 6px 8px;
16
border-bottom: 1px solid var(--vscode-widget-border);
17
background-color: var(--vscode-editor-background);
18
flex-shrink: 0;
19
gap: 8px;
20
}
21
22
.browser-nav-toolbar,
23
.browser-actions-toolbar {
24
display: flex;
25
align-items: center;
26
flex-shrink: 0;
27
28
.actions-container {
29
gap: 4px;
30
}
31
}
32
33
.browser-url-input {
34
flex: 1;
35
padding: 4px 8px;
36
background-color: var(--vscode-input-background);
37
color: var(--vscode-input-foreground);
38
border: 1px solid var(--vscode-input-border);
39
border-radius: var(--vscode-cornerRadius-small);
40
outline: none;
41
font-size: 13px;
42
43
&:focus {
44
border-color: var(--vscode-focusBorder);
45
}
46
}
47
48
.browser-container {
49
flex: 1;
50
min-height: 0;
51
margin: 0 2px 2px;
52
overflow: hidden;
53
position: relative;
54
outline: none !important;
55
}
56
57
.browser-placeholder-screenshot {
58
position: absolute;
59
top: 0;
60
left: 0;
61
right: 0;
62
bottom: 0;
63
background-image: none;
64
background-size: contain;
65
background-repeat: no-repeat;
66
}
67
68
.browser-overlay-paused {
69
position: absolute;
70
top: 0;
71
left: 0;
72
right: 0;
73
bottom: 0;
74
display: flex;
75
align-items: center;
76
justify-content: center;
77
pointer-events: none;
78
color: var(--vscode-foreground);
79
background-color: color-mix(in srgb, var(--vscode-editor-background) 15%, transparent);
80
opacity: 0;
81
visibility: hidden;
82
transition: opacity 200ms ease-in;
83
84
&.visible {
85
opacity: 1;
86
visibility: visible;
87
}
88
89
&.show-message {
90
background-color: color-mix(in srgb, var(--vscode-editor-background) 60%, transparent);
91
}
92
}
93
94
.browser-overlay-paused-message {
95
padding: 20px 40px;
96
border-radius: 4px;
97
border: 1px solid var(--vscode-editorWidget-border);
98
background-color: var(--vscode-editor-background);
99
box-shadow: 0 2px 8px var(--vscode-widget-shadow);
100
max-width: 80%;
101
text-align: center;
102
display: none;
103
}
104
105
.browser-overlay-paused.show-message .browser-overlay-paused-message {
106
display: block;
107
}
108
109
.browser-overlay-paused-heading {
110
font-size: 18px;
111
font-weight: 600;
112
margin-bottom: 8px;
113
}
114
115
.browser-overlay-paused-detail {
116
font-size: 14px;
117
color: var(--vscode-descriptionForeground);
118
}
119
120
.browser-error-container {
121
position: absolute;
122
top: 0;
123
left: 0;
124
right: 0;
125
bottom: 0;
126
flex: 1;
127
display: flex;
128
align-items: flex-start;
129
justify-content: flex-start;
130
padding: 80px 40px;
131
margin: 0 2px 2px;
132
background-color: var(--vscode-editor-background);
133
}
134
135
.browser-error-content {
136
max-width: 600px;
137
width: 100%;
138
}
139
140
.browser-error-title {
141
font-size: 18px;
142
font-weight: 600;
143
color: var(--vscode-errorForeground);
144
margin-bottom: 20px;
145
}
146
147
.browser-error-detail {
148
margin-bottom: 12px;
149
line-height: 1.6;
150
color: var(--vscode-foreground);
151
152
strong {
153
font-weight: 600;
154
}
155
156
code {
157
background-color: var(--vscode-textCodeBlock-background);
158
padding: 2px 6px;
159
border-radius: 3px;
160
font-family: var(--monaco-monospace-font);
161
font-size: 12px;
162
}
163
}
164
165
.browser-find-widget-wrapper {
166
flex-shrink: 0;
167
position: relative;
168
z-index: 10;
169
overflow: hidden;
170
171
&.find-visible {
172
border-bottom: 1px solid var(--vscode-widget-border);
173
}
174
175
/* Override SimpleFindWidget absolute positioning to flow in layout */
176
.simple-find-part-wrapper {
177
position: relative;
178
top: 0;
179
right: 0;
180
padding: 0;
181
margin-left: auto;
182
}
183
184
.simple-find-part {
185
border-radius: 0;
186
border: none;
187
top: 0 !important;
188
padding: 6px 8px 6px 12px;
189
transition: none;
190
191
&:not(.visible) {
192
display: none;
193
}
194
195
.monaco-sash {
196
width: 2px !important;
197
border-radius: 0;
198
199
&::before {
200
width: var(--vscode-sash-hover-size);
201
left: calc(50% - (var(--vscode-sash-hover-size) / 2));
202
}
203
}
204
205
/* Hide whole word and regex toggles */
206
.codicon-whole-word,
207
.codicon-regex {
208
display: none;
209
}
210
/* Adjust input width to account for fewer toggles */
211
.input {
212
width: calc(100% - 16px) !important;
213
}
214
}
215
}
216
217
.browser-welcome-container {
218
position: absolute;
219
top: 0;
220
left: 0;
221
right: 0;
222
bottom: 0;
223
display: flex;
224
align-items: center;
225
justify-content: center;
226
background-color: var(--vscode-editor-background);
227
228
.browser-welcome-content {
229
display: flex;
230
flex-direction: column;
231
align-items: center;
232
padding: 12px;
233
}
234
235
.browser-welcome-icon {
236
min-height: 40px;
237
238
.codicon {
239
font-size: 40px;
240
margin-bottom: 24px;
241
color: var(--vscode-descriptionForeground);
242
}
243
}
244
245
.browser-welcome-title {
246
font-size: 13px;
247
font-weight: 600;
248
color: var(--vscode-foreground);
249
margin-top: 5px;
250
text-align: center;
251
line-height: normal;
252
padding: 0 8px;
253
}
254
255
.browser-welcome-subtitle {
256
font-size: 12px;
257
position: relative;
258
text-align: center;
259
max-width: 280px;
260
padding: 0 20px;
261
margin: 8px auto 0;
262
color: var(--vscode-descriptionForeground);
263
264
p {
265
margin-top: 8px;
266
margin-bottom: 8px;
267
}
268
}
269
270
}
271
}
272
273