polish: streamline nav, extract inline styles, improve tablet UX (#168)

This commit is contained in:
Alexander Whitestone
2026-03-11 11:32:56 -04:00
committed by GitHub
parent b028b768c9
commit 708c8a2477
5 changed files with 484 additions and 182 deletions

View File

@@ -1924,3 +1924,235 @@
margin-top: 10px;
border-radius: var(--radius-md);
}
/* ── Notification dropdown ──────────────────────────── */
.mc-notif-btn {
background: none;
cursor: pointer;
position: relative;
}
.mc-notif-menu {
right: 0;
left: auto;
min-width: 280px;
max-height: 350px;
overflow-y: auto;
}
.mc-notif-list {
padding: 6px;
}
.mc-notif-empty {
color: var(--text-dim);
font-size: 0.8rem;
text-align: center;
padding: 12px;
}
.mc-notif-item {
padding: 6px 8px;
border-bottom: 1px solid var(--border);
font-size: 0.8rem;
}
.mc-notif-title {
color: var(--text-bright);
}
.mc-notif-ts {
color: var(--text-dim);
font-size: 0.7rem;
}
.notif-badge {
display: inline-block;
width: 8px;
height: 8px;
background: var(--red);
border-radius: 50%;
position: absolute;
top: 0;
right: 0;
}
.notif-badge.hidden {
display: none;
}
/* ── Mobile notification button ─────────────────────── */
.mc-mobile-notif-btn {
background: none;
border: none;
cursor: pointer;
width: 100%;
text-align: left;
font: inherit;
color: inherit;
padding: inherit;
}
/* ── Index page: sovereignty score ───────────────────── */
.sov-section {
margin-bottom: 24px;
}
.sov-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 12px;
}
.sov-score-value {
font-size: 3rem;
font-weight: 700;
}
.sov-score-label {
font-weight: 600;
}
.sov-score-detail {
font-size: 0.875rem;
color: var(--text-muted);
}
.sov-bar-track {
background: var(--bg-tertiary);
height: 8px;
border-radius: 4px;
overflow: hidden;
}
.sov-bar-fill {
height: 100%;
width: 0%;
transition: width 0.5s;
}
/* ── Index page: section headings ────────────────────── */
.mc-section-heading {
margin-bottom: 12px;
}
.mc-section-gap {
margin-bottom: 24px;
}
/* ── Index page: grok mode ───────────────────────────── */
.mc-card-spaced {
margin-top: 24px;
}
.grok-badge-standby {
background: #666;
}
.grok-toggle-box {
border: 2px solid #666;
border-radius: 12px;
padding: 16px;
background: var(--bg-secondary);
}
.grok-toggle-row {
display: flex;
justify-content: space-between;
align-items: center;
}
.grok-toggle-title {
font-weight: 700;
font-size: 1.1rem;
color: #666;
}
.grok-toggle-desc {
font-size: 0.8rem;
color: var(--text-muted);
margin-top: 4px;
}
.grok-activate-btn {
background: #666;
color: #000;
border: none;
border-radius: 8px;
padding: 8px 20px;
cursor: pointer;
font-weight: 700;
font-family: inherit;
}
.grok-active .grok-toggle-box {
border-color: #00ff88;
}
.grok-active .grok-toggle-title {
color: #00ff88;
}
.grok-active .grok-activate-btn {
background: #00ff88;
}
/* ── Index page: heartbeat ───────────────────────────── */
.hb-log-wrap {
margin-top: 16px;
}
.hb-log {
height: 100px;
overflow-y: auto;
background: var(--bg-tertiary);
padding: 12px;
border-radius: 8px;
font-family: monospace;
font-size: 0.75rem;
}
.hb-log-placeholder {
color: var(--text-muted);
}
/* ── Index page: chat history ────────────────────────── */
.chat-history-container {
max-height: 300px;
overflow-y: auto;
}
.chat-history-msg {
margin-bottom: 12px;
padding: 8px;
border-radius: 4px;
}
.chat-history-msg--user {
background: var(--bg-tertiary);
}
.chat-history-placeholder {
color: var(--text-muted);
}
.chat-history-fallback {
color: var(--text-muted);
text-align: center;
padding: 20px;
}
.chat-history-fallback-sub {
font-size: 0.875rem;
}
/* ── Index page: dependency cards (JS-built) ─────────── */
.dep-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.dep-card-details {
font-size: 0.875rem;
color: var(--text-muted);
margin-bottom: 8px;
}
.dep-card-score {
font-size: 0.75rem;
}
/* ── Heartbeat log entries ───────────────────────────── */
.hb-entry {
margin-bottom: 2px;
}
.hb-entry-ts {
color: var(--text-muted);
}
.hb-entry-ok {
color: var(--success);
}
/* ── Grok badge states ───────────────────────────────── */
.grok-badge-active {
background: #00ff88;
color: #000;
}
/* ── Loading placeholder (shared) ────────────────────── */
.mc-loading-placeholder {
font-size: 11px;
color: var(--text-dim);
letter-spacing: 0.08em;
}