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

View File

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