diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-08-10 16:47:28 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-08-10 16:47:28 -0600 |
commit | db730ccd4c102badb48e6752de829c436042e5e6 (patch) | |
tree | 1640b50a61876184f0bc086242d4e4d43922f784 | |
parent | 39f4d2134f332d3d6577f8cf5b3f4b9d4f665c41 (diff) |
Small style update
-rwxr-xr-x | includes/model/Post.php | 4 | ||||
-rwxr-xr-x | styles/style.css | 33 |
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 |