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] %> {
background-color: <%= v[:color] %> !important;
}
.mj-cell-<%= v[:id] %>:hover {
border-left-width: 1px;
border-right-width: 1px;
border-color: var(--bs-body-color);
}
<% end %>
table:has(.mj-cell:hover) .mj-cell {
border-left-width: 2px;
border-right-width: 2px;
border-color: var(--bs-body-color);
}

View file

@ -57,7 +57,7 @@
<tr>
<% settings.values.reverse.each do |v| %>
<% (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 %>
</tr>
@ -116,7 +116,7 @@
<tr>
<% settings.values.reverse.each do |v| %>
<% (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 %>
<td class="p-0 text-center fw-bold">
@ -126,7 +126,7 @@
</td>
<% settings.values.each do |v| %>
<% (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 %>
</tr>