Added highlighted messages

This commit is contained in:
Mattias Erming 2014-04-24 20:03:30 +02:00
parent 91001cf102
commit 75e90a6c23
2 changed files with 8 additions and 2 deletions

View File

@ -123,6 +123,7 @@ li {
line-height: 43px;
}
#chat .messages {
box-shadow: inset 8px 0 0 #f5f5f5;
bottom: 30px;
left: 0;
overflow-y: auto;
@ -133,13 +134,18 @@ li {
word-wrap: break-word;
z-index: 0;
}
#chat .messages div {
#chat .msg {
border-left: 8px solid transparent;
line-height: 1.3em;
padding: 2px 8px;
}
#chat .time {
color: #aaa;
}
#chat .highlight {
background: #fcf8e3;
border-left-color: #faebcc;
}
#chat .user {
color: #f00;
}
@ -155,6 +161,7 @@ li {
#chat .whois {
color: #888;
}
#chat .highlight .type,
#chat .motd .type,
#chat .notice .type,
#chat .whois .type {

View File

@ -123,7 +123,6 @@ function input(data) {
case "msg":
var user;
var text = _.tail(args, 2).join(" ");
if (cmd == "msg") console.log(args);
if (client) {
user = client.me;
client.send(args[1], text);