Compare commits

...

2 commits

Author SHA1 Message Date
92a512be26 Widen tiebreak vote cells 2026-01-14 09:18:14 -06:00
eff896948e Highlight all votes on hover 2026-01-14 09:17:58 -06:00
2 changed files with 10 additions and 10 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;
} }
.mj-cell-<%= v[:id] %>:hover {
border-left-width: 1px;
border-right-width: 1px;
border-color: var(--bs-body-color);
}
<% end %> <% 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> <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>
@ -108,7 +108,7 @@
<% (1..a.n).each do |i| %> <% (1..a.n).each do |i| %>
<td class="p-0 text-center <% unless i == a.majority %>opacity-0<% end %>">↓</td> <td class="p-0 text-center <% unless i == a.majority %>opacity-0<% end %>">↓</td>
<% end %> <% end %>
<th class="w-100"></th> <th></th>
<% (1..b.n).each do |i| %> <% (1..b.n).each do |i| %>
<td class="p-0 text-center <% unless b.n - i + 1 == b.majority %>opacity-0<% end %>">↓</td> <td class="p-0 text-center <% unless b.n - i + 1 == b.majority %>opacity-0<% end %>">↓</td>
<% end %> <% end %>
@ -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>