Skip to content

Commit

Permalink
fix counter colors
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Nov 2, 2023
1 parent 55388fa commit 234594c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<% unless proposal.rejected? || proposal.withdrawn? %>
<% unless current_settings.votes_hidden? %>
<span class="votes_counter">
<span data-weight="3" title="<%= proposal.manifest.label_for(3) %>" class="text-success"><%= t("decidim.decidim_awesome.voting.voting_cards.weights.g") %>: <%= model.weight_count(3) %></span> |
<span data-weight="2" title="<%= proposal.manifest.label_for(2) %>" class="text-warning"><%= t("decidim.decidim_awesome.voting.voting_cards.weights.y") %>: <%= model.weight_count(2) %></span> |
<span data-weight="1" title="<%= proposal.manifest.label_for(1) %>" class="text-alert"><%= t("decidim.decidim_awesome.voting.voting_cards.weights.r") %>: <%= model.weight_count(1) %></span>
<span data-weight="3" title="<%= proposal.manifest.label_for(3) %>" class="weight_3"><%= t("decidim.decidim_awesome.voting.voting_cards.weights.g") %>: <%= model.weight_count(3) %></span> |
<span data-weight="2" title="<%= proposal.manifest.label_for(2) %>" class="weight_2"><%= t("decidim.decidim_awesome.voting.voting_cards.weights.y") %>: <%= model.weight_count(2) %></span> |
<span data-weight="1" title="<%= proposal.manifest.label_for(1) %>" class="weight_1"><%= t("decidim.decidim_awesome.voting.voting_cards.weights.r") %>: <%= model.weight_count(1) %></span>
<% if current_component.settings.voting_cards_show_abstain %>
| <span title="<%= proposal.manifest.label_for(0) %>" data-weight="0"><%= t("decidim.decidim_awesome.voting.voting_cards.weights.a") %>: <%= model.weight_count(0) %></span>
| <span title="<%= proposal.manifest.label_for(0) %>" data-weight="0" class="weight_0"><%= t("decidim.decidim_awesome.voting.voting_cards.weights.a") %>: <%= model.weight_count(0) %></span>
<% end %>
</span>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@
}
}
}

.votes_counter {
.weight_0 {
color: var(--voting-cards-weight-0);
}
.weight_1 {
color: var(--voting-cards-weight-1);
}
.weight_2 {
color: var(--voting-cards-weight-2);
}
.weight_3 {
color: var(--voting-cards-weight-3);
}
}
}

margin-bottom: 1.5rem;
Expand Down

0 comments on commit 234594c

Please sign in to comment.