From 999b92dbf918cb31c0713106ad0337ff3ea16887 Mon Sep 17 00:00:00 2001 From: timb Date: Sat, 10 Apr 2010 14:21:24 -0700 Subject: move thumb --- static/css/header.css | 14 ++++++++++---- static/js/pichat.js | 2 +- template/log_dump.st | 5 +++++ template/profile_dump.st | 15 +++++++++------ template/share_buttons.st | 7 ------- 5 files changed, 25 insertions(+), 18 deletions(-) diff --git a/static/css/header.css b/static/css/header.css index e43ec4c..8c70ff5 100755 --- a/static/css/header.css +++ b/static/css/header.css @@ -291,29 +291,35 @@ img.chat-thumb { padding-right: 15px; } +.logged-dump { + position: relative; +} + /* sharing */ .buttons{ cursor:pointer; padding-top: 8px; } .buttons .share { - opacity: 0.2; + opacity: 0.5; } .buttons .share:hover { opacity: 1; } .buttons .other-sites { - padding-left: 20px; + /*padding-left: 20px;*/ } -.buttons img.thumb { +img.thumb { position: absolute; margin-left: 0px; margin-top: 0px; height: 16px; width: 16px; + right: 10px; + top: 10px; display: block; } -.buttons .thumb.favorite { +.thumb.favorite { position: absolute; margin-left: 0px; margin-top: 0px; diff --git a/static/js/pichat.js b/static/js/pichat.js index 50dd8b0..5fa079a 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -448,7 +448,7 @@ function initLog() { // jesus this logic is ugly function initLogThumb(){ - $(".buttons .thumb").bind('mouseover mouseout', + $(".logged-dump .thumb").bind('mouseover mouseout', function(e) { var favorited = $(this).parents(".dump").hasClass("favorite") ? true : false; if (e.type == "mouseover") { diff --git a/template/log_dump.st b/template/log_dump.st index 155981d..0a6b596 100644 --- a/template/log_dump.st +++ b/template/log_dump.st @@ -12,6 +12,11 @@ $else$ $endif$ +$if(dump.favorited)$ + +$else$ + +$endif$
$dump.content$
$share_buttons()$ diff --git a/template/profile_dump.st b/template/profile_dump.st index ff5ff8c..31a0ca3 100644 --- a/template/profile_dump.st +++ b/template/profile_dump.st @@ -4,14 +4,17 @@
- - $if(dump.avatar)$ +$if(dump.avatar)$ - $else$ +$else$ - $endif$ - +$endif$
+$if(dump.favorited)$ + +$else$ + +$endif$
$dump.content$
- $share_buttons()$ +$share_buttons()$ diff --git a/template/share_buttons.st b/template/share_buttons.st index 3f1f472..02736dc 100644 --- a/template/share_buttons.st +++ b/template/share_buttons.st @@ -1,11 +1,4 @@
-$if(dump)$ - $if(dump.favorited)$ - - $else$ - - $endif$ -$endif$ -- cgit v1.2.3-70-g09d2