Commit 84211e45 authored by Simon Welsh's avatar Simon Welsh

Prettier empty days

git-svn-id: svn+ssh://lsgn/var/logbot-www@34 5f99df0c-6b0a-442a-b40a-040688e84a9d
parent fac52cfe
......@@ -190,8 +190,7 @@ function calendar($start, $count, $links, $thisMonth = false) {
$i = 0;
$start = $start % 7;
while($i < $start) {
$evenodd = $i % 2 ? 'odd' : 'even';
$html .= "<td class='$evenodd'></td>";
$html .= "<td class='empty'></td>";
++$i;
}
if($thisMonth) {
......@@ -224,7 +223,7 @@ function calendar($start, $count, $links, $thisMonth = false) {
}
while($i % 7) {
$evenodd = $i % 2 ? 'odd' : 'even';
$html .= "<td class='$evenodd'></td>";
$html .= "<td class='empty'></td>";
++$i;
}
$html .= '</tr></tbody></table>';
......
......@@ -70,6 +70,11 @@ table.cal td.odd {
background-color: #ccc;
}
table.cal td.empty {
background-color: transparent;
border: 0 none;
}
table.cal th {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment