summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xincludes/model/Post.php4
-rwxr-xr-xstyles/style.css33
2 files changed, 35 insertions, 2 deletions
diff --git a/includes/model/Post.php b/includes/model/Post.php
index 7e02793..eae3d3e 100755
--- a/includes/model/Post.php
+++ b/includes/model/Post.php
@@ -89,13 +89,13 @@ class Post
function get_content(): string
{
// Build the header
- $result = '<div class="header" id="p' . $this->id . '"><b>#' . $this->id . '</b>';
+ $result = '<p class="header" id="p' . $this->id . '"><b>#' . $this->id . '</b>';
$result .= ' Posted by <a href="viewuser.php?id=' . $this->author->id . '">' . $this->author->name . '</a>';
$result .= ' on ' . date('m/d/Y g:ia', strtotime($this->date_created));
if (Session::get()->is_signed_in() && Session::get()->get_current_user()->level == USER_LEVEL_MODERATOR) {
$result .= '<a href="moderate.php?type=post&id=' . $this->id . '" style="float:right;">[Options]</a>';
}
- $result .= '</div>';
+ $result .= '</p>';
// Append the formatted post content
$result .= '<span class="post-content">' . format_post_content($this->content) . '</span>';
diff --git a/styles/style.css b/styles/style.css
index ea2e15b..b04452e 100755
--- a/styles/style.css
+++ b/styles/style.css
@@ -1,3 +1,9 @@
+body {
+ font-family: sans-serif;
+ font-size: 10pt;
+ color: #333;
+}
+
a {
color: blue;
}
@@ -10,7 +16,30 @@ table {
width: 100%;
}
+tr:nth-child(even) {
+ background: #f7f7f7;
+}
+
+tr:nth-child(odd) {
+ background: white;
+}
+
+tr:hover {
+ background: #eee;
+}
+
+th {
+ font-weight: bold;
+ background-color: white;
+}
+
+td {
+ border: none;
+ padding: 0.1em 0.5em 0.1em 0.5em;
+}
+
blockquote {
+ background-color: #ffd;
margin: 8px 40px 14px 18px;
padding: 12px;
border: 1px solid #aa6;
@@ -24,3 +53,7 @@ textarea {
overflow: scroll;
resize: none;
}
+
+.header {
+ border-bottom: 1px dashed black;
+} \ No newline at end of file