diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-12-01 15:58:16 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-12-01 15:58:16 +0100 |
commit | d1e2f034b9fb6d6e07f472bd5483c9122a3270da (patch) | |
tree | 0b3bb402f20b27b10d38ac74c30fd900e150e1e3 | |
parent | 500220a0556ddc04437e6ec86bd422e00cbe06fc (diff) |
use h3 instead of fieldset
-rw-r--r-- | default.css | 31 | ||||
-rw-r--r-- | poll.rb | 16 |
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; } @@ -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}' /> <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 - </legend> + <input value='Anonymous' type='text' name='commentname' size='9' /> says + <br /> <textarea cols='50' rows='7' name='comment' ></textarea> <br /><input type='submit' value='Submit Comment' /> - </fieldset> </div> </form> ADDCOMMENT |