diff options
author | Adrian Vondendriesch <discostu@81-89-105-205.(none)> | 2009-06-01 21:13:47 +0200 |
---|---|---|
committer | Adrian Vondendriesch <discostu@81-89-105-205.(none)> | 2009-06-01 21:13:47 +0200 |
commit | 84463718184f208f4192741105711343d06e216f (patch) | |
tree | 73795648b8ba123c8d38f71fd104731d3d2aab69 | |
parent | 75e59caff918ecbc0d8b704da9380a94fa94d2a0 (diff) |
Do some changes to the comments-area
-rwxr-xr-x | blogthon.cgi | 32 | ||||
-rw-r--r-- | styles/blogthon.css | 5 |
2 files changed, 21 insertions, 16 deletions
diff --git a/blogthon.cgi b/blogthon.cgi index 053258b..ed65e76 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -384,15 +384,17 @@ else: print ' </div>' print '' print ' <div class="comments">' + print ' <div class="comment">' for line in comments_content: if line.split(".", 1)[0] == "-": - print ' <div class="comments_author">' + line.split(".", 1)[1].strip() + '</div>' + print ' <div class="comment_author">' + line.split(".", 1)[1].strip() + '</div>' elif line.split(".", 1)[0] == "+": - print ' <div class="comments_date">' + line.split(".", 1)[1].strip() + '</div>' + print ' <div class="comment_date">' + line.split(".", 1)[1].strip() + '</div>' else: line = line.split(".", 1)[1] - print ' <div class="comments_content">' - print ' ' + line.strip() + '<br />' + print ' <div class="comment_content">' + print ' ' + line.strip() + '<br />' + print ' </div>' print ' </div>' print '' comments_content.close() @@ -404,14 +406,16 @@ else: random_int_a = random.randint(1,9) random_int_b = random.randint(1,9) cquizv = random_int_a + random_int_b - print ' <form action="" method="post">' - print ' <input type="hidden" name="ctitle" value="' + title + '" />' - print ' <input type="hidden" name="cquizv" value="' + str(cquizv) + '" />' - print ' <label for="cname">name:</label><input type="text" id="cname" name="cname" />' - print ' <br /><label for="ctext">text:</label><textarea rows="5" cols="80" id="ctext" name="ctext"></textarea>' - print ' <br /><label for="cquiz">' + str(random_int_a) + '+' + str(random_int_b) + '=</label><input type="text" id="cquiz" name="cquiz" />' - print ' <br /><input type="submit" id="submit" value="post comment" />' - print ' </form>' + print ' <div class="submit_comment">' + print ' <form action="" method="post">' + print ' <input type="hidden" name="ctitle" value="' + title + '" />' + print ' <input type="hidden" name="cquizv" value="' + str(cquizv) + '" />' + print ' <label class="submit_comment_name_lable" for="cname">name:</label><input type="text" id="cname" name="cname" />' + print ' <br /><label class="submit_comment_text_lable" for="ctext">text:</label><textarea rows="5" cols="80" id="ctext" name="ctext"></textarea>' + print ' <br /><label fclass="submit_comment_quiz_lable"or="cquiz">' + str(random_int_a) + '+' + str(random_int_b) + '=</label><input type="text" id="cquiz" name="cquiz" />' + print ' <br /><input class="submit_comment_button" type="submit" id="submit" value="post comment" />' + print ' </form>' + print ' </div>' print '' if comments == "True": @@ -427,8 +431,8 @@ else: comments_counter = 0 for line in comments_content: if line.split(".", 1)[0] == "-": comments_counter += 1 - print ' <div class="entry_comments">' - print ' <a href="?p=' + title + '" class="entry_comments">comments (' + str(comments_counter) + ')</a>' + print ' <div class="entry_comment">' + print ' <a href="?p=' + title + '" class="entry_comment">comments (' + str(comments_counter) + ')</a>' print ' </div>' print ' </div>' print '' diff --git a/styles/blogthon.css b/styles/blogthon.css index 7b76a00..a5ccbbe 100644 --- a/styles/blogthon.css +++ b/styles/blogthon.css @@ -3,8 +3,8 @@ */ body { - font-family: Verdana, Times New Roman, Courier New; - font-size: 12px; + font-family: Verdana; + font-size: 13px; margin: 0px; min-width: 800px; } @@ -22,6 +22,7 @@ blockquote { margin-bottom: 10px; font-style: italic; color: #AAAAAA; + font-size: 10px; } |