Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
Replacing Meyer's reset.css with my own. It handles HTML4, XHTML, and…
Browse files Browse the repository at this point in the history
… HTML5 tags. Also, added the <figure> tag to text.css, to give it 20px of margin-bottom -- Assuming you'd use it instead of a <p> tag, when wrapping an <img> tag called out in a blog post, etc.
  • Loading branch information
nathansmith committed Feb 25, 2011
1 parent 30906f2 commit d2a69be
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 47 deletions.
2 changes: 1 addition & 1 deletion code/css/reset.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion code/css/text.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

197 changes: 157 additions & 40 deletions code/css/uncompressed/reset.css
Original file line number Diff line number Diff line change
@@ -1,53 +1,170 @@
/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */

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,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
/* `XHTML, HTML4, HTML5 Reset
----------------------------------------------------------------------------------------------------*/

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
dialog,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
font,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
hr,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
meter,
nav,
object,
ol,
output,
p,
pre,
progress,
q,
rp,
rt,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video,
xmp {
border: 0;
margin: 0;
padding: 0;
font-size: 100%;
}

html,
body {
line-height: 1;
height: 100%;
}
ol, ul {
list-style: none;

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
/*
Override the default (display: inline) for
browsers that do not recognize HTML5 tags.
IE8 (and lower) requires a shiv:
http://ejohn.org/blog/html5-shiv
*/
display: block;
}
blockquote, q {
quotes: none;

b,
strong {
/*
Makes browsers agree.
IE + Opera = font-weight: bold.
Gecko + WebKit = font-weight: bolder.
*/
font-weight: bold;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;

img {
font-size: 0;
vertical-align: middle;
/*
For IE.
http://css-tricks.com/ie-fix-bicubic-scaling-for-images
*/
-ms-interpolation-mode: bicubic;
}

/* remember to define focus styles! */
:focus {
outline: 0;
li {
/*
For IE6 + IE7.
*/
display: list-item;
}

/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
table {
border-collapse: collapse;
border-spacing: 0;
}
del {
text-decoration: line-through;

th,
td,
caption {
font-weight: normal;
vertical-align: top;
text-align: left;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
svg {
/*
For IE9 beta.
*/
overflow: hidden;
}
7 changes: 2 additions & 5 deletions code/css/uncompressed/text.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ body {
font: 13px/1.5 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
}

a:focus {
outline: 1px dotted;
}

hr {
border: 0 #ccc solid;
border-top-width: 1px;
Expand Down Expand Up @@ -79,6 +75,7 @@ ul,
pre,
table,
address,
fieldset {
fieldset,
figure {
margin-bottom: 20px;
}

0 comments on commit d2a69be

Please sign in to comment.