Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/sessions/contrib/chat/browser/media/newChatInSession.css
13405 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
/* Overrides for the new-chat-in-session view to match VS Code chat input styling */
7
8
/* Position the input at the bottom of the view */
9
.new-chat-in-session .new-chat-widget-container,
10
.new-chat-in-session .new-chat-widget-container.revealed {
11
justify-content: flex-end;
12
padding: 0;
13
}
14
15
/* Match VS Code interactive-input-part layout */
16
.new-chat-in-session .new-chat-widget-content {
17
width: 100%;
18
max-width: 950px;
19
/* Left-align (rather than centering with `margin: 0 auto`) so the input's
20
* left edge — and therefore the attach (+) button — stays anchored as the
21
* viewport narrows past max-width. */
22
margin: 0 !important;
23
padding: 4px 10px !important;
24
box-sizing: border-box;
25
}
26
.new-chat-in-session .new-chat-input-container,
27
.new-chat-in-session .new-chat-bottom-container,
28
.new-chat-in-session .new-chat-input-area {
29
max-width: 950px;
30
}
31
/* Match VS Code interactive-input-part margin and padding */
32
.new-chat-in-session .new-chat-input-container {
33
margin-top: 0;
34
}
35
.new-chat-in-session .new-chat-input-area {
36
padding: 0 6px 6px 6px;
37
border: 1px solid var(--vscode-agentsChatInput-border) !important;
38
border-radius: var(--vscode-cornerRadius-large, 8px);
39
}
40
41
.new-chat-in-session .new-chat-input-area:focus-within {
42
border-color: var(--vscode-agentsChatInput-focusBorder, var(--vscode-focusBorder)) !important;
43
}
44
45
.new-chat-in-session .sessions-chat-editor {
46
padding: 0 0 0 4px;
47
}
48
49
.new-chat-in-session .sessions-chat-editor .monaco-editor,
50
.new-chat-in-session .sessions-chat-editor .monaco-editor .overflow-guard,
51
.new-chat-in-session .sessions-chat-editor .monaco-editor-background {
52
border-radius: var(--vscode-cornerRadius-large, 8px) var(--vscode-cornerRadius-large, 8px) 0 0;
53
}
54
55
/* Bottom container: match VS Code secondary toolbar */
56
.new-chat-in-session .new-chat-bottom-container {
57
padding: 0 4px 0 5px;
58
margin-top: 4px;
59
min-height: auto;
60
gap: 6px;
61
}
62
63
.new-chat-in-session .new-chat-controls-container {
64
gap: 6px;
65
}
66
67
/* Input toolbar: match VS Code chat-input-toolbars gap */
68
.new-chat-in-session .sessions-chat-toolbar {
69
margin-top: 4px;
70
padding: 0px;
71
gap: 6px;
72
}
73
74
/* Config toolbar items spacing */
75
.new-chat-in-session .sessions-chat-config-toolbar .monaco-action-bar .actions-container {
76
gap: 6px;
77
}
78
79
/* Picker labels: match VS Code chat-secondary-toolbar sizing for all pickers */
80
.new-chat-in-session .new-chat-bottom-container .action-label,
81
.new-chat-in-session .sessions-chat-toolbar .action-label {
82
height: 16px;
83
padding: 3px 0px 3px 6px;
84
font-size: 11px;
85
color: var(--vscode-icon-foreground);
86
}
87
88
.new-chat-in-session .new-chat-bottom-container .action-label .codicon,
89
.new-chat-in-session .sessions-chat-toolbar .action-label .codicon {
90
font-size: 12px;
91
}
92
93
.new-chat-in-session .new-chat-bottom-container .action-label .codicon-chevron-down,
94
.new-chat-in-session .sessions-chat-toolbar .action-label .codicon-chevron-down {
95
font-size: 10px;
96
margin-left: 4px;
97
opacity: 0.75;
98
}
99
100
.new-chat-in-session .sessions-chat-dropdown-label {
101
margin-left: 6px;
102
}
103
104
/* Disable fade-in animations — show content immediately */
105
.new-chat-in-session .new-chat-widget-container.revealed .new-chat-input-container,
106
.new-chat-in-session .new-chat-widget-container.revealed .new-chat-bottom-container,
107
.new-chat-in-session .new-chat-widget-container.revealed .new-session-workspace-picker-container {
108
animation: none;
109
}
110
111
/* --- Sub-session tip banner --- */
112
113
.new-chat-in-session .sub-session-tip-container {
114
width: 100%;
115
max-width: 950px;
116
}
117
118
/* When tip is present, remove top border-radius from the input area so
119
the tip and input connect seamlessly. */
120
.new-chat-in-session .sub-session-tip-container + .new-chat-input-container .new-chat-input-area {
121
border-radius: 0 0 var(--vscode-cornerRadius-large, 8px) var(--vscode-cornerRadius-large, 8px) !important;
122
}
123
124
.new-chat-in-session .sub-session-tip-container + .new-chat-input-container .new-chat-input-area .sessions-chat-editor .monaco-editor,
125
.new-chat-in-session .sub-session-tip-container + .new-chat-input-container .new-chat-input-area .sessions-chat-editor .monaco-editor .overflow-guard,
126
.new-chat-in-session .sub-session-tip-container + .new-chat-input-container .new-chat-input-area .sessions-chat-editor .monaco-editor-background {
127
border-radius: 0 !important;
128
}
129
130
.new-chat-in-session .sub-session-tip-widget {
131
display: flex;
132
align-items: center;
133
gap: 6px;
134
width: 100%;
135
max-width: 100%;
136
box-sizing: border-box;
137
padding: 6px 8px;
138
background-color: var(--vscode-editorWidget-background);
139
border-radius: var(--vscode-cornerRadius-small) var(--vscode-cornerRadius-small) 0 0;
140
border: 1px solid var(--vscode-agentsChatInput-border, var(--vscode-editorWidget-border, var(--vscode-input-border, transparent)));
141
border-bottom: none;
142
font-size: var(--vscode-chat-font-size-body-s);
143
font-family: var(--vscode-chat-font-family, inherit);
144
color: var(--vscode-descriptionForeground);
145
}
146
147
.new-chat-in-session .sub-session-tip-icon {
148
flex-shrink: 0;
149
color: var(--vscode-descriptionForeground);
150
}
151
152
.new-chat-in-session .sub-session-tip-text {
153
flex: 1;
154
min-width: 0;
155
line-height: 1.4;
156
}
157
158
.new-chat-in-session .sub-session-tip-dismiss {
159
display: flex;
160
align-items: center;
161
justify-content: center;
162
flex-shrink: 0;
163
width: 20px;
164
height: 20px;
165
border: none;
166
background: transparent;
167
padding: 0;
168
border-radius: var(--vscode-cornerRadius-small);
169
cursor: pointer;
170
color: var(--vscode-descriptionForeground);
171
touch-action: manipulation;
172
}
173
174
.new-chat-in-session .sub-session-tip-dismiss:hover {
175
background-color: var(--vscode-toolbar-hoverBackground);
176
color: var(--vscode-foreground);
177
}
178
179
.new-chat-in-session .sub-session-tip-dismiss:focus-visible {
180
outline: 1px solid var(--vscode-focusBorder);
181
outline-offset: -1px;
182
}
183
184