aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-22 07:51:33 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-22 07:51:33 +0100
commit7df781679a88075535142b42190b7635331b128b (patch)
treecf4bd09647d0619d9e1f1f92c6c7a10328847360
parentc339278dca54fa55767ad559c5656d41e56daf7e (diff)
better css (fixes opera issue partially)
validated
-rwxr-xr-xcustomize.rb8
-rw-r--r--dudle.css31
-rwxr-xr-xindex.cgi3
-rw-r--r--poll.rb6
-rw-r--r--timepollhead.rb4
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>
diff --git a/dudle.css b/dudle.css
index ff9c779..e87b718 100644
--- a/dudle.css
+++ b/dudle.css
@@ -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;
+}
diff --git a/index.cgi b/index.cgi
index b67d0b5..651fa33 100755
--- a/index.cgi
+++ b/index.cgi
@@ -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)
diff --git a/poll.rb b/poll.rb
index b59fcd7..01f5c09 100644
--- a/poll.rb
+++ b/poll.rb
@@ -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} -->