Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/contrib/chat/browser/media/chatViewWelcome.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
.pane-body.chat-view-welcome-visible {
7
& > .interactive-session {
8
display: none;
9
}
10
11
& > .chat-view-welcome {
12
display: flex;
13
}
14
}
15
16
/* Container for chat widget welcome message and interactive session variants */
17
.interactive-session {
18
&.experimental-welcome-view {
19
.interactive-input-part {
20
.dropdown-action-container { display: none; }
21
.chat-attachments-container { display: none; }
22
}
23
.chat-input-toolbars > .chat-input-toolbar > div { display: none; }
24
.chat-input-toolbars .action-item:not(:has(.monaco-dropdown-with-primary)) { display: none; }
25
}
26
27
/* chat welcome container */
28
.chat-welcome-view-container {
29
display: flex;
30
align-items: center;
31
justify-content: center;
32
overflow: hidden;
33
34
&.has-chat-history {
35
flex-direction: column;
36
justify-content: flex-start;
37
align-items: stretch;
38
height: 100%;
39
position: relative;
40
div.chat-welcome-view > .chat-welcome-view-title { display: none; }
41
.chat-welcome-view-icon .codicon { line-height: 48px; }
42
div.chat-welcome-view { align-self: center; margin-top: auto; margin-bottom: auto; }
43
.chat-welcome-view-message.experimental-empty-state,
44
.chat-welcome-view-disclaimer {
45
position: absolute;
46
left: 0;
47
right: 0;
48
bottom: 0;
49
margin: 0;
50
padding: 0 8px;
51
max-width: none;
52
text-align: center;
53
}
54
}
55
}
56
57
.experimental-welcome-view & > .chat-welcome-view-input-part {
58
max-width: 650px;
59
margin-bottom: 48px;
60
}
61
}
62
63
/* Container for ChatViewPane welcome view */
64
.pane-body > .chat-view-welcome {
65
flex-direction: column;
66
justify-content: center;
67
overflow: hidden;
68
height: 100%;
69
display: none;
70
}
71
72
div.chat-welcome-view {
73
display: flex;
74
flex-direction: column;
75
align-items: center;
76
77
& > .chat-welcome-view-icon {
78
min-height: 48px;
79
}
80
81
& > .chat-welcome-view-icon .codicon {
82
font-size: 40px;
83
}
84
85
& > .chat-welcome-view-title {
86
font-size: 24px;
87
margin-top: 5px;
88
font-weight: 500;
89
text-align: center;
90
line-height: normal;
91
padding: 0 8px;
92
}
93
94
& > .chat-welcome-view-indicator-container {
95
display: flex;
96
flex-wrap: wrap;
97
margin-top: 5px;
98
gap: 9px;
99
justify-content: center;
100
}
101
102
& > .chat-welcome-view-message {
103
text-align: center;
104
max-width: 350px;
105
padding: 0 20px;
106
margin-top: 10px;
107
108
a {
109
color: var(--vscode-textLink-foreground);
110
}
111
}
112
113
& > .chat-welcome-view-message.experimental-empty-state {
114
position: relative;
115
text-align: center;
116
max-width: 100%;
117
margin: 0 auto;
118
color: var(--vscode-input-placeholderForeground);
119
120
a {
121
color: var(--vscode-textLink-foreground);
122
}
123
p{
124
margin-top: 8px;
125
margin-bottom: 8px;
126
}
127
}
128
129
.monaco-button {
130
display: inline-block;
131
width: initial;
132
padding: 4px 7px;
133
}
134
135
& > .chat-welcome-view-tips {
136
max-width: 250px;
137
margin: 10px 5px 0px;
138
139
.rendered-markdown {
140
gap: 6px;
141
display: flex;
142
align-items: start;
143
flex-direction: column;
144
}
145
146
.rendered-markdown p {
147
display: flex;
148
gap: 6px;
149
margin: 6px 0 0 0;
150
151
.codicon {
152
padding-top: 1px;
153
}
154
}
155
}
156
157
& > .chat-welcome-experimental-view-message {
158
text-align: center;
159
max-width: 350px;
160
padding: 0 20px 32px;
161
font-size: 16px;
162
163
a {
164
color: var(--vscode-input-placeholderForeground);
165
}
166
}
167
168
& > .chat-welcome-view-experimental-additional-message {
169
color: var(--vscode-input-placeholderForeground);
170
text-align: center;
171
max-width: 400px;
172
margin-top: 8px;
173
}
174
175
/* Dedicated disclaimer container appended at root in TS */
176
.interactive-session .chat-welcome-view-container.has-chat-history & > .chat-welcome-view-disclaimer {
177
text-align: center;
178
max-width: 400px;
179
color: var(--vscode-input-placeholderForeground);
180
margin: 16px auto;
181
padding: 0 12px;
182
a {
183
color: var(--vscode-textLink-foreground);
184
}
185
}
186
187
.interactive-session .chat-welcome-view-container:not(.has-chat-history) & > .chat-welcome-view-disclaimer {
188
color: var(--vscode-input-placeholderForeground);
189
text-align: center;
190
margin: -16px auto;
191
max-width: 400px;
192
a {
193
color: var(--vscode-textLink-foreground);
194
}
195
}
196
197
& > .chat-welcome-view-suggested-prompts {
198
display: flex;
199
flex-wrap: wrap;
200
justify-content: center;
201
row-gap: 8px;
202
margin-top: 4px;
203
204
> .chat-welcome-view-suggested-prompt {
205
display: flex;
206
align-items: center;
207
padding: 2px;
208
border-radius: 8px;
209
background-color: var(--vscode-editorWidget-background);
210
cursor: pointer;
211
border: 1px solid var(--vscode-chat-requestBorder, var(--vscode-input-background, transparent));
212
border-radius: 4px;
213
max-width: 200px;
214
width: fit-content;
215
margin: 0 4px;
216
217
& > .chat-welcome-view-suggested-prompt-icon {
218
display: flex;
219
align-items: center;
220
font-size: 4px;
221
color: var(--vscode-icon-foreground) !important;
222
align-items: center;
223
padding: 4px;
224
}
225
226
& > .chat-welcome-view-suggested-prompt-label {
227
font-size: 14px;
228
color: var(--vscode-editorWidget-foreground);
229
padding: 4px 4px 4px 0;
230
overflow: hidden;
231
text-overflow: ellipsis;
232
white-space: nowrap;
233
flex: 1;
234
min-width: 0;
235
}
236
}
237
238
& > .chat-welcome-view-suggested-prompt:hover {
239
background-color: var(--vscode-list-hoverBackground);
240
border-color: var(--vscode-focusBorder);
241
}
242
}
243
}
244
245
/* Recent history list shown above the welcome content */
246
.chat-welcome-history-root {
247
width: 100%;
248
padding: 0px 8px 0 8px;
249
250
.chat-welcome-history-header {
251
display: flex;
252
align-items: center;
253
justify-content: space-between;
254
padding: 2px 4px 4px 4px;
255
font-size: 11px;
256
text-transform: uppercase;
257
letter-spacing: 0.5px;
258
color: var(--vscode-descriptionForeground);
259
}
260
261
.chat-welcome-history-header-title {
262
font-weight: 600;
263
font-size: 11px;
264
padding-left: 8px;
265
}
266
267
.chat-welcome-history-header-actions {
268
display: flex;
269
align-items: center;
270
gap: 4px;
271
padding-right: 16px;
272
}
273
274
.chat-welcome-history-show-all {
275
cursor: pointer;
276
color: var(--vscode-icon-foreground);
277
padding: 2px;
278
border-radius: 4px;
279
}
280
281
.chat-welcome-history-show-all:hover {
282
background: var(--vscode-toolbar-hoverBackground, var(--vscode-list-hoverBackground));
283
}
284
285
.chat-welcome-history-show-all:focus-visible {
286
outline: 1px solid var(--vscode-focusBorder);
287
outline-offset: 1px;
288
}
289
290
.chat-welcome-history {
291
margin: 0 0 12px;
292
width: 100%;
293
}
294
295
.chat-welcome-history-list {
296
display: flex;
297
flex-direction: column;
298
border-radius: 4px;
299
overflow: hidden;
300
box-sizing: border-box;
301
padding: 0 14px 0 0;
302
}
303
304
.chat-welcome-history-item {
305
display: flex;
306
flex-direction: row;
307
border-radius: 4px;
308
align-items: center;
309
justify-content: space-between;
310
padding: 2px 12px 4px 12px;
311
line-height: 18px;
312
gap: 8px;
313
cursor: pointer;
314
outline: none;
315
&:hover { background: var(--vscode-list-hoverBackground); }
316
.chat-welcome-history-title {
317
font-size: 13px;
318
white-space: nowrap;
319
overflow: hidden;
320
text-overflow: ellipsis;
321
flex: 1 1 auto;
322
}
323
.chat-welcome-history-date {
324
font-size: 11px;
325
color: var(--vscode-descriptionForeground);
326
flex: 0 0 auto;
327
margin-left: 8px;
328
}
329
}
330
331
.chat-welcome-history-more {
332
margin: 4px 0 0;
333
padding-left: 12px;
334
a { color: var(--vscode-textLink-foreground); cursor: pointer; }
335
}
336
}
337
338
339