hermes-agent/plugins/mascot/dashboard/dist/style.css

227 lines
No EOL
3.7 KiB
CSS

/* Mascot Plugin Styles */
/* Connection status indicator */
.mascot-connection-indicator {
position: absolute;
bottom: 4px;
right: 4px;
width: 10px;
height: 10px;
border-radius: 50%;
background: #4ade80;
border: 2px solid var(--muted);
}
.mascot-connection-indicator.disconnected {
background: #f87171;
animation: pulse-error 1s infinite;
}
.mascot-error-badge {
position: absolute;
top: -4px;
right: -4px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #f87171;
color: white;
font-size: 12px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
}
/* Widget (sidebar) */
.mascot-widget {
display: flex;
align-items: center;
gap: 8px;
padding: 8px;
border-radius: 8px;
background: var(--card);
border: 1px solid var(--border);
}
.mascot-avatar {
position: relative;
flex-shrink: 0;
}
.mascot-info {
flex: 1;
min-width: 0;
}
.mascot-status {
margin-bottom: 2px;
}
.mascot-task {
font-size: 11px;
color: var(--muted-foreground);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* SVG placeholder animation */
.mascot-svg.mascot-pulse {
animation: mascot-pulse 1.5s ease-in-out infinite;
}
@keyframes mascot-pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
/* Sprite loading state */
.mascot-sprite.loading {
opacity: 0.3;
filter: blur(2px);
}
.mascot-sprite.loaded {
opacity: 1;
filter: none;
transition: opacity 0.2s ease, filter 0.2s ease;
}
/* Page */
.mascot-page {
padding: 16px;
}
.mascot-hero {
display: flex;
flex-direction: column;
align-items: center;
padding: 32px;
background: linear-gradient(135deg, var(--card) 0%, var(--muted) 100%);
border-radius: 12px;
margin-bottom: 16px;
}
.mascot-title {
margin-bottom: 8px;
}
.mascot-state-info {
text-align: center;
margin-top: 16px;
}
.mascot-task-display {
color: var(--muted-foreground);
margin-top: 4px;
}
.mascot-connection-status {
font-size: 12px;
color: var(--muted-foreground);
margin-top: 8px;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.status-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
}
.status-dot.connected {
background: #4ade80;
}
.status-dot.disconnected {
background: #f87171;
}
/* Controls */
.mascot-controls {
padding: 16px;
}
.mascot-status-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 8px;
margin-top: 12px;
}
.mascot-status-btn {
display: flex;
flex-direction: column;
align-items: center;
padding: 12px 8px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--card);
cursor: pointer;
transition: all 0.15s ease;
}
.mascot-status-btn:hover {
background: var(--muted);
}
.mascot-status-btn.active {
border-color: var(--primary);
background: var(--primary);
color: white;
}
.mascot-status-preview {
margin-bottom: 4px;
}
.mascot-actions {
margin-top: 12px;
display: flex;
justify-content: center;
}
.mascot-reset-btn {
padding: 8px 16px;
border-radius: 6px;
border: 1px solid var(--border);
background: var(--card);
cursor: pointer;
}
.mascot-reset-btn:hover {
background: var(--muted);
}
/* Debug */
.mascot-debug {
padding: 16px;
}
.mascot-state-json {
font-size: 11px;
font-family: ui-monospace, 'SF Mono', Menlo, monospace;
background: var(--muted);
padding: 12px;
border-radius: 8px;
overflow: auto;
max-height: 200px;
}
/* Animations */
@keyframes pulse-error {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Responsive */
@media (max-width: 640px) {
.mascot-status-grid {
grid-template-columns: repeat(3, 1fr);
}
}