mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
315 lines
7.6 KiB
CSS
315 lines
7.6 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
color: #212121;
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.25rem;
|
|
line-height: 2.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
h1:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.valid.modified:not([type=checkbox]) {
|
|
outline: 1px solid #26b050;
|
|
}
|
|
|
|
.invalid {
|
|
outline: 1px solid #e50000;
|
|
}
|
|
|
|
.validation-message {
|
|
color: #e50000;
|
|
}
|
|
|
|
.blazor-error-boundary {
|
|
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODM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YuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
|
|
padding: 1rem 1rem 1rem 3.7rem;
|
|
color: white;
|
|
}
|
|
|
|
.blazor-error-boundary::after {
|
|
content: "An error has occurred."
|
|
}
|
|
|
|
.btn-default {
|
|
display: flex;
|
|
padding: 0.25rem 0.75rem;
|
|
gap: 0.25rem;
|
|
align-items: center;
|
|
border-radius: 0.25rem;
|
|
border: 1px solid #9CA3AF;
|
|
font-size: 0.875rem;
|
|
line-height: 1.25rem;
|
|
font-weight: 600;
|
|
background-color: #D1D5DB;
|
|
}
|
|
|
|
.btn-default:hover {
|
|
background-color: #E5E7EB;
|
|
}
|
|
|
|
.btn-subtle {
|
|
display: flex;
|
|
padding: 0.25rem 0.75rem;
|
|
gap: 0.25rem;
|
|
align-items: center;
|
|
border-radius: 0.25rem;
|
|
border: 1px solid #D1D5DB;
|
|
font-size: 0.875rem;
|
|
line-height: 1.25rem;
|
|
}
|
|
|
|
.btn-subtle:hover {
|
|
border-color: #93C5FD;
|
|
background-color: #DBEAFE;
|
|
}
|
|
|
|
.page-width {
|
|
max-width: 1024px;
|
|
margin: auto;
|
|
}
|
|
|
|
/* AgentInput component styles */
|
|
.agent-input {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 12px;
|
|
width: 100%;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.agent-input textarea {
|
|
flex: 1;
|
|
padding: 12px 16px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
|
|
resize: none;
|
|
min-height: 44px;
|
|
max-height: 200px;
|
|
line-height: 1.5;
|
|
outline: none;
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.agent-input textarea:focus {
|
|
border-color: #2563eb;
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
|
}
|
|
|
|
.agent-input textarea::placeholder {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.agent-input .send-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background-color: #2563eb;
|
|
color: white;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, opacity 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.agent-input .send-button:hover:not(:disabled) {
|
|
background-color: #1d4ed8;
|
|
}
|
|
|
|
.agent-input .send-button:disabled {
|
|
background-color: #d1d5db;
|
|
color: #9ca3af;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.agent-input .send-button svg {
|
|
display: block;
|
|
}
|
|
|
|
.agent-input textarea:disabled {
|
|
background-color: #f3f4f6;
|
|
color: #9ca3af;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Loading dots animation */
|
|
.agent-loading-dots {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.agent-loading-dots span {
|
|
width: 8px;
|
|
height: 8px;
|
|
background-color: #2563eb;
|
|
border-radius: 50%;
|
|
animation: agent-dot-bounce 1.4s ease-in-out infinite both;
|
|
}
|
|
|
|
.agent-loading-dots span:nth-child(1) {
|
|
animation-delay: -0.32s;
|
|
}
|
|
|
|
.agent-loading-dots span:nth-child(2) {
|
|
animation-delay: -0.16s;
|
|
}
|
|
|
|
.agent-loading-dots span:nth-child(3) {
|
|
animation-delay: 0s;
|
|
}
|
|
|
|
@keyframes agent-dot-bounce {
|
|
0%, 80%, 100% {
|
|
transform: scale(0.6);
|
|
opacity: 0.5;
|
|
}
|
|
40% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Loading indicator in message list */
|
|
.agent-loading-indicator {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.agent-loading-indicator .agent-loading-dots {
|
|
background-color: #f3f4f6;
|
|
border-radius: 16px;
|
|
padding: 12px 16px;
|
|
width: auto;
|
|
height: auto;
|
|
}
|
|
|
|
.agent-loading-indicator .agent-loading-dots span {
|
|
width: 6px;
|
|
height: 6px;
|
|
background-color: #6b7280;
|
|
}
|
|
|
|
/* AgentSuggestions component styles */
|
|
.agent-suggestions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.agent-suggestions .suggestion-button {
|
|
padding: 8px 16px;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 20px;
|
|
background-color: #f9fafb;
|
|
color: #374151;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.agent-suggestions .suggestion-button:hover:not(:disabled) {
|
|
border-color: #2563eb;
|
|
background-color: #eff6ff;
|
|
color: #2563eb;
|
|
}
|
|
|
|
.agent-suggestions .suggestion-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Chat layout common styles */
|
|
.chat-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
.chat-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
.chat-input-area {
|
|
border-top: 1px solid #e5e7eb;
|
|
background-color: #fff;
|
|
}
|
|
|
|
/* Chat message styles */
|
|
.messages-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.chat-message {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-width: 80%;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
border: 1px solid #e5e7eb;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Hide empty message bubbles (e.g., function calls with no visual template) */
|
|
.chat-message:empty {
|
|
display: none;
|
|
}
|
|
|
|
/* User messages - right aligned with blue background */
|
|
.chat-message.user-message {
|
|
align-self: flex-end;
|
|
background-color: #2563eb;
|
|
color: white;
|
|
border-color: #2563eb;
|
|
}
|
|
|
|
/* Assistant messages - left aligned with light gray background */
|
|
.chat-message.assistant-message {
|
|
align-self: flex-start;
|
|
background-color: #f3f4f6;
|
|
color: #1f2937;
|
|
border-color: #e5e7eb;
|
|
}
|
|
|
|
/* Tool messages - left aligned, styled similar to assistant */
|
|
.chat-message.tool-message {
|
|
align-self: flex-start;
|
|
background-color: #fef3c7;
|
|
color: #92400e;
|
|
border-color: #fcd34d;
|
|
font-size: 0.875rem;
|
|
}
|