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']) {
|
if (isset($row['hasVoted']) && !$row['hasVoted']) {
|
||||||
$classes = 'vote-badge vote-badge-inactive';
|
$classes = 'vote-badge vote-badge-inactive';
|
||||||
|
} else if (isset($row['vote'])) {
|
||||||
|
$classes = 'vote-badge '
|
||||||
|
. ($row['vote'] == 1
|
||||||
|
? 'vote-badge-for'
|
||||||
|
: 'vote-badge-against'
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
$classes = 'vote-badge';
|
$classes = 'vote-badge';
|
||||||
}
|
}
|
||||||
|
|
|
@ -280,11 +280,17 @@ a.vote-for:hover {
|
||||||
background-color: #ccffbb;
|
background-color: #ccffbb;
|
||||||
}
|
}
|
||||||
a.vote-against:hover {
|
a.vote-against:hover {
|
||||||
background-color: #ffbbbb;
|
background-color: #ffcccc;
|
||||||
}
|
}
|
||||||
.vote-badge .vote-for-inactive, .vote-badge .vote-against-inactive {
|
.vote-badge .vote-for-inactive, .vote-badge .vote-against-inactive {
|
||||||
font-size: 3px;
|
font-size: 3px;
|
||||||
color: white;
|
color: transparent;
|
||||||
|
}
|
||||||
|
.vote-badge-for {
|
||||||
|
background-color: #ccffbb;
|
||||||
|
}
|
||||||
|
.vote-badge-against {
|
||||||
|
background-color: #ffcccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SIDEBAR */
|
/* SIDEBAR */
|
||||||
|
|
Loading…
Reference in a new issue