From 7765c8ff37703c33c0de7613dba34b6c0416288f Mon Sep 17 00:00:00 2001 From: martbost Date: Sun, 15 Nov 2026 13:57:04 -0600 Subject: [PATCH] Chat widget: #scPanel[hidden]{display:none} so closing always wins over the panel's display:flex (Stack POL's widget could not close without it; this site was fine because its own stylesheet hides [hidden], the rule keeps it so). Co-Authored-By: Claude Opus 5.5 --- public/assets/chat.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/assets/chat.css b/public/assets/chat.css index c237eba..3dbe589 100644 --- a/public/assets/chat.css +++ b/public/assets/chat.css @@ -9,6 +9,8 @@ box-shadow:0 8px 22px rgba(0,0,0,.45)} #scBtn:hover{background:var(--sc-accent);color:var(--sc-accent-ink)} #scBtn:focus-visible{outline:3px solid var(--sc-red);outline-offset:3px} +/* the panel sets display:flex, which would beat the hidden attribute: closing must win */ +#scPanel[hidden]{display:none} #scPanel{position:absolute;right:0;bottom:72px;width:370px;max-width:calc(100vw - 32px);height:540px;max-height:calc(100vh - 110px);display:flex;flex-direction:column; background:var(--sc-bg);color:var(--sc-ink);border:1px solid var(--sc-line);border-radius:12px;box-shadow:0 18px 48px rgba(0,0,0,.5);overflow:hidden} .sc-head{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;background:var(--sc-head);color:var(--sc-head-ink);border-bottom:3px solid var(--sc-accent)}