Skip to content

Commit

Permalink
sort out positioning of form
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom May committed Dec 23, 2009
1 parent d999230 commit f12dba8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions public/spite.css
Expand Up @@ -3,3 +3,32 @@ div.note {
hyphens:auto;
hyphenate-after:;
}

form {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-khtml-border-radius: 3px;
border-radius: 3px;
padding: 10px;
}

form label, input[type=button], input[type=submit] {
float: left;
width: auto;
margin-top: 5px;
margin-right: 5px;
}

form input[type=text]{
float: left;
margin-right: 10px;
width: auto;
}

form textarea {
padding: 5px;
width: auto;
height: 65px;
float: left;
margin-right: 10px;
}
4 changes: 2 additions & 2 deletions views/_new.haml
@@ -1,8 +1,8 @@
%form{:action =>"/create",:method=>"post"}
%label New Item
%textarea{:name =>"contents"}
%textarea{:name =>"contents",:rows=>4}
%label Tags
%input{:type =>"textarea",:name=>"tags"}
%input{:type =>"text",:name=>"tags"}
%label Due Date
%input{:type =>"text", :id=>"datepicker", :name=>"duedate"}
%input{:type =>"submit"}
Expand Down

0 comments on commit f12dba8

Please sign in to comment.