diff --git a/public/assets/chat.css b/public/assets/chat.css index d763c5e..9316723 100644 --- a/public/assets/chat.css +++ b/public/assets/chat.css @@ -10,6 +10,8 @@ #scBtn:hover{background:#C70F18} #scBtn:focus-visible{outline:3px solid var(--sc-gold);outline-offset:3px} #scChat.open #scBtn{background:var(--sc-head)} +/* 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);clip-path:var(--sc-cut);border:1px solid var(--sc-line);box-shadow:0 18px 48px rgba(6,26,102,.3)} .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-gold)}