From a1e666c10d5ac2bb3da65295349d33b929876783 Mon Sep 17 00:00:00 2001 From: Elijah R Date: Fri, 2 Feb 2024 09:01:01 -0500 Subject: [PATCH] finish turn css --- src/css/style.css | 18 +++++++++++++----- src/html/index.html | 2 +- src/ts/main.ts | 7 ++++--- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/css/style.css b/src/css/style.css index e2d944b..77fa0d3 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -87,26 +87,34 @@ display: none; } -tr.user-admin > td { +tr.user-admin > td, .chat-username-admin { color: #FF0000 !important; } -tr.user-moderator > td { +tr.user-moderator > td, .chat-username-moderator { color: #00FF00 !important; } tr.user-turn > td { background-color: #cfe2ff !important; + --bs-table-bg-state: #cfe2ff !important; + color: #000000; + --bs-table-color: #000000; } -tr.user-turn > td:hover, tr.user-turn > td:active { +tr.user-turn:hover, tr.user-turn > td:hover { background-color: #bacbe6 !important; + --bs-table-bg-state: #bacbe6 !important; } tr.user-waiting > td { background-color: #fff3cd !important; + --bs-table-bg-state: #fff3cd !important; + color: #000000; + --bs-table-color: #000000; } -.tr.user-waiting > td:hover, .tr.user-waiting > td:active { - background-color: #ece1be; +.tr.user-waiting:hover, tr.user-waiting > td:hover { + background-color: #ece1be !important; + --bs-table-bg-state: #ece1be !important; } \ No newline at end of file diff --git a/src/html/index.html b/src/html/index.html index df5cdd9..2ec0446 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -1,7 +1,7 @@ - Control Collaborative Virtual Machines! + CollabVM diff --git a/src/ts/main.ts b/src/ts/main.ts index 62aaf20..e5a2313 100644 --- a/src/ts/main.ts +++ b/src/ts/main.ts @@ -124,6 +124,7 @@ function closeVM() { // Close the VM VM.close(); VM = null; + document.title = "CollabVM"; // Remove the canvas elements.vmDisplay.innerHTML = ""; // Switch to the VM list @@ -183,15 +184,15 @@ function chatMessage(username : string, message : string) { var msgclass; switch (rank) { case Rank.Unregistered: - userclass = "user-unregistered"; + userclass = "chat-username-unregistered"; msgclass = "chat-unregistered"; break; case Rank.Admin: - userclass = "user-admin"; + userclass = "chat-username-admin"; msgclass = "chat-admin"; break; case Rank.Moderator: - userclass = "user-mod"; + userclass = "chat-username-moderator"; msgclass = "chat-moderator"; break; }