Sha256: df3d7fb7bfe8d7691daf60bf16914e242ccd17d62c43c7f6fb9c1923f135b8ab
Contents?: true
Size: 688 Bytes
Versions: 8
Compression:
Stored size: 688 Bytes
Contents
<% require 'smalruby_editor' colors = SmalrubyEditor::COLORS hues = [ colors[:motion], colors[:looks], colors[:sound], colors[:data], colors[:events], colors[:control], colors[:sensing], colors[:operators], ] colors = hues.map { |h| [SmalrubyEditor.hsv_to_rgb(h, 100, 80), SmalrubyEditor.hsv_to_rgb(h, 100, 100)] } colors.each.with_index(1) do |(color, active_color), index| %> div[aria-level="1"][aria-posinset="<%= index %>"] { .blocklyTreeRow { background-color: #<%= color %> !important; } .blocklyTreeRow.blocklyTreeSelected { background-color: #<%= active_color %> !important; } } <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems