From b622fda3ad7679dd0b0daaa9c45c86efc5abdaeb Mon Sep 17 00:00:00 2001 From: cweiske Date: Mon, 2 Nov 2009 09:37:14 +0000 Subject: [PATCH] add horizontal voting styles git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@497 b3834d28-1941-0410-a4f8-b48e95affb8f --- data/templates/bookmarks.tpl.php | 1 + www/scuttle.css | 28 ++++++++++++++++++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/data/templates/bookmarks.tpl.php b/data/templates/bookmarks.tpl.php index 0e49e03..d0b5dff 100644 --- a/data/templates/bookmarks.tpl.php +++ b/data/templates/bookmarks.tpl.php @@ -343,6 +343,7 @@ if($currenttag!= '') { echo '
'. $cats . $copy . $edit . $update ."
\n"; echo $privateNoteField!=''?'
'.$privateNoteField."
\n":''; + include 'bookmarks-vote-horizontal.inc.tpl.php'; echo ''; echo "\n"; diff --git a/www/scuttle.css b/www/scuttle.css index e8051bc..e7fbf81 100644 --- a/www/scuttle.css +++ b/www/scuttle.css @@ -264,22 +264,22 @@ li.xfolkentry div div.description span.anchorBookmark { .vote-badge a:hover { text-decoration: none; } -.vote-for { +.vote-badge .vote-for { /*border-top-right-radius: 10px;*/ /*border-top-left-radius: 10px;*/ -moz-border-radius-topright: 10px; -moz-border-radius-topleft: 10px; } -.vote-against { +.vote-badge .vote-against { /*border-bottom-right-radius: 10px;*/ /*border-bottom-left-radius: 10px;*/ -moz-border-radius-bottomright: 10px; -moz-border-radius-bottomleft: 10px; } -a.vote-for:hover { +.vote-badge a.vote-for:hover { background-color: #ccffbb; } -a.vote-against:hover { +.vote-badge a.vote-against:hover { background-color: #ffcccc; } .vote-badge .vote-for-inactive, .vote-badge .vote-against-inactive { @@ -293,6 +293,26 @@ a.vote-against:hover { background-color: #ffcccc; } +/* bookmark voting horizontal */ +div.vote-horiz .voting { + font-weight: bold; +} +li.xfolkentry div.vote-horiz-for { + border-left: 1em solid #ccffbb; + padding-left: 0.5em; +} +li.xfolkentry div.vote-horiz-against { + border-left: 1em solid #ffcccc; + padding-left: 0.5em; +} +.vote-horiz a.vote-for:hover { + background-color: #ccffbb; +} +.vote-horiz a.vote-against:hover { + background-color: #ffcccc; +} + + /* SIDEBAR */ div#sidebar {