Sha256: 9728765a310844f5270f3dd8ae42419912e516b662c7e538c90a7b30ad34ec26

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

<% if Trestle.config.theme.any? %>
<style type="text/css">
  :root {
    <% Trestle.config.theme.each do |name, color| %>
      --<%= name %>: <%= color.hex %>;
      --<%= name %>-rgb: <%= color.rgb.join(", ") %>;

      <% h, s, l = color.hsl %>
      --<%= name %>-h: <%= h %>;
      --<%= name %>-s: <%= s %>%;
      --<%= name %>-l: <%= l %>%;
    <% end %>
  }
</style>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.10.1 app/views/trestle/_theme.html.erb
trestle-0.10.0 app/views/trestle/_theme.html.erb
trestle-0.10.0.pre2 app/views/trestle/_theme.html.erb
trestle-0.10.0.pre app/views/trestle/_theme.html.erb