diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-22 07:51:33 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-22 07:51:33 +0100 |
commit | 7df781679a88075535142b42190b7635331b128b (patch) | |
tree | cf4bd09647d0619d9e1f1f92c6c7a10328847360 | |
parent | c339278dca54fa55767ad559c5656d41e56daf7e (diff) |
better css (fixes opera issue partially)
validated
-rwxr-xr-x | customize.rb | 8 | ||||
-rw-r--r-- | dudle.css | 31 | ||||
-rwxr-xr-x | index.cgi | 3 | ||||
-rw-r--r-- | poll.rb | 6 | ||||
-rw-r--r-- | timepollhead.rb | 4 |
5 files changed, 35 insertions, 17 deletions
diff --git a/customize.rb b/customize.rb index 74078bd..5d90a99 100755 --- a/customize.rb +++ b/customize.rb @@ -43,7 +43,7 @@ END $html << <<CHARSET <div id='charset'> <h2>Charset</h2> -<table> +<table summary='Charset settings'> <tr> <th>Current Setting</th> <th>Description</th> @@ -94,10 +94,10 @@ end $html << <<CHARSET <div id='config_user'> <h2>Default Username</h2> -<form method='GET' action=''> +<form method='get' action=''> <div> - <label for=''>Username: </label> - <input id='' size='16' type='text' value="#{username}" name='username' /> + <label for='username'>Username: </label> + <input id='username' size='16' type='text' value="#{username}" name='username' /> <input type='submit' value='Save' /> <input type='submit' name='delete_username' value='Delete' /> </div> @@ -19,7 +19,7 @@ td.ayes, td.bmaybe, td.cno { cursor:default; } -td.ayes, input.choosen { background-color:#0F0; } +td.ayes{ background-color:#0F0; } td.cno { background-color:#F00; } td.bmaybe { background-color:#FF0; } td.undecided { background-color:#DDD;color:#666 } @@ -52,6 +52,7 @@ th.weekday{ width: 2.5em; } +input.choosen { background-color:#0F0; } input.navigation, input.disabled, input.choosen, input.notchoosen { border-width: 1px; border-style: solid; @@ -59,7 +60,6 @@ input.navigation, input.disabled, input.choosen, input.notchoosen { padding: 0px; cursor: pointer; width: 100%; - height: 100%; } input.navigation { @@ -69,14 +69,27 @@ input.navigation { input.disabled { background-color:#DDD;color:#BBB} -td.calendarday{ - border: 1px; +table { + border: none; +} + +table.calendarday { + border-spacing: 2px; +} + +table.calendarday form { padding: 0px; margin: 0px; } -table { - border: none; +table.calendarday td { + padding: 0px; + margin: 0px; +} + +table.calendarday td input{ + margin: 0px; + padding: 1px; } td.create_poll, td.charset{ @@ -129,7 +142,6 @@ html { background: white; padding: 2em; color: black; - line-height: 1.5em; border: solid 1px black; top: 0px; margin-top: 0px; @@ -185,6 +197,9 @@ h1 { text-align: center; } -div.comment { margin-top: 1ex; } +div.comment { + margin-top: 1ex; + line-height: 1.4em; +} @@ -77,7 +77,7 @@ unless $html.header["status"] == "REDIRECT" $html << <<CREATE <fieldset><legend>Create New Poll</legend> <form method='post' action='.'> -<table> +<table summary='Create a new Poll'> <tr> <td class='create_poll'><label title="#{poll_name_tip = "the name equals the link under which you receive the poll"}" for="poll_name">Name:</label></td> <td class='create_poll'><input title="#{poll_name_tip}" id="poll_name" size='16' type='text' name='create_poll' value="#{CGI.escapeHTML($cgi["create_poll"])}" /></td> @@ -102,6 +102,7 @@ unless $html.header["status"] == "REDIRECT" CREATE $html << NOTICE + $html << "</body>" end $html.out($cgi) @@ -237,8 +237,10 @@ ADDCOMMENT ret += "<tr><td>" ret += "<a href='?revision=#{i}' >" if middlerevision != i ret += "#{i}" - ret += "</a></td>" if middlerevision != i - ret += "<td>#{log[i-1]["timestamp"].strftime('%d.%m, %H:%M')}</td><td>#{CGI.escapeHTML(log[i-1]["commit message"])}</td>" + ret += "</a>" if middlerevision != i + ret += "</td>" + ret += "<td>#{log[i-1]["timestamp"].strftime('%d.%m, %H:%M')}</td>" + ret += "<td>#{CGI.escapeHTML(log[i-1]["commit message"])}</td>" ret += "</tr>" end end diff --git a/timepollhead.rb b/timepollhead.rb index 12d8a06..d75e0cb 100644 --- a/timepollhead.rb +++ b/timepollhead.rb @@ -276,7 +276,7 @@ END ########################### ret += "<div style='min-height: 13em' >" if col_size > 0 - ret += "<table><tr>" + ret += "<table class='calendarday' summary='The concrete timeslot'><tr>" head_count("%Y-%m",true).each{|title,count| year,month = title.split("-").collect{|e| e.to_i} @@ -302,7 +302,7 @@ END klasse = "disabled" if timestamp < TimeString.now klasse = "choosen" if @data.include?(timestamp) ret += <<END -<td class='calendarday'> +<td> <form method='post' action=""> <div> <!--Timestamp: #{timestamp} --> |