Created
July 27, 2011 13:02
-
-
Save abernier/1109310 to your computer and use it in GitHub Desktop.
contextual CSS 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
/** | |
* Contextual reset | |
* | |
* Undo default browser's HTML styles | |
* | |
* Author: Antoine BERNIER (antoine.bernier@cafe.com) | |
*/ | |
.reset { | |
font-size:inherit; line-height:inherit; | |
-moz-appearance:none;-webkit-appearance:none;-o-appearance:none;-ms-appearance:none;appearance:none; | |
-moz-box-sizing:inherit;-webkit-box-sizing:inherit;-o-box-sizing:inherit;-ms-box-sizing:inherit;box-sizing:inherit; | |
} | |
body.reset {margin:0;} | |
a.reset {color:inherit; text-decoration:inherit;} | |
h1.reset, | |
h2.reset, | |
h3.reset, | |
h4.reset, | |
h5.reset, | |
h6.reset {margin-top:0; margin-bottom:0; font-weight:inherit;} | |
p.reset {margin-top:0; margin-bottom:0;} | |
abbr.reset {border-bottom:none;} | |
ul.reset, | |
ol.reset {list-style:none; padding-left:0;padding-right:0; margin-top:0;margin-bottom:0;} | |
fieldset.reset {border:none; padding:0; margin-left:0;margin-right:0;} | |
fieldset.reset > legend {padding-left:0;padding-right:0; white-space:normal;} | |
button.reset {padding:0; margin:0; border:0 none; background-color:transparent; font:inherit; color:inherit; text-shadow:inherit; cursor:inherit; text-align:inherit; line-height:inherit!important;} | |
input[type="radio"].reset, | |
input[type="checkbox"].reset {} | |
figure.reset {margin:0;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment