Skip to content

Instantly share code, notes, and snippets.

@christianberg
Created May 27, 2010 16:29
Show Gist options
  • Save christianberg/416015 to your computer and use it in GitHub Desktop.
Save christianberg/416015 to your computer and use it in GitHub Desktop.
body {
font: 62.5% "Lucida Sans Unicode", "Lucida Grande", sans-serif;
padding: 10px 30px;
}
ol, ul, p {
font-size: 1.2em;
line-height: 1.5;
}
form, fieldset, legend {
border: 0;
padding: 0;
margin: 0;
}
legend {
font-size: 2em;
line-height: 1.8;
padding-bottom: .5em;
}
h1, h2, h3 {
font-weight: normal;
}
h1 {
font-size: 3em;
}
h2 {
font-size: 2em;
}
p {
margin-left: 20px;
}
form ol, form ul {
list-style: none;
margin: 0;
padding: 0;
}
form li {
clear: both;
margin: 0 0 .75em;
padding: 0;
}
label {
display: block;
float: left;
line-height: 1.6;
margin-right: 10px;
text-align: right;
width: 120px;
}
label:after {
content: ':';
}
input, textarea {
font: 1em Arial, Helvetica, sans-serif;
padding: 1px 3px;
width: 250px;
}
textarea {
line-height: 1.3em;
padding: 0 4px;
}
button {
background: #ffd100;
border: 2px outset #333;
color: #333;
cursor: pointer;
font-size: .9em;
font-weight: bold;
letter-spacing: .3em;
margin-left: 130px;
padding: .2em .5em;
text-transform: uppercase;
}
#main {
float: left;
}
#sidebar {
background: #eee;
float: right;
width: 200px;
}
#sidebar ol, #sidebar ul {
list-style: none;
padding: 0;
margin: 0;
}
#sidebar li {
padding: 2px 10px;
}
#sidebar li:hover {
background: #ccf;
}
#sidebar h3 {
font-weight: bold;
background: #ffd100;
padding: 2px 10px;
margin: 0;
}
a {
text-decoration: none;
color: #000;
}
a:hover {
text-decoration: underline;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>New Post</title>
<link rel="Stylesheet" type="text/css" href="form.css"/>
</head>
<body>
<h1>Compojure on GAE</h1>
<div id="main">
<h2>My first post</h2>
<p>Lorem ipsum dolor</p>
<h2>My other post</h2>
<p>Already I'm out of things to say!</p>
<form id="new-post-form" action="/post" method="post">
<fieldset>
<legend>Create a new post</legend>
<ol>
<li><label for="title">Title</label>
<input type="text" name="title" id="title"/></li>
<li><label for="body">Body</label>
<textarea name="body" id="body" rows="10" cols="50"></textarea></li>
</ol>
<button type="submit">Post!</button>
</fieldset>
</form>
</div>
<div id="sidebar">
<h3>Links</h3>
<ul>
<li><a href="http://compojureongae.posterous.com">Blog</a></li>
<li><a href="http://github.com/christianberg/compojureongae">Source</a></li>
</ul>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment