diff --git a/public/css/launcher.css b/public/css/launcher.css index 3cddf62..739b939 100644 --- a/public/css/launcher.css +++ b/public/css/launcher.css @@ -194,6 +194,36 @@ body { display: flex; flex-direction: column; z-index: 1000; + transition: transform 0.3s ease; +} + +#game-chat.chat-collapsed { + transform: translateX(calc(-100% - 23px)); +} + +#chat-toggle { + position: fixed; + left: 273px; /* 20px + 250px + 3px border */ + bottom: calc(30px + 130px); + width: 22px; + height: 40px; + background: linear-gradient(#6b4a25, #3a2512); + border: 2px solid #8b6a3c; + border-left: none; + border-radius: 0 6px 6px 0; + color: #f3e6c5; + font-size: 12px; + cursor: pointer; + z-index: 1001; + display: flex; + align-items: center; + justify-content: center; + transition: left 0.3s ease, background 0.15s; +} + +#chat-toggle:hover { + background: linear-gradient(#8a6235, #4a3018); + border-color: #ffd27a; } #chat-messages { diff --git a/views/launcher.ejs b/views/launcher.ejs index 3f52dec..4e08c0d 100644 --- a/views/launcher.ejs +++ b/views/launcher.ejs @@ -605,6 +605,7 @@ +
Globalchat
@@ -1046,5 +1047,21 @@ }; }; +