From 5fb63f403568280e4395e5c1ea11fa2d37d520ea Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 22 Apr 2015 14:03:27 +0200 Subject: Improve history row styling --- chatserver.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'chatserver.html') diff --git a/chatserver.html b/chatserver.html index 3b11fd5..02c0b1a 100644 --- a/chatserver.html +++ b/chatserver.html @@ -23,7 +23,7 @@ td#lobbylog{ display:inline-block; height:calc(100% - 8px); border:1px #ccc solid; - border-radius:10px; + border-radius:3px; padding:0; font-family:Monaco,"Courier New",Monospace; } @@ -43,13 +43,15 @@ div#lobbylistdiv > div.selected{ color:#00a; background-color:#eef; } +table#lobbylogtab{ + width:100%; +} td#lobbylog > div, tbody#lobbtlobtb{ overflow:scroll; } -tbody#lobbylogtb, -tbody#lobbylogtb > tr{ - width:100%; +tbody#lobbylogtb > tr.history{ + background-color:#ccc; } td#lobbylog > div{ height:calc(100% - 22px); @@ -178,7 +180,7 @@ function addMessageLine(from,msg,isHistory){ td.appendChild(table); tr.appendChild(td); - if(isHistory)tr.style.backgroundColor="#ccc"; + if(isHistory)tr.classList.add("history"); document.getElementById("lobbylogtb").appendChild(tr); @@ -220,7 +222,7 @@ function switchTheme(theme){ -
+
-- cgit v1.2.3-70-g09d2