metamaps--metamaps/app/views/shared/_metacodeBgColors.html.erb

9 lines
202 B
Plaintext
Raw Normal View History

<style>
<% Metacode.all.each do |m| %>
<% if m.color %>
<%= ".mbg" + m.name.gsub(/\s+/, "") + "{" %>
<%= "background-color:" + m.color + " !important;" %>
<%= "}" %>
<% end %>
<% end %>
</style>