Style changes
This commit is contained in:
parent
1734910d10
commit
3ac73ac3a8
@ -9,7 +9,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<% total_width = 4 + @quantities.length %>
|
<% total_width = 4 + @quantities.length %>
|
||||||
<% @meals_by_date.reverse_each do |date, meals| %>
|
<% @meals_by_date.reverse_each do |date, meals| %>
|
||||||
<tr id="date-<%= date.strftime('%Y%m%d') %>" class="date">
|
<tr id="date-<%= date.strftime('%Y%m%d') %>" class="header">
|
||||||
<td colspan="2" rowspan="2"
|
<td colspan="2" rowspan="2"
|
||||||
style="width:<%= 3 * 100/total_width %>%; border: none;"></td>
|
style="width:<%= 3 * 100/total_width %>%; border: none;"></td>
|
||||||
<td class="quantityhead" style="width:<%= 100/total_width %>%;">
|
<td class="quantityhead" style="width:<%= 100/total_width %>%;">
|
||||||
@ -24,7 +24,7 @@
|
|||||||
<td rowspan="2" style="width:<%= 100/total_width %>%; border: none;"></td>
|
<td rowspan="2" style="width:<%= 100/total_width %>%; border: none;"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr class="header">
|
||||||
<td class="quantityhead"><%= "[#{@amount_mfu_unit.shortname}]" %></td>
|
<td class="quantityhead"><%= "[#{@amount_mfu_unit.shortname}]" %></td>
|
||||||
<% @quantities.each do |q| %>
|
<% @quantities.each do |q| %>
|
||||||
<% mfu_unit = @nutrients[q][:mfu_unit] %>
|
<% mfu_unit = @nutrients[q][:mfu_unit] %>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr style="background-color: #fff2cc;">
|
<tr class="date" style="background-color: #fff2cc;">
|
||||||
<td class="date" colspan="2">
|
<td class="date" colspan="2">
|
||||||
<h3 style="margin: 0;">
|
<h3 style="margin: 0;">
|
||||||
<%= date == Date.current ? 'Today' : date.strftime('%F') %>
|
<%= date == Date.current ? 'Today' : date.strftime('%F') %>
|
||||||
|
@ -32,6 +32,9 @@ table.list td.form {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.list tbody tr.header:hover {background-color: unset;}
|
||||||
|
table.list tbody tr.header:hover td {border: none;}
|
||||||
|
|
||||||
fieldset#filters table.filter td {padding-left: 8px;}
|
fieldset#filters table.filter td {padding-left: 8px;}
|
||||||
|
|
||||||
a.icon:not(.icon-move) {margin-left: 0.3em;}
|
a.icon:not(.icon-move) {margin-left: 0.3em;}
|
||||||
|
Reference in New Issue
Block a user