show own voting as background color
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@452 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
ee21c9e47a
commit
7e0f6a3132
2 changed files with 14 additions and 2 deletions
|
@ -10,6 +10,12 @@ if (!$GLOBALS['enableVoting']) {
|
|||
}
|
||||
if (isset($row['hasVoted']) && !$row['hasVoted']) {
|
||||
$classes = 'vote-badge vote-badge-inactive';
|
||||
} else if (isset($row['vote'])) {
|
||||
$classes = 'vote-badge '
|
||||
. ($row['vote'] == 1
|
||||
? 'vote-badge-for'
|
||||
: 'vote-badge-against'
|
||||
);
|
||||
} else {
|
||||
$classes = 'vote-badge';
|
||||
}
|
||||
|
|
|
@ -280,11 +280,17 @@ a.vote-for:hover {
|
|||
background-color: #ccffbb;
|
||||
}
|
||||
a.vote-against:hover {
|
||||
background-color: #ffbbbb;
|
||||
background-color: #ffcccc;
|
||||
}
|
||||
.vote-badge .vote-for-inactive, .vote-badge .vote-against-inactive {
|
||||
font-size: 3px;
|
||||
color: white;
|
||||
color: transparent;
|
||||
}
|
||||
.vote-badge-for {
|
||||
background-color: #ccffbb;
|
||||
}
|
||||
.vote-badge-against {
|
||||
background-color: #ffcccc;
|
||||
}
|
||||
|
||||
/* SIDEBAR */
|
||||
|
|
Loading…
Reference in a new issue