Last active
July 24, 2021 01:20
-
-
Save robinrendle/1d20c566c5e5fbd67f25 to your computer and use it in GitHub Desktop.
A CSS reset with sane defaults
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
/*Box sizing (the nuclear option) */ | |
*, *:before, *:after { | |
-ms-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing:border-box; | |
box-sizing: border-box; | |
} | |
/* Fix font rendering defaults */ | |
html, button { | |
-ms-text-size-adjust: 100%; | |
-webkit-text-size-adjust: 100%; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
body { | |
font-size: 100%; | |
} | |
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, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, input, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, embed, | |
figure, figcaption, footer, header, hgroup, | |
menu, nav, output, section, summary, | |
time, mark, audio, video { | |
margin: 0; | |
padding: 0; | |
} | |
/* IE fixes for HTML5 elements */ | |
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { | |
display: block; | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
caption, th, td { | |
text-align: left; | |
font-weight: normal; | |
vertical-align: middle; | |
} | |
strong, b, mark{ | |
font-weight:bold; | |
font-style:inherit; | |
} | |
em, i, cite, q, address, dfn, var{ | |
font-style:italic; | |
font-weight:inherit; | |
} | |
a, u, ins{ | |
text-decoration:none; | |
} | |
pre, code, samp, kbd{ | |
font-family:monospace; | |
} | |
iframe { | |
width: 100%; | |
} | |
img { | |
max-width: 100%; | |
height: auto; | |
border: none; | |
} | |
input, | |
select, | |
textarea{ | |
font:inherit; | |
} | |
button { | |
cursor: pointer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment