mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Added highlighted messages
This commit is contained in:
parent
91001cf102
commit
75e90a6c23
2 changed files with 8 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue