From 3488848906f3a574c764c18e631206441328a90f Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Sat, 3 Nov 2012 15:13:20 +0100 Subject: [PATCH] mentions are now beautifull too --- Core.js | 4 ++-- default.css | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Core.js b/Core.js index efe5cee..8a86fc5 100644 --- a/Core.js +++ b/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, - "^" + "" + basic.name + "" ); diff --git a/default.css b/default.css index 5fe882a..cdfb0ea 100644 --- a/default.css +++ b/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;