Created
August 19, 2011 10:18
-
-
Save anthonyshort/1156527 to your computer and use it in GitHub Desktop.
My Reset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin:0; | |
} | |
p { | |
margin:0; | |
} | |
form { | |
margin:0; | |
} | |
fieldset { | |
margin:0; | |
padding:0; | |
} | |
ol, | |
ul { | |
margin:0; | |
padding:0; | |
} | |
dd { | |
margin:0; | |
} | |
figure { | |
margin:0; | |
} | |
li { | |
display: block; | |
padding: 0; | |
margin: 0; | |
list-style: none; | |
} | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-weight:normal; | |
line-height:1; | |
font-size:100%; | |
} | |
/* | |
Make buttons play nice in IE: | |
@see www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ | |
*/ | |
button { | |
overflow: visible; | |
width: auto; | |
cursor: pointer; | |
} | |
/* Turn off scroll bars in IE unless needed */ | |
textarea { | |
overflow:auto; | |
} | |
/* | |
So that browsers render the new elements correctly. Only block elements need to be worried about as browsers render unknown elements as inline by default. | |
*/ | |
article, aside, details, figcaption, figure, | |
footer, header, hgroup, menu, nav, section { | |
display:block | |
} | |
/* | |
Make all the elements use the same font family by default | |
*/ | |
body, button, input, select, textarea, pre, code, kbd, samp { | |
font-family: sans-serif; | |
} | |
/* | |
Make all text the same size | |
*/ | |
small { | |
font-size:100%; | |
} | |
/* | |
Remove default text decoration | |
*/ | |
del, | |
abbr, | |
mark { | |
text-decoration:none; | |
} | |
address { | |
font-style:normal; | |
} | |
/* | |
Remove default font weight | |
*/ | |
b, | |
strong { | |
font-weight:normal; | |
} | |
/* | |
Remove default font style | |
*/ | |
em { | |
font-style:normal; | |
} | |
/* | |
Reset quotations | |
*/ | |
q { | |
quotes: none; | |
} | |
q:before, | |
q:after { | |
content: ''; | |
content: none; | |
} | |
/* | |
Make links look like normal text. This way you don't need to | |
override styles when you create buttons and wrap blocks in links | |
*/ | |
a { | |
font-weight:normal; | |
color:inherit; | |
text-decoration:none; | |
&:hover, | |
&:active { | |
outline: none; | |
} | |
} | |
/* Remove the webkit blur */ | |
input:focus { | |
outline:0; | |
} | |
/* Nicer image sizing in IE */ | |
img { | |
-ms-interpolation-mode: bicubic | |
} | |
/* Improve the appearance of preformatted text */ | |
pre { | |
white-space: pre; | |
white-space: pre-wrap; | |
word-wrap: break-word; | |
} | |
/* Remove table borders */ | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment