Chat widget would not close (Marty 2026-11-15): #scPanel's display:flex beat the hidden attribute and Stack POL has no global [hidden] rule; add #scPanel[hidden]{display:none}. chat.css?v=20261115e, chat.js?v=hide1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-15 13:57:26 -06:00
parent 7446df2f4f
commit b6e020e025
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -7,6 +7,8 @@
#scBtn{width:58px;height:58px;border-radius:18px;border:0;cursor:pointer;background:var(--sc-gold);color:#160b02;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 0 var(--sc-gold-d),0 14px 30px rgba(255,194,75,.2)}
#scBtn:focus-visible{outline:2px solid var(--sc-violet-hi);outline-offset:4px}
#scChat.open #scBtn{background:var(--sc-violet);color:#fff;box-shadow:0 5px 0 #4b2394}
/* the panel sets display:flex, which would beat the hidden attribute: closing must win */
#scPanel[hidden]{display:none}
#scPanel{position:absolute;right:0;bottom:76px;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:18px;box-shadow:0 24px 60px rgba(0,0,0,.55);overflow:hidden}
.sc-head{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;background:linear-gradient(135deg,rgba(130,71,229,.35),rgba(19,12,36,0) 75%),var(--sc-bg2);border-bottom:1px solid var(--sc-line)}