mentions are now beautifull too
This commit is contained in:
parent
de0c32f961
commit
3488848906
2 changed files with 21 additions and 2 deletions
4
Core.js
4
Core.js
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
|
||||
function Core(action) {
|
||||
this.max_length = 200;
|
||||
this.max_length = 20;
|
||||
// this.timeout = 2 * 60 * 1000;
|
||||
this.timeout = 10 * 1000; // every 10 seconds
|
||||
this.action = action;
|
||||
|
@ -403,7 +403,7 @@ function findMentions(node, mentions) {
|
|||
if(basic.name) {
|
||||
var new_text = node.innerHTML.replace(
|
||||
mention.text,
|
||||
"<strong class='name' title='" + mention.entity + "'" + ">^"
|
||||
"<strong class='name' title='" + mention.entity + "'" + ">"
|
||||
+ basic.name
|
||||
+ "</strong>"
|
||||
);
|
||||
|
|
19
default.css
19
default.css
|
@ -83,6 +83,10 @@ h1 img {
|
|||
p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-left: 3px;
|
||||
margin-left: -3px;
|
||||
padding-bottom: 2px;
|
||||
margin-bottom: -2px;
|
||||
}
|
||||
|
||||
.image, .twitpic {
|
||||
|
@ -165,6 +169,21 @@ li:hover .reply, li:hover .direct-message {
|
|||
display: inline;
|
||||
}
|
||||
|
||||
li .name:first-child {
|
||||
margin-left: -3px;
|
||||
}
|
||||
|
||||
.name {
|
||||
background: #d8dfea;
|
||||
font-weight: normal;
|
||||
padding: 0 3px 2px 3px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
li:hover .name {
|
||||
background: #b8c1d0;
|
||||
}
|
||||
|
||||
|
||||
li .date {
|
||||
position: absolute;
|
||||
|
|
Reference in a new issue