playwright/packages/trace-viewer/src/ui/aiConversation.css
2025-02-13 14:41:50 +01:00

129 lines
2.7 KiB
CSS

/**
* 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;
}
.chat-disclaimer {
text-align: center;
color: var(--vscode-editorBracketMatch-border);
margin: 0px;
}
.chat-container hr {
width: 100%;
border: none;
border-top: 1px solid var(--vscode-titleBar-inactiveBackground);
}
.messages-container {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 16px;
}
.message {
gap: 12px;
max-width: 85%;
}
.user-message {
flex-direction: row-reverse;
margin-left: auto;
width: fit-content
}
.message-icon {
width: 32px;
height: 32px;
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: 2px 8px;
}
.message-content pre {
text-wrap: auto;
overflow-wrap: anywhere;
}
.user-message .message-content {
background-color: var(--vscode-titleBar-activeBackground);
}
/* Input form styles */
.input-form {
position: sticky;
bottom: 0;
display: flex;
height: 64px;
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;
}