Commit 41968d22 authored by Simon Welsh's avatar Simon Welsh

And the more pretty-making!

git-svn-id: svn+ssh://lsgn/var/logbot-www@43 5f99df0c-6b0a-442a-b40a-040688e84a9d
parent a9710a82
......@@ -28,10 +28,15 @@ body {
width: 100%;
}
p, h1, h2, h3 {
p {
padding: 0 10px;
}
h1, h2, h3 {
margin: 0;
padding: 0;
}
.irc-date {font-family: Courier New, Courier, mono; white-space: nowrap; max-width: 150px;}
.irc-linenum {text-align: right;}
.irc-green {color: #009200;}
......@@ -106,15 +111,15 @@ h1 a, h2 a, h3 a, h4 a {
div.month {
float: left;
width: 200px;
height: 155px;
height: 170px;
margin-left: 10px;
}
div.month h4 {
padding: 0;
margin: 0 0 10px 0;
margin: 15px 0 10px;
}
.clear {
clear: both;
}
......@@ -168,9 +173,27 @@ form {
.info h2 { color: #7da4be; font-size: 16px; line-height: 18px; font-weight: normal; }
.info p { margin: 0; font-size: 14px; color: #fff; }
.info a { color: #fff; font-weight: bold; text-decoration: none; }
.info p a {
color: #3EBAE0;
text-decoration: underline;
font-weight: normal;
}
.info a:hover, .info a:active { color: #fff; text-decoration: underline; }
.year {
margin: 30px;
border: 1px solid #ddd;
border-radius: 5px;
}
.year .nav {
padding: 10px;
background-color: #eee;
border: 1px solid #ddd;
border-radius: 5px;
}
</style>
</head>
......
......@@ -39,7 +39,7 @@ if(isset($_GET['date']) && preg_match('#^20[0-9]{2}-[01][0-9]-[0-3][0-9]$#', $_G
} else {
NoLog:
$body = '</div>';
$body = '';
if(count($dates) > 1) {
$body .= '<p>Year:';
......@@ -49,10 +49,12 @@ NoLog:
$body .= '</p>';
}
$body .= '</div>';
$thisMonth = mktime(0, 0, 0, date('n'), 1, date('Y'));
foreach($dates as $year => $months) {
$body .= "<h3><a name='$year'>$year</a></h3><div class='year'>";
$body .= "<div class='year'><div class='nav'><h3><a name='$year'>$year</a></h3>";
if(count($months) > 1) {
$body .= '<p>Month:';
foreach(array_keys($months) as $month) {
......@@ -60,6 +62,7 @@ NoLog:
}
$body .= '</p>';
}
$body .= '</div>';
foreach($months as $month => $days) {
$body .= "<div class='month'><h4><a name='{$year}_$month'>$month</a></h4>";
$stamp = strtotime($days[array_keys($days)[0]][1]);
......
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