Skip to content

Instantly share code, notes, and snippets.

@graywh
Created June 25, 2010 15:27
Show Gist options
  • Save graywh/453003 to your computer and use it in GitHub Desktop.
Save graywh/453003 to your computer and use it in GitHub Desktop.
some basic styles i use in every rails project
div.p {
/* div's as p's
*
* this is a work-around for how rails
* displays error messages on a form
*/
margin-bottom: 1em;
}
.small {
font-size: 70%;
h2 + & {
margin-top: -1.25em;
}
}
#flashes {
text-align: center;
background: #ddd;
#flash_notice {
color: green;
}
#flash_error {
color: red;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment