Files
gstack/extension/inspector.css
Garry Tan f395f58406 feat: sidebar CSS inspector — element picker, box model, rule cascade, quick edit
Extension changes for the visual CSS inspector:
- inspector.js: element picker with hover highlight, CSS selector generation,
  basic mode fallback (getComputedStyle + CSSOM), page alteration handlers
- inspector.css: picker overlay styles (blue highlight + tooltip)
- background.js: inspector message routing (picker <-> server <-> sidepanel)
- sidepanel: Inspector tab with box model viz (gstack palette), matched rules
  with specificity badges, computed styles, click-to-edit quick edit,
  Send to Agent/Code button, empty/loading/error states

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 20:25:36 -07:00

30 lines
798 B
CSS

/* gstack browse — CSS Inspector overlay styles
* Injected alongside inspector.js into the active tab.
* Design system: amber accent, zinc neutrals.
*/
#gstack-inspector-highlight {
position: fixed;
pointer-events: none;
z-index: 2147483647;
background: rgba(59, 130, 246, 0.15);
border: 2px solid rgba(59, 130, 246, 0.6);
border-radius: 2px;
transition: top 50ms ease, left 50ms ease, width 50ms ease, height 50ms ease;
}
#gstack-inspector-tooltip {
position: fixed;
pointer-events: none;
z-index: 2147483647;
background: #27272A;
color: #e0e0e0;
font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
font-size: 11px;
padding: 3px 8px;
border-radius: 4px;
white-space: nowrap;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
line-height: 18px;
}