gateway/static/68_styles_workflow_log.css
2025-04-30 00:39:37 +02:00

297 lines
No EOL
5.8 KiB
CSS

/*
* PowerOn | Multi-Agent Service - Log Component Styles
* Styles for execution log display
*/
/* Log container */
.log-content-container {
flex: 1;
display: flex;
flex-direction: column;
height: 100%;
}
.log-title-container {
display: flex;
align-items: center;
padding: 0.5rem 1rem;
background-color: #f8f9fa;
border-bottom: 1px solid #e5e7eb;
}
.execution-log {
flex: 1;
overflow-y: auto;
background-color: #111827;
color: #34d399;
padding: 0.75rem;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 0.75rem;
height: calc(100% - 40px); /* Subtract the height of the title container */
}
/* Log entries */
.log-entry {
margin-bottom: 0;
padding: 0.4rem;
border-radius: 0;
background-color: rgba(17, 24, 39, 0.8);
position: relative;
width: 100%;
box-sizing: border-box;
word-wrap: break-word;
overflow-wrap: break-word;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.log-entry:last-child {
border-bottom: none;
}
.log-entry.collapsible {
cursor: default;
}
.log-entry .log-content {
display: block !important;
margin-top: 0.3rem;
padding: 0.3rem;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 0.25rem;
font-size: 0.8rem;
color: #e5e7eb;
max-width: 100%;
overflow-x: auto;
}
.log-entry .toggle-icon {
display: none;
}
/* Log entry header */
.log-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.log-time {
color: #9ca3af;
font-size: 0.7rem;
margin-right: 0.5rem;
white-space: nowrap;
}
.log-agent {
color: #60a5fa;
margin-right: 0.5rem;
font-weight: 500;
white-space: nowrap;
}
.log-message {
word-break: break-word;
max-width: calc(100% - 120px);
display: inline-block;
vertical-align: top;
}
/* Progress indicator */
.log-progress-container {
width: 100px;
height: 8px;
background-color: #eee;
border-radius: 4px;
margin: 0 10px;
display: inline-block;
vertical-align: middle;
position: relative;
}
.log-progress-bar {
height: 100%;
background-color: #3498db;
border-radius: 4px;
}
.log-progress-text {
position: absolute;
right: -35px;
top: -2px;
font-size: 10px;
color: #777;
}
/* Log message types */
.log-success {
color: #2ecc71 !important;
font-weight: bold !important;
}
.log-error {
color: #e74c3c !important;
font-weight: bold !important;
}
.log-warning {
color: #f39c12 !important;
font-weight: bold !important;
}
.log-info {
color: #3498db !important;
}
/* Agent-specific styles */
.log-entry.highlighted {
border-left: 3px solid #3498db !important;
background-color: rgba(52, 152, 219, 0.1) !important;
padding-left: 10px !important;
margin: 5px 0 !important;
}
.log-entry.agent-moderator {
border-left: 3px solid #9b59b6 !important;
}
.log-entry.agent-user-agent {
border-left: 3px solid #2ecc71 !important;
}
.log-entry.agent-analysis-agent {
border-left: 3px solid #f39c12 !important;
}
.log-entry.agent-coder {
border-left: 3px solid #e74c3c !important;
}
.log-entry.agent-assistant {
border-left: 3px solid #1abc9c !important;
}
/* Waiting animation */
.waiting-dots {
display: inline-block !important;
width: 24px;
height: 16px;
text-align: left !important;
font-weight: bold !important;
color: #3498db !important;
margin-left: 5px;
}
/* Log content formatting */
.log-content h1 {
font-size: 1.5rem;
color: #1f2937;
border-bottom: 1px solid #e5e7eb;
padding-bottom: 0.5rem;
margin-bottom: 1rem;
}
.log-content h2 {
font-size: 1.25rem;
color: #374151;
margin-top: 1rem;
margin-bottom: 0.75rem;
}
.log-content h3 {
font-size: 1.1rem;
color: #4b5563;
margin-top: 0.75rem;
margin-bottom: 0.5rem;
}
.log-content strong {
font-weight: 600;
color: #111827;
}
.log-content em {
font-style: italic;
color: #4b5563;
}
.log-content code {
background-color: #f3f4f6;
border-radius: 0.25rem;
padding: 0.125rem 0.25rem;
font-family: 'Consolas', monospace;
font-size: 0.875em;
color: #111827;
}
.log-content .code-block {
background-color: #111827;
color: #34d399;
border-radius: 0.25rem;
padding: 0.75rem;
font-family: 'Consolas', monospace;
font-size: 0.875rem;
margin: 0.5rem 0;
white-space: pre-wrap;
word-break: break-all;
}
.log-content ul {
list-style-type: disc;
padding-left: 1.5rem;
margin: 0.5rem 0;
}
.log-content li {
margin-bottom: 0.25rem;
line-height: 1.4;
}
.log-content .log-table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.log-content .log-table th,
.log-content .log-table td {
border: 1px solid #e5e7eb;
padding: 0.5rem;
text-align: left;
}
.log-content .log-table thead {
background-color: #f9fafb;
border-bottom: 2px solid #e5e7eb;
}
.log-content .log-table tr:nth-child(even) {
background-color: #f9fafb;
}
/* Empty state */
.log-empty-state {
color: #6b7280;
font-style: italic;
text-align: center;
padding: 1rem;
}
/* Scroll behavior */
.execution-log {
scrollbar-width: thin;
scrollbar-color: rgba(209, 213, 219, 0.5) transparent;
}
.execution-log::-webkit-scrollbar {
width: 6px;
}
.execution-log::-webkit-scrollbar-track {
background: transparent;
}
.execution-log::-webkit-scrollbar-thumb {
background-color: rgba(209, 213, 219, 0.5);
border-radius: 3px;
}