Files
containerSite/popup/popup.css
sal 0435d06bbc Fix cross-compartment crashes, add per-container vector settings
- Replace Intl.DateTimeFormat and RTCPeerConnection constructor overrides
  with safe non-constructor approaches to fix Discord and other complex apps
- Add per-container vector toggles (gear icon in popup)
- Add per-container delete button in popup
- Fix Reset All not removing orphaned containers
- Popup now only shows managed containers
- Bump version to 0.5.3
2026-03-04 22:40:08 -06:00

55 lines
3.6 KiB
CSS

* { margin: 0; padding: 0; box-sizing: border-box; }
body { width: 300px; font: 13px/1.4 system-ui, sans-serif; color: #e0e0e0; background: #1e1e2e; }
h1 { padding: 10px 12px 6px; font-size: 15px; font-weight: 600; border-bottom: 1px solid #333; }
.search-wrap { padding: 6px 12px; border-bottom: 1px solid #2a2a3a; }
#search { width: 100%; padding: 5px 8px; background: #2a2a3a; border: 1px solid #444; border-radius: 4px; color: #e0e0e0; font-size: 12px; outline: none; }
#search:focus { border-color: #4a9eff; }
#search::placeholder { color: #666; }
#container-list { max-height: 320px; overflow-y: auto; }
.row.hidden { display: none; }
.row { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid #2a2a3a; }
.row:hover { background: #2a2a3a; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.name { flex: 1; overflow: hidden; min-width: 0; }
.name-primary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-domain { font-size: 10px; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toggle { appearance: none; width: 32px; height: 18px; background: #444; border-radius: 9px; position: relative; cursor: pointer; flex-shrink: 0; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #888; border-radius: 50%; transition: .15s; }
.toggle:checked { background: #4a9eff; }
.toggle:checked::after { left: 16px; background: #fff; }
.regen { background: none; border: 1px solid #555; color: #aaa; border-radius: 4px; padding: 2px 6px; font-size: 11px; cursor: pointer; flex-shrink: 0; }
.regen:hover { border-color: #888; color: #ddd; }
.del { background: none; border: none; color: #664444; font-size: 15px; cursor: pointer; flex-shrink: 0; padding: 0 2px; line-height: 1; }
.del:hover { color: #ff613d; }
.actions { padding: 8px 12px; border-top: 1px solid #333; }
#regen-all { width: 100%; padding: 6px; background: #333; border: 1px solid #555; color: #ccc; border-radius: 4px; cursor: pointer; font-size: 12px; }
#regen-all:hover { background: #444; color: #fff; }
.actions-row { display: flex; gap: 6px; margin-top: 6px; }
.actions-row button { flex: 1; padding: 6px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.secondary { background: #2a2a3a; border: 1px solid #555; color: #aaa; }
.secondary:hover { background: #333; color: #ddd; }
.danger { background: #3a1a1a; border: 1px solid #663333; color: #ff613d; }
.danger:hover { background: #4a2020; color: #ff8866; }
.gear { background: none; border: none; color: #666; font-size: 15px; cursor: pointer; flex-shrink: 0; padding: 0 2px; line-height: 1; }
.gear:hover, .gear.active { color: #4a9eff; }
.vector-panel { background: #252535; border-bottom: 1px solid #333; padding: 6px 12px 6px 30px; }
.vector-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.vector-label { flex: 1; font-size: 11px; color: #aaa; }
.toggle-sm { width: 26px !important; height: 14px !important; }
.toggle-sm::after { width: 10px !important; height: 10px !important; }
.toggle-sm:checked::after { left: 12px !important; }
.toggle.inherited { opacity: 0.5; }
.vector-reset { background: none; border: none; color: #666; font-size: 12px; cursor: pointer; padding: 0 2px; visibility: visible; }
.vector-reset:hover { color: #4a9eff; }
.dot-blue { background: #37adff; }
.dot-turquoise { background: #00c79a; }
.dot-green { background: #51cd00; }
.dot-yellow { background: #ffcb00; }
.dot-orange { background: #ff9f00; }
.dot-red { background: #ff613d; }
.dot-pink { background: #ff4bda; }
.dot-purple { background: #af51f5; }
.dot-toolbar { background: #888; }