From 1f14238ea6e202ee90c200b8f0a12a203dd0772d Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Fri, 25 Mar 2011 03:25:21 -0400 Subject: [PATCH] Changed note titles to H1s Also moved date styling to style.css. --- includes/style.css | 16 ++++++++++------ index.php | 20 +++++++++----------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/includes/style.css b/includes/style.css index 18878f5..3613b69 100644 --- a/includes/style.css +++ b/includes/style.css @@ -8,6 +8,11 @@ h3 { font-family:sans-serif; } +h1, h2 { + font-family:sans-serif; + font-size:150%; +} + a { text-decoration:none; } @@ -139,13 +144,13 @@ li { margin-top:20px; } -#notes h2 { +#notes h1 { margin-bottom:10px; - font-family:sans-serif; } -#note h2 { - font-family:sans-serif; + +.date { + color:grey; } #comment_link { @@ -226,8 +231,7 @@ pre { margin-bottom:15px; } -#blank_comment { - display:none; +#blank_comment { display:none; font-weight:bold; font-family:sans-serif; color:red; diff --git a/index.php b/index.php index 424f850..298fead 100644 --- a/index.php +++ b/index.php @@ -282,7 +282,7 @@ class page extends cms { $datetime_posted = explode(' ', $date_posted[2]); $day_posted = $datetime_posted[0]; echo "
"; - echo "

$year_posted/$month_posted/$day_posted/$title

"; + echo "

$year_posted/$month_posted/$day_posted/$title

"; echo $entry['text']; echo "
"; } @@ -293,7 +293,7 @@ class page extends cms { private function write_navigation() { echo ""; } @@ -401,7 +401,7 @@ class note extends cms { private function display_note() { echo << -

$this->year_posted/$this->month_posted/$this->day_posted/$this->title

+

$this->year_posted/$this->month_posted/$this->day_posted/$this->title

$this->text END_OF_NOTE; @@ -411,14 +411,14 @@ END_OF_NOTE; echo << END_OF_NAVIGATION; } @@ -588,9 +588,9 @@ class archive extends cms { $datetime_posted = explode(' ', $date_posted[2]); $day_posted = $datetime_posted[0]; echo "
"; - echo "

"; + echo "

"; echo "$year_posted/$month_posted/$day_posted/"; - echo "$title

"; + echo "
$title

"; echo $entry['text']; echo "
"; } @@ -598,7 +598,7 @@ class archive extends cms { $this->write_navigation(); } else { echo "
"; - echo "

sorry, nothing here

"; + echo "

sorry, nothing here

"; echo "
Empty set (0.00 sec)
"; } $this->display_close(); @@ -607,9 +607,7 @@ class archive extends cms { private function write_navigation() { echo "
"; echo ""; } -- 2.30.2