/** * Copyright (c) Microsoft Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ .chat-container { flex: 1; display: flex; flex-direction: column; justify-content: space-between; color: #e0e0e0; } .messages-container { flex: 1; overflow-y: auto; padding: 16px; gap: 16px; } .message { gap: 12px; max-width: 85%; } .user-message { flex-direction: row-reverse; margin-left: auto; width: fit-content } .message-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background-color: var(--vscode-titleBar-inactiveBackground); flex-shrink: 0; } .message-content { background-color: var(--vscode-titleBar-inactiveBackground); color: var(--vscode-titleBar-activeForeground); padding: 1px 8px; margin-bottom: 16px; } .message-content pre { text-wrap: auto; } .user-message .message-content { background-color: var(--vscode-titleBar-activeBackground); } /* Input form styles */ .input-form { position: sticky; bottom: 0; display: flex; height: 50px; gap: 8px; padding: 10px; background-color: var(--vscode-sideBar-background); border-top: 1px solid var(--vscode-sideBarSectionHeader-border); } .message-input { flex: 1; padding: 8px 12px; border: 1px solid var(--vscode-settings-textInputBorder); background-color: var(--vscode-settings-textInputBackground); font-size: 14px; outline: none; transition: border-color 0.2s; } .message-input:focus { border-color: #0078d4; } .send-button { display: flex; align-items: center; justify-content: center; padding: 8px; background-color: var(--vscode-button-background); border: none; color: white; cursor: pointer; transition: background-color 0.2s; } .send-button:hover { background-color: var(--vscode-button-hoverBackground); } .send-button:disabled { background-color: var(--vscode-disabledForeground); cursor: not-allowed; }