Highlight all votes on hover

This commit is contained in:
ricola 2026-01-14 09:17:58 -06:00
parent 325200628c
commit eff896948e
2 changed files with 9 additions and 9 deletions

View file

@ -20,10 +20,10 @@
.mj-cell-<%= v[:id] %> { .mj-cell-<%= v[:id] %> {
background-color: <%= v[:color] %> !important; background-color: <%= v[:color] %> !important;
} }
<% end %>
.mj-cell-<%= v[:id] %>:hover { table:has(.mj-cell:hover) .mj-cell {
border-left-width: 1px; border-left-width: 2px;
border-right-width: 1px; border-right-width: 2px;
border-color: var(--bs-body-color); border-color: var(--bs-body-color);
} }
<% end %>

View file

@ -57,7 +57,7 @@
<tr> <tr>
<% settings.values.reverse.each do |v| %> <% settings.values.reverse.each do |v| %>
<% (1..c.mj.count[v[:id]]).each do |r| %> <% (1..c.mj.count[v[:id]]).each do |r| %>
<td class="p-0 mj-cell-<%= v[:id] %>">&nbsp;</td> <td class="p-0 mj-cell mj-cell-<%= v[:id] %>">&nbsp;</td>
<% end %> <% end %>
<% end %> <% end %>
</tr> </tr>
@ -116,7 +116,7 @@
<tr> <tr>
<% settings.values.reverse.each do |v| %> <% settings.values.reverse.each do |v| %>
<% (1..a.count[v[:id]]).each do |r| %> <% (1..a.count[v[:id]]).each do |r| %>
<td class="p-0 mj-cell-<%= v[:id] %>">&nbsp;</td> <td class="p-0 mj-cell mj-cell-<%= v[:id] %>">&nbsp;</td>
<% end %> <% end %>
<% end %> <% end %>
<td class="p-0 text-center fw-bold"> <td class="p-0 text-center fw-bold">
@ -126,7 +126,7 @@
</td> </td>
<% settings.values.each do |v| %> <% settings.values.each do |v| %>
<% (1..b.count[v[:id]]).each do |r| %> <% (1..b.count[v[:id]]).each do |r| %>
<td class="p-0 mj-cell-<%= v[:id] %>">&nbsp;</td> <td class="p-0 mj-cell mj-cell-<%= v[:id] %>">&nbsp;</td>
<% end %> <% end %>
<% end %> <% end %>
</tr> </tr>