metamaps--metamaps/app/views/shared/_metacodeCssColors.html.erb
2017-09-12 17:01:08 -04:00

11 lines
281 B
Plaintext

<style>
<% # give text the color of the metacode by adding the class .metacodeColor{metacode-id} %>
<% Metacode.all.each do |m| %>
<% if m.color %>
<%= ".metacodeColor" + m.id.to_s + "{" %>
<%= "color:" + m.color + " !important;" %>
<%= "}" %>
<% end %>
<% end %>
</style>