diff options
Diffstat (limited to 'lib/lsg_web/templates/irc/txt.html.eex')
-rw-r--r-- | lib/lsg_web/templates/irc/txt.html.eex | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/lib/lsg_web/templates/irc/txt.html.eex b/lib/lsg_web/templates/irc/txt.html.eex index e9df681..fd4ea00 100644 --- a/lib/lsg_web/templates/irc/txt.html.eex +++ b/lib/lsg_web/templates/irc/txt.html.eex @@ -1,15 +1,27 @@ <style type="text/css"> -ol li { - margin-bottom: 5px +:target { + background-color: #ffa; + font-weight: bold; +} +ol > li > a { + display: none; +} +ol > li:hover > a { + display: inline-block; + color: gray; } </style> -<ol> +<ol class="prose space-y-3 w-auto max-w-full list-outside list-decimal m-4 leading-loose"> <%= for {txt, id} <- Enum.with_index(@data) do %> - <li id="<%= @name %>-<%= id %>"><%= txt %></li> + <li class="text-lg" id="q<%= id+1 %>"> + + <%= txt %> + <a href="#q<%= id+1 %>" class="text-xs text-gray-500 space-x-3">#</a> + </li> <% end %> </ol> <p> - <a href="/irc/txt/<%= @name %>.txt">télécharger au format texte</a> + <a href="/-/txt/<%= @name %>.txt" class="text-xs text-gray-500">télécharger au format texte</a> </p> |