Sha256: 84987b01eec4e8b62f9b08284fb047fe8ba2913233443dfc5ab4f37da248b73e
Contents?: true
Size: 891 Bytes
Versions: 3
Compression:
Stored size: 891 Bytes
Contents
<% flash.each do |msg_type, message| %> <div class="fixed z-20 text-<%= tailwindcss_class_for(msg_type) %>-100 bg-<%= tailwindcss_class_for(msg_type) %>-500 px-4 py-3 w-full" role="alert" data-controller="notice"> <span class="block sm:inline text-base lg:text-lg xl:text-xl" data-target="notice.message"><%= message %></span> <span class="absolute top-0 bottom-0 right-0 px-4 py-3 xl:py-4"> <svg class="fill-current h-6 w-6 text-<%= tailwindcss_class_for(msg_type) %>-100" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-action="click->notice#close"><title>Close</title><path d="M14.348 14.849a1.2 1.2 0 0 1-1.697 0L10 11.819l-2.651 3.029a1.2 1.2 0 1 1-1.697-1.697l2.758-3.15-2.759-3.152a1.2 1.2 0 1 1 1.697-1.697L10 8.183l2.651-3.031a1.2 1.2 0 1 1 1.697 1.697l-2.758 3.152 2.758 3.15a1.2 1.2 0 0 1 0 1.698z"/></svg> </span> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems