Sha256: 15108973370b8fe88f31aac15f2cae5372f22d991c7b4f5fc89aefcf4de5cc5c

Contents?: true

Size: 947 Bytes

Versions: 1

Compression:

Stored size: 947 Bytes

Contents

<%
path = show_path leaf.path
display ||= :leaf
%>
<li x-data="navLeaf" :class="{hidden}" x-init="matchers = <%= leaf.matchers.to_json %>; path = '<%= path %>'; setActive()" @popstate.window="setActive">
  <a href="<%= path %>"
    class="pr-3 py-[5px] flex items-center w-full group transition hover:bg-gray-200 hover:bg-opacity-50"
    style="<%= nav_padding_style(depth) %>"
    :class="{'!bg-indigo-100':active}"
    @click.stop.prevent="navigate"
  >
    <div class="relative w-3.5 h-3.5 mr-1.5 <%= "ml-[3px]" if display == :node %> " :class="active ? 'text-gray-900' : 'text-indigo-500'">
      <svg class="feather flex-none group-hover:text-indigo-800 transition w-3.5 h-3.5">
        <use xlink:href="/lookbook-assets/feather-sprite.svg#<%= display == :node ? "layers" : "eye" %>" />
      </svg>
    </div>
    <div class="truncate whitespace-nowrap <%= "font-bold" if display == :node %>">
      <%= leaf.label %>
    </div>
  </a>
</li>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lookbook-0.3.0.beta.2 app/views/lookbook/nav/_leaf.html.erb