Skip to content

Instantly share code, notes, and snippets.

@tBaxter
Created January 27, 2013 03:25
Show Gist options
  • Save tBaxter/4646085 to your computer and use it in GitHub Desktop.
Save tBaxter/4646085 to your computer and use it in GitHub Desktop.
Simple Django form.as_p styling I use
.boxedform {
border:1px solid $base_alt2;
margin-bottom:1em;
@include radius(.5em);
> h2 {padding:.5em 10px 0; color:$accent_alt; font-weight:bold; text-transform: uppercase}
p {
border-bottom:1px dotted $base_alt2;
padding:.5em 0;
margin-bottom:0;
clear:left
}
label {float:left; color: $meta; padding: 10px; font-size:85%; font-weight:bold; width:30%}
label.nofloat {float:none; width:100%}
input[type=text], input[type=password], textarea {
@include radius(.5em);
width:68%;
border:1px solid $base_alt2;
padding:5px 10px;
background: $base;
}
.helptext {color:$meta; font-size:80%; display:block; margin-left:33%}
&.has-fieldsets {
border: 0;
fieldset {
border:1px solid $base_alt2;
@include radius(.5em);
margin-bottom:1em;
legend {padding:.5em 10px 0; color:$accent_alt; font-weight:bold; text-transform: uppercase}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment