aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-08-10 00:09:40 +0200
committerstonedDiscord <Tukz@gmx.de>2022-08-10 00:09:40 +0200
commit73346f6e281bc59713381688f30325aea2039890 (patch)
treeb52da100b5f4d50e2c786a788eafd7e5b3cacaa3 /webAO
parent2194597e6ec4c8d4a8aefcb8e90cf02598b0a4df (diff)
add DR2 music to theme
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.ts3
-rw-r--r--webAO/styles/chatbox/chatdr2.css9
2 files changed, 9 insertions, 3 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index 5444a1b..5cee9bf 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -2762,6 +2762,9 @@ export function resizeChatbox() {
const gameHeight = document.getElementById("client_background").offsetHeight;
chatContainerBox.style.fontSize = `${(gameHeight * 0.0521).toFixed(1)}px`;
+
+ const trackstatus = <HTMLMarqueeElement>(document.getElementById("client_trackstatustext"));
+ trackstatus.width = (trackstatus.offsetWidth-1)+"px";
}
window.resizeChatbox = resizeChatbox;
diff --git a/webAO/styles/chatbox/chatdr2.css b/webAO/styles/chatbox/chatdr2.css
index 481cd3d..fdfc426 100644
--- a/webAO/styles/chatbox/chatdr2.css
+++ b/webAO/styles/chatbox/chatdr2.css
@@ -102,7 +102,7 @@
#client_trackstatus {
display: block;
position: absolute;
- width: 35%;
+ width: 30%;
height: 35%;
top: 0;
left: 0;
@@ -113,8 +113,11 @@
#client_trackstatustext {
position: absolute;
- top: 4%;
- left: 4%;
+ top: 6%;
+ left: 25%;
+ width: 50%;
color: #f84f00;
font-family: monospace;
+ font-size: 1.2em;
+ white-space: nowrap;
} \ No newline at end of file