metamaps--metamaps/views/shared/_metacodeCssColors.html.erb

11 lines
281 B
Text
Raw Normal View History

<style>
2017-09-12 17:01:08 -04:00
<% # give text the color of the metacode by adding the class .metacodeColor{metacode-id} %>
<% Metacode.all.each do |m| %>
<% if m.color %>
2017-09-12 17:01:08 -04:00
<%= ".metacodeColor" + m.id.to_s + "{" %>
2017-09-08 16:58:17 -04:00
<%= "color:" + m.color + " !important;" %>
<%= "}" %>
<% end %>
<% end %>
2017-09-08 16:58:17 -04:00
</style>