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 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#scBtn:hover{background:var(--sc-lime-hi)}
|
||||
#scBtn:focus-visible{outline:2px solid var(--sc-cyan);outline-offset:4px}
|
||||
#scChat.open #scBtn{background:var(--sc-bg);color:var(--sc-lime)}
|
||||
/* the panel sets display:flex, which would beat the hidden attribute: closing must win */
|
||||
#scPanel[hidden]{display:none}
|
||||
#scPanel{position:absolute;right:0;bottom:74px;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,.6),0 0 0 1px rgba(155,123,255,.08);overflow:hidden}
|
||||
.sc-head{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;background:linear-gradient(135deg,rgba(155,123,255,.22),rgba(14,12,24,0) 70%),var(--sc-bg2);border-bottom:1px solid var(--sc-line)}
|
||||
|
||||
Reference in New Issue
Block a user