aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.css31
-rw-r--r--poll.rb16
2 files changed, 24 insertions, 23 deletions
diff --git a/default.css b/default.css
index 3ae4147..53984ad 100644
--- a/default.css
+++ b/default.css
@@ -188,6 +188,11 @@ html {
min-width: 55em;
}
+.textcolumn, .shorttextcolumn{
+ text-align: justify;
+ line-height: 1.4em;
+}
+
.textcolumn{
max-width: 45em;
}
@@ -260,28 +265,28 @@ pre#configwarning {
color: red;
}
-h1 {
- text-align:left;
- font-size:1.4em;
+h1, h2, h3 {
font-weight:bold;
color:#000;
- margin-bottom:1em;
+ margin-bottom:.5ex;
+}
+h1{
+ text-align:center;
+ font-size:1.8em;
}
h2 {
- margin-top:1.5em;
- text-align:left;
- font-size:1.4em;
- font-weight:bold;
- color:#000;
- margin-bottom:1em;
+ font-size:1.6em;
+}
+h3 {
+ font-size:1.3em;
}
-div.comment {
- margin-top: 1ex;
- line-height: 1.4em;
+.comment {
+ margin-top: 1.5em;
}
+
form#ac_participant, form#ac {
background: #EEE;
}
diff --git a/poll.rb b/poll.rb
index d7a1626..85d46be 100644
--- a/poll.rb
+++ b/poll.rb
@@ -216,15 +216,14 @@ INVITE
time,name,comment = c
ret += <<COMMENT
<form method='post' action='.'>
-<div class='comment'>
- <fieldset>
- <legend>#{name} said on #{time.strftime("%d.%m, %H:%M")}
+<div class='textcolumn'>
+ <h3 class='comment'>
+ #{name} said on #{time.strftime("%d.%m, %H:%M")}
<input type='hidden' name='delete_comment' value='#{i}' />
&nbsp;
<input class='delete_comment_button' type='submit' value='delete' />
- </legend>
+ </h3>
#{comment}
- </fieldset>
</div>
</form>
COMMENT
@@ -235,13 +234,10 @@ COMMENT
ret += <<ADDCOMMENT
<form method='post' action='.'>
<div class='comment' id='add_comment'>
- <fieldset>
- <legend>
- <input value='Anonymous' type='text' name='commentname' size='9' /> says&nbsp;
- </legend>
+ <input value='Anonymous' type='text' name='commentname' size='9' /> says&nbsp;
+ <br />
<textarea cols='50' rows='7' name='comment' ></textarea>
<br /><input type='submit' value='Submit Comment' />
- </fieldset>
</div>
</form>
ADDCOMMENT