From ed688e6c364d142b74c59cc7ba7c5678732c9f1f Mon Sep 17 00:00:00 2001 From: Geoffrey Allott Date: Mon, 22 Mar 2021 21:30:29 +0000 Subject: [PATCH] close button display changes --- site/img/chatroom.svg | 9 ++------- site/modules/socket.js | 1 - site/style/game.css | 8 +++++++- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/site/img/chatroom.svg b/site/img/chatroom.svg index 5547b38..60bc366 100644 --- a/site/img/chatroom.svg +++ b/site/img/chatroom.svg @@ -1,8 +1,3 @@ - - - - A - ♢ - - + + diff --git a/site/modules/socket.js b/site/modules/socket.js index 270c2f2..00199b6 100644 --- a/site/modules/socket.js +++ b/site/modules/socket.js @@ -246,7 +246,6 @@ export class Socket { close_button() { const close = document.createElement("button"); close.classList.add("game-close"); - close.innerText = "✗"; close.onclick = () => this.close(); return close; } diff --git a/site/style/game.css b/site/style/game.css index 1e44caa..3203054 100644 --- a/site/style/game.css +++ b/site/style/game.css @@ -11,7 +11,13 @@ position: absolute; right: 0; top: 0; - font-size: 5vw; + background: center / contain no-repeat url("/img/close.svg"), #e0e0e0; + width: 5vw; + height: 5vw; +} + +.game-close:hover { + background: center / contain no-repeat url("/img/close.svg"), #ffffff; } .chat-control, .close-control { -- 2.34.1