more styling

This commit is contained in:
Shish 2012-03-12 04:56:30 +00:00
parent f2dfbb9080
commit aaf9280ee4
4 changed files with 19 additions and 13 deletions

View File

@ -1,10 +1,4 @@
#comments P {
text-align: left;
width: 150px;
max-width: 150px;
overflow: hidden;
}
.comment { .comment {
text-align: left; text-align: left;
position: relative; position: relative;
@ -26,3 +20,11 @@
.comment:hover .info { .comment:hover .info {
visibility: visible; visibility: visible;
} }
#comment-list .blockbody {
background: none;
border: none;
box-shadow: none;
margin: 0px;
padding: 0px;
}

View File

@ -96,7 +96,7 @@ class CommentListTheme extends Themelet {
</tr></table> </tr></table>
'; ';
$page->add_block(new Block( $image->id.': '.$image->get_tag_list(), $html, "main", $position++)); $page->add_block(new Block( $image->id.': '.$image->get_tag_list(), $html, "main", $position++, "comment-list"));
} }
} }
@ -111,10 +111,10 @@ class CommentListTheme extends Themelet {
$this->show_anon_id = false; $this->show_anon_id = false;
$html = ""; $html = "";
foreach($comments as $comment) { foreach($comments as $comment) {
$html .= $this->comment_to_html($comment, true)."<hr>"; $html .= $this->comment_to_html($comment, true);
} }
$html .= "<a class='more' href='".make_link("comment/list")."'>Full List</a>"; $html .= "<a class='more' href='".make_link("comment/list")."'>Full List</a>";
$page->add_block(new Block("Comments", $html, "left")); $page->add_block(new Block("Comments", $html, "left", 50, "comment-list"));
} }
@ -126,12 +126,12 @@ class CommentListTheme extends Themelet {
$this->show_anon_id = true; $this->show_anon_id = true;
$html = ""; $html = "";
foreach($comments as $comment) { foreach($comments as $comment) {
$html .= $this->comment_to_html($comment)."<hr>"; $html .= $this->comment_to_html($comment);
} }
if($postbox) { if($postbox) {
$html .= $this->build_postbox($image->id); $html .= $this->build_postbox($image->id);
} }
$page->add_block(new Block("Comments", $html, "main", 30)); $page->add_block(new Block("Comments", $html, "main", 30, "comment-list"));
} }
@ -229,6 +229,7 @@ class CommentListTheme extends Themelet {
$h_captcha = $config->get_bool("comment_captcha") ? captcha_get_html() : ""; $h_captcha = $config->get_bool("comment_captcha") ? captcha_get_html() : "";
return ' return '
<div class="comment">
'.make_form(make_link("comment/add")).' '.make_form(make_link("comment/add")).'
<input type="hidden" name="image_id" value="'.$i_image_id.'" /> <input type="hidden" name="image_id" value="'.$i_image_id.'" />
<input type="hidden" name="hash" value="'.$hash.'" /> <input type="hidden" name="hash" value="'.$hash.'" />
@ -236,6 +237,7 @@ class CommentListTheme extends Themelet {
'.$h_captcha.' '.$h_captcha.'
<br><input type="submit" value="Post Comment" /> <br><input type="submit" value="Post Comment" />
</form> </form>
</div>
'; ';
} }
} }

View File

@ -3,4 +3,6 @@
background: none; background: none;
border: none; border: none;
box-shadow: none; box-shadow: none;
margin: 0px;
padding: 0px;
} }

View File

@ -25,11 +25,11 @@ SECTION>H3 {
background: #CCC; background: #CCC;
border: 1px solid #BBB; border: 1px solid #BBB;
} }
SECTION>.blockbody { SECTION>.blockbody, .comment {
background: #DDD; background: #DDD;
border: 1px solid #CCC; border: 1px solid #CCC;
} }
SECTION>.blockbody, H1, SECTION>H3, FOOTER{ SECTION>.blockbody, H1, SECTION>H3, FOOTER, .comment {
margin: 8px; margin: 8px;
padding: 8px; padding: 8px;
border-radius: 12px; /* standard, webkit, opera */ border-radius: 12px; /* standard, webkit, opera */