Permalink
Browse files

added icons and labels for party affiliation

  • Loading branch information...
caseymm
caseymm committed Mar 6, 2015
1 parent 780adae commit 79339e2b31b167211966b0c318198a65f2093106
Showing with 127 additions and 1 deletion.
  1. +122 −0 calaccess_campaign_browser/static/calaccess_campaign_browser/css/main.css
  2. BIN ..._browser/static/calaccess_campaign_browser/images/party_icons/american-independent_icon_white.png
  3. BIN ...paign_browser/static/calaccess_campaign_browser/images/party_icons/americans-elect_icon_white.png
  4. BIN calaccess_campaign_browser/static/calaccess_campaign_browser/images/party_icons/democratic_icon.png
  5. BIN ...s_campaign_browser/static/calaccess_campaign_browser/images/party_icons/democratic_icon_white.png
  6. BIN calaccess_campaign_browser/static/calaccess_campaign_browser/images/party_icons/green_icon_white.png
  7. BIN ..._campaign_browser/static/calaccess_campaign_browser/images/party_icons/independent_icon_white.png
  8. BIN ..._campaign_browser/static/calaccess_campaign_browser/images/party_icons/libertarian_icon_white.png
  9. BIN calaccess_campaign_browser/static/calaccess_campaign_browser/images/party_icons/na_icon_white.png
  10. BIN ..._campaign_browser/static/calaccess_campaign_browser/images/party_icons/natural-law_icon_white.png
  11. BIN ...n_browser/static/calaccess_campaign_browser/images/party_icons/no-party-preference_icon_white.png
  12. BIN ...campaign_browser/static/calaccess_campaign_browser/images/party_icons/non-partisan_icon_white.png
  13. BIN ...ign_browser/static/calaccess_campaign_browser/images/party_icons/peace-and-freedom_icon_white.png
  14. BIN ...ccess_campaign_browser/static/calaccess_campaign_browser/images/party_icons/reform_icon_white.png
  15. BIN calaccess_campaign_browser/static/calaccess_campaign_browser/images/party_icons/republican_icon.png
  16. BIN ...s_campaign_browser/static/calaccess_campaign_browser/images/party_icons/republican_icon_white.png
  17. BIN ...cess_campaign_browser/static/calaccess_campaign_browser/images/party_icons/unknown_icon_white.png
  18. +5 −1 calaccess_campaign_browser/templates/calaccess_campaign_browser/committee_detail.html
@@ -180,6 +180,128 @@ ul.legend li {
color: #fff;
padding: 2px 4px;
}
p.party-label{
display:inline;
}
.party-label-container{
display:inline-block;
}
.party{
white-space:nowrap;
padding:2px 3px 2px 0px;
border-style:solid;
border-width:1px;
margin-left: -5px;
padding: 1px 3px;
border-radius: 0px 2px 2px 0px;
-moz-border-radius: 0px 2px 2px 0px;
-webkit-border-radius: 0px 2px 2px 0px;
}
.party.republican{
border-color:#ba0a35;
color:#ba0a35;
}
.party.democratic{
border-color:#08009C;
color:#08009C;
}
.party.libertarian{
border-color:#DCB732;
color:#DCB732;
}
.party.americans-elect{
border-color:#97AEBD;
color:#97AEBD;
}
.party.natural-law{
border-color:#CC0066;
color:#CC0066;
}
.party.american-independent{
border-color:#042c72;
color:#042c72;
}
.party.independent{
border-color:#7000B5;
color:#7000B5;
}
.party.peace-and-freedom{
border-color:#000000;
color:#000000;
}
.party.green{
border-color:#17ab5c;
color:#17ab5c;
}
.party.reform{
border-color:#2a609e;
color:#2a609e;
}
.party.non-partisan{
border-color:#969696;
color:#969696;
}
.party.unknown{
border-color:#11A6A3;
color:#11A6A3;
}
.party.no-party-preference{
border-color:#E6A100;
color:#E6A100;
}
.party.na{
border-color:#C9C9C9;
color:#C9C9C9;
}
.party-image{
padding:2px 3px;
vertical-align: top;
border-radius: 2px 0px 0px 2px;
-moz-border-radius: 2px 0px 0px 2px;
-webkit-border-radius: 2px 0px 0px 2px;
}
.party-image.republican{
background-color:#ba0a35;
}
.party-image.democratic{
background-color:#08009C;
}
.party-image.libertarian{
background-color:#DCB732;
}
.party-image.americans-elect{
background-color:#97AEBD;
}
.party-image.natural-law{
background-color:#CC0066;
}
.party-image.american-independent{
background-color:#042c72;
}
.party-image.independent{
background-color:#7000B5;
}
.party-image.peace-and-freedom{
background-color:#000000;
}
.party-image.green{
background-color:#17ab5c;
}
.party-image.reform{
background-color:#2a609e;
}
.party-image.non-partisan{
background-color:#969696;
}
.party-image.unknown{
background-color:#11A6A3;
}
.party-image.no-party-preference{
background-color:#E6A100;
}
.party-image.na{
background-color:#C9C9C9;
}

@media only screen
and (max-width : 992px) {
@@ -13,7 +13,11 @@
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<p><strong>Type:</strong> {{ object.get_committee_type_display }}</p>
<p><strong>Party:</strong> {{ object.get_party_display }}</p>
<p class="party-label"><strong>Party:</strong></p>
<div class="party-label-container">
<img height='20px;' class="party-image {{ object.get_party_display|slugify }}" src="{{ STATIC_URL }}calaccess_campaign_browser/images/party_icons/{{ object.get_party_display|slugify }}_icon_white.png" alt="">
<span class="party {{ object.get_party_display|slugify }}">{{ object.get_party_display }}</span>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<p><strong>ID:</strong> {{ object.filer_id_raw }}</p>

0 comments on commit 79339e2

Please sign in to comment.