diff --git a/public/style/chat.css b/public/style/chat.css index c5c2dce..c42681b 100755 --- a/public/style/chat.css +++ b/public/style/chat.css @@ -335,8 +335,46 @@ body { border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); margin: 1% 0% 0.5% 1%; + transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s; + visibility: visible; } +.signature-area.hidden { + opacity: 0; + visibility: hidden; + display: none; +} + +.signature-header { + display: flex; + align-items: center; + justify-content: center; + background-color: var(--primary-color); + color: white; + border-radius: 10px 10px 0 0; + padding-left: 4%; +} + +#close-signature { + cursor: pointer; + align-items: center; + margin-left: auto; + margin-right: 2%; + border-radius: 50%; + background-color: var(--primary-color); + color: white; + border: none; + padding: -3%; + margin-top: -5%; + font-size: 1em; + font-weight: bold; + } + + #close-signature:hover { + background-color: var(--secondary-color); + color: var(--primary-color); + } + #message-input { width: 100%; height: 50px; diff --git a/src/pages/chat/chat.ts b/src/pages/chat/chat.ts index 1b7395b..f145f2e 100755 --- a/src/pages/chat/chat.ts +++ b/src/pages/chat/chat.ts @@ -93,7 +93,7 @@ class ChatElement extends HTMLElement {