feat(KB-039): complete Step 6 — Add usage indicator styles to CSS

This commit is contained in:
gsxdsm
2026-03-29 21:51:27 -07:00
parent cf520dd5f5
commit cd17926e8a

View File

@@ -5204,3 +5204,349 @@ html .column.drag-over * {
max-width: 100px;
}
}
/* ============================================================
USAGE INDICATOR STYLES
============================================================ */
/* Modal sizing */
.usage-modal {
width: 520px;
max-width: 90vw;
}
.usage-header {
display: flex;
align-items: center;
gap: 8px;
}
.usage-header-icon {
color: var(--in-progress);
}
/* Content area */
.usage-content {
max-height: 60vh;
overflow-y: auto;
padding: 0;
}
/* Provider cards */
.usage-providers {
display: flex;
flex-direction: column;
gap: 16px;
padding: 16px;
}
.usage-provider {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 14px;
}
.usage-provider-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.usage-provider-info {
display: flex;
align-items: center;
gap: 8px;
}
.usage-provider-icon {
font-size: 18px;
line-height: 1;
}
.usage-provider-name {
font-weight: 600;
font-size: 14px;
}
/* Status badges */
.usage-status-badge {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
padding: 3px 8px;
border-radius: 10px;
}
.usage-status-badge--connected {
background: rgba(63, 185, 80, 0.15);
color: var(--color-success);
}
.usage-status-badge--error {
background: rgba(248, 81, 73, 0.15);
color: var(--color-error);
}
.usage-status-badge--not-configured {
background: rgba(139, 148, 158, 0.15);
color: var(--text-muted);
}
/* Provider meta (plan, email) */
.usage-provider-meta {
display: flex;
gap: 12px;
margin-bottom: 12px;
font-size: 12px;
color: var(--text-muted);
}
.usage-provider-plan {
font-weight: 500;
color: var(--todo);
}
.usage-provider-email {
font-family: "SF Mono", Monaco, Consolas, monospace;
font-size: 11px;
}
/* Provider error */
.usage-provider-error {
font-size: 12px;
color: var(--color-error);
background: rgba(248, 81, 73, 0.1);
border-left: 3px solid var(--color-error);
border-radius: 0 var(--radius) var(--radius) 0;
padding: 8px 12px;
margin-bottom: 12px;
}
/* Usage windows */
.usage-provider-windows {
display: flex;
flex-direction: column;
gap: 12px;
}
.usage-window {
display: flex;
flex-direction: column;
gap: 4px;
}
.usage-window-header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
}
.usage-window-label {
font-weight: 500;
color: var(--text);
}
.usage-window-percentage {
font-weight: 600;
color: var(--text-muted);
font-family: "SF Mono", Monaco, Consolas, monospace;
}
/* Progress bar */
.usage-progress-bar {
height: 8px;
background: var(--border);
border-radius: 4px;
overflow: hidden;
}
.usage-progress-fill {
height: 100%;
border-radius: 4px;
transition: width 0.3s ease, background-color 0.3s ease;
}
.usage-progress-fill--low {
background: var(--color-success);
}
.usage-progress-fill--medium {
background: var(--triage);
}
.usage-progress-fill--high {
background: var(--color-error);
}
/* Window footer */
.usage-window-footer {
display: flex;
justify-content: space-between;
font-size: 11px;
color: var(--text-muted);
}
.usage-window-left {
font-weight: 500;
}
.usage-window-reset {
font-style: italic;
}
/* Empty state */
.usage-provider-empty {
font-size: 12px;
color: var(--text-muted);
font-style: italic;
padding: 8px 0;
}
/* Loading skeleton */
.usage-skeleton {
display: flex;
flex-direction: column;
gap: 16px;
padding: 16px;
}
.usage-skeleton-provider {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 14px;
}
.usage-skeleton-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
}
.usage-skeleton-icon,
.usage-skeleton-name,
.usage-skeleton-badge,
.usage-skeleton-bar,
.usage-skeleton-text {
background: var(--border);
border-radius: 4px;
animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.usage-skeleton-icon {
width: 24px;
height: 24px;
border-radius: 50%;
}
.usage-skeleton-name {
flex: 1;
height: 14px;
max-width: 120px;
}
.usage-skeleton-badge {
width: 80px;
height: 18px;
border-radius: 10px;
}
.usage-skeleton-bar {
height: 8px;
width: 100%;
border-radius: 4px;
margin-bottom: 8px;
}
.usage-skeleton-text {
height: 12px;
width: 60%;
}
@keyframes skeleton-pulse {
0%, 100% {
opacity: 0.4;
}
50% {
opacity: 0.8;
}
}
/* Error state */
.usage-error {
padding: 24px;
text-align: center;
}
.usage-error p:first-child {
font-weight: 600;
color: var(--color-error);
margin-bottom: 8px;
}
.usage-error-message {
font-size: 12px;
color: var(--text-muted);
margin-bottom: 16px;
}
/* Empty state */
.usage-empty {
padding: 32px 24px;
text-align: center;
}
.usage-empty p:first-child {
font-weight: 500;
color: var(--text-muted);
margin-bottom: 8px;
}
.usage-empty-hint {
font-size: 12px;
color: var(--text-dim);
}
/* Actions */
.usage-actions {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
.usage-last-updated {
font-size: 11px;
color: var(--text-dim);
flex: 1;
}
/* Mobile responsive */
@media (max-width: 768px) {
.usage-modal {
width: 100%;
max-width: 100%;
max-height: 100vh;
border-radius: 0;
}
.usage-content {
max-height: calc(100vh - 120px);
}
.usage-actions {
flex-wrap: wrap;
}
.usage-last-updated {
width: 100%;
text-align: center;
order: 3;
margin-top: 8px;
}
}