Skip to content

Instantly share code, notes, and snippets.

@cpjobling
Created May 21, 2012 10:08
Show Gist options
  • Select an option

  • Save cpjobling/2761629 to your computer and use it in GitHub Desktop.

Select an option

Save cpjobling/2761629 to your computer and use it in GitHub Desktop.
Style sheet example
@CHARSET "UTF-8";
/******* GENERAL RESET *******/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
border: 0pt none;
font-family: inherit;
font-size: 100%;
font-style: inherit;
font-weight: inherit;
margin: 0pt;
padding: 0pt;
vertical-align: baseline;
}
body {
background: #fff;
line-height: 14px;
font-size: 12px;
font-family: Arial, Verdana, Helvetica, sans-serif;
margin: 0pt;
cursor: default;
overflow: hidden;
}
html, body {
height: 100%;
text-align: center;
}
.clear {
clear: both;
height: 0;
visibility: hidden;
display: block;
}
a {
text-decoration: none;
}
strong {
font-weight: 700;
}
/******* GENERAL RESET *******/
h1 {
font-weight: 700;
font-size: 18px;
line-height: 1.2em;
border-bottom: 1px dotted #6b9ef1;
color: #5f95ef;
margin-bottom: 1em;
}
/******* LOGO *******/
#logo {
margin-top: 1em;
display: block;
}
/******* /LOGO *******/
/******* CONTAINER *******/
#container {
width: 600px;
margin: 40px auto;
text-align: left;
}
/******* /CONTAINER *******/
/******* FORM *******/
#myForm {
padding: 0 10px 10px;
}
#myForm label {
display: block;
color: #797979;
font-weight: 700;
line-height: 1.4em;
}
#myForm input {
width: 220px;
padding: 6px;
color: #949494;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 11px;
border: 1px solid #cecece;
}
#myForm input.error {
background: #f8dbdb;
border-color: #e77776;
}
#myForm textarea {
width: 550px;
height: 80px;
padding: 6px;
color: #adaeae;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-style: italic;
font-size: 12px;
border: 1px solid #cecece;
}
#myForm textarea.error {
background: #f8dbdb;
border-color: #e77776;
}
#myForm div {
margin-bottom: 15px;
}
#myForm div span {
margin-left: 10px;
color: #b1b1b1;
font-size: 11px;
font-style: italic;
}
#myForm div span.error {
color: #e46c6e;
}
#myForm #send {
background: #6f9ff1;
color: #fff;
font-weight: 700;
font-style: normal;
border: 0;
cursor: pointer;
}
#myForm #send:hover {
background: #79a7f1;
}
#error {
margin-bottom: 20px;
border: 1px solid #efefef;
}
#error ul {
list-style: square;
padding: 5px;
font-size: 11px;
}
#error ul li {
list-style-position: inside;
line-height: 1.6em;
}
#error ul li strong {
color: #e46c6d;
}
#error.valid ul li strong {
color: #93d72e;
}
/******* /FORM *******/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment