Sha256: 75b13387f2d086ed187577f71025441b78613e5f099d6f2e707ee0149d9efff2
Contents?: true
Size: 686 Bytes
Versions: 18
Compression:
Stored size: 686 Bytes
Contents
<% require 'smalruby_editor' colors = SmalrubyEditor::COLORS hues = [ colors[:motion], colors[:looks], colors[:data], colors[:events], colors[:control], colors[:sensing], colors[:operators], colors[:etc], ] 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
18 entries across 10 versions & 1 rubygems