disable voting on sps if setting disabled

refactors hover messages on sps votes
This commit is contained in:
Juanjo Bazán
2016-04-15 23:01:00 +02:00
parent 5a785ca7ce
commit e6a9cb4fcc
10 changed files with 111 additions and 26 deletions

View File

@@ -5,11 +5,13 @@ App.Votes =
$("div.anonymous-votes", votes).show();
$("div.organizations-votes", votes).show();
$("div.not-logged", votes).show();
$("div.no-supports-allowed", votes).show();
$("div.logged", votes).hide();
, ->
$("div.anonymous-votes", votes).hide();
$("div.organizations-votes", votes).hide();
$("div.not-logged", votes).hide();
$("div.no-supports-allowed", votes).hide();
$("div.logged", votes).show();
initialize: ->

View File

@@ -240,7 +240,7 @@
}
}
.anonymous-votes, .organizations-votes {
.anonymous-votes, .organizations-votes, .no-supports-allowed {
background: $warning-bg;
color: $warning-color;
height: 100%;
@@ -847,16 +847,13 @@
color: $budget;
}
.not-logged,
.organizations-votes,
.anonymous-votes {
.no-supports-allowed {
background: rgba(69,67,114,.96);
color: white;
padding: rem-calc(12);
}
.anonymous-votes p, .anonymous-votes a,
.organizations-votes p {
.no-supports-allowed p, .no-supports-allowed a {
color: white;
}
}