mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-06 05:35:46 +02:00
f62377748b
Small pill in bottom-right corner of every page: "● gstack · 3 refs" Shows when connected via CDP, fades to 30% opacity after 3s, full on hover. Disappears entirely when disconnected. Background worker now notifies content scripts on connect/disconnect state changes so the pill appears/disappears without polling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
123 lines
2.3 KiB
CSS
123 lines
2.3 KiB
CSS
/* gstack browse — ref overlay + status pill styles */
|
|
|
|
#gstack-ref-overlays {
|
|
font-family: 'SF Mono', 'Fira Code', monospace !important;
|
|
}
|
|
|
|
/* Connection status pill — bottom-right corner */
|
|
#gstack-status-pill {
|
|
position: fixed;
|
|
bottom: 16px;
|
|
right: 16px;
|
|
z-index: 2147483646;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
background: rgba(10, 10, 10, 0.85);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
border: 1px solid rgba(74, 222, 128, 0.3);
|
|
border-radius: 20px;
|
|
color: #e0e0e0;
|
|
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.02em;
|
|
pointer-events: none;
|
|
transition: opacity 0.5s ease;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
#gstack-status-pill:hover {
|
|
opacity: 1 !important;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.gstack-pill-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: #4ade80;
|
|
box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
#gstack-status-pill {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
.gstack-ref-badge {
|
|
position: absolute;
|
|
background: rgba(220, 38, 38, 0.9);
|
|
color: #fff;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
line-height: 14px;
|
|
pointer-events: none;
|
|
z-index: 2147483647;
|
|
}
|
|
|
|
/* Floating ref panel (used when positions are unknown) */
|
|
.gstack-ref-panel {
|
|
position: fixed;
|
|
bottom: 12px;
|
|
right: 12px;
|
|
width: 220px;
|
|
max-height: 300px;
|
|
background: rgba(10, 10, 10, 0.95);
|
|
border: 1px solid #333;
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
pointer-events: auto;
|
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.gstack-ref-panel-header {
|
|
padding: 6px 10px;
|
|
background: #0f0f0f;
|
|
border-bottom: 1px solid #222;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.gstack-ref-panel-list {
|
|
max-height: 260px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.gstack-ref-panel-row {
|
|
padding: 3px 10px;
|
|
border-bottom: 1px solid #1a1a1a;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.gstack-ref-panel-id {
|
|
color: #4ade80;
|
|
font-weight: 600;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.gstack-ref-panel-role {
|
|
color: #888;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.gstack-ref-panel-name {
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.gstack-ref-panel-more {
|
|
padding: 4px 10px;
|
|
color: #666;
|
|
font-style: italic;
|
|
}
|