From 84043c98d7927e5a8c02c9819deed95e920244d3 Mon Sep 17 00:00:00 2001 From: sD Date: Wed, 12 Feb 2020 02:04:31 +0100 Subject: new chatbox looking good --- webAO/client.css | 22 ++++++++++------------ webAO/client.js | 4 ++-- webAO/images/chatbox.svg | 2 +- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/webAO/client.css b/webAO/client.css index 4df9b15..dc3ddec 100644 --- a/webAO/client.css +++ b/webAO/client.css @@ -1,5 +1,5 @@ body { - font-family: "Ace Attorney", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "Osaka", "MS Gothic", "MS Pゴシック", "Tahoma", Sans; + font-family: sans-serif; } img { @@ -231,20 +231,19 @@ img { #client_chatcontainer { position: absolute; - top: 70%; - height: 30%; - width: 98%; - width: calc(100% - 4px); + top: 73%; + height: 27%; + width: 100%; + background-image: url("images/chatbox.svg"); + background-size: cover; + background-repeat: no-repeat; } #client_name { display: none; - padding: 0px 6px; + top: 5%; + padding: 0px 10px; height: 20%; - border: 1px solid rgba(255, 255, 255, 0.7); - background: rgba(73, 0, 254, 0.5); - top: 0; - left: 0; border-radius: 3px; position: absolute; } @@ -255,8 +254,6 @@ img { width: 100%; margin: auto; height: 90%; - border: 2px solid rgba(255, 255, 255, 0.7); - background-color: rgba(0, 0, 0, 0.5); top: 20%; border-radius: 4px; position: absolute; @@ -270,6 +267,7 @@ img { #client_chat p { margin: 4px; + padding: 5px 10px; color: white; } diff --git a/webAO/client.js b/webAO/client.js index daac518..bce7916 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1548,10 +1548,10 @@ class Viewport { } nameBox.style.display = "block"; - nameBox.style.fontSize = (nameBox.offsetHeight * 0.7) + "px"; + nameBox.style.fontSize = (nameBox.offsetHeight * 0.75) + "px"; chatBox.style.display = "block"; - chatBox.style.fontSize = (chatBox.offsetHeight * 0.25) + "px"; + chatBox.style.fontSize = (chatBox.offsetHeight * 0.3) + "px"; if (this.chatmsg.color === 6) chatBoxInner.className = "rainbow-text"; diff --git a/webAO/images/chatbox.svg b/webAO/images/chatbox.svg index 38b80d7..90dbab7 100644 --- a/webAO/images/chatbox.svg +++ b/webAO/images/chatbox.svg @@ -1 +1 @@ - \ No newline at end of file + Created with Raphaël 2.0.1 \ No newline at end of file -- cgit