diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..fb7863593 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +/.svn \ No newline at end of file diff --git a/README.md b/README.md index 69b9e7626..e606856a3 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,19 @@ normalize.css ============= -normalize.css makes browsers render all elements consistently and in line with modern standards. Our goal is to make modern presentation standards available to all browsers, young and old. We currently support Mozilla Firefox 3+, Apple Safari 4+, Chrome 10+, Opera 10+, and Internet Explorer 6+. +Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing. We currently support Mozilla Firefox 3+, Apple Safari 4+, Chrome 10+, Opera 10+, and Internet Explorer 6+. Installation ----------- -Include this code somewhere in the HEAD of your document. +Include one of these in the HEAD of your document to use the latest **normalize.css**. - +```` + + +```` + +Good news, everyone! **normalize.min.css** gzipped is 947 bytes. Contributing ------------ @@ -18,6 +23,6 @@ Want to contribute? Great! Let me know with an Issue or a Pull Request. Links ------------ -[normalize.css on GoogleCode](https://normalize-css.googlecode.com/) +[normalize.css on GitHub](https://github.com/jonathantneal/normalize.css) -[normalize.css on GitHub](https://github.com/jonathantneal/normalize.css) \ No newline at end of file +[normalize.css on GoogleCode](https://normalize-css.googlecode.com/) \ No newline at end of file diff --git a/normalize.css b/normalize.css index b58f0d3eb..a7a472a79 100644 --- a/normalize.css +++ b/normalize.css @@ -1,7 +1,33 @@ +/* ============================================================================= + normalize.css + 2011-07-06T20:20 UTC + //github.com/jonathantneal/normalize.css + + Normalize.css is a customisable CSS file that makes browsers render all + elements more consistently and in line with modern standards. We researched + the differences between default browser styles in order to precisely target + only the styles that need normalizing. + + How comment documentation is written: + Comments: (anchor) (type of change) (summary of issue) in (affected browsers) + Url: (url related to above comment) + + To be concise, comments are restricted to a length of 77 characters or less. + + What 'types of change' mean: + Addresses: Changes involving downgrades for greater cross-browser consistency + Corrects: Bug fixes and corrections to unexpected visual quirks + Improves: Improvements based on popular usage and html5 recommendation + ========================================================================== */ + + +/* ============================================================================= + Base + ========================================================================== */ + /* - * Add display for HTML5 elements - * Fixes styling not present in IE6/7/8/9 FF3 -*/ + * Corrects block display not defined in IE6/7/8/9 & FF3 + */ article, aside, @@ -13,160 +39,130 @@ header, hgroup, nav, section { - display: block; + display: block; } /* - * Vertical align for display inline block elements - * Improves visual appearance in all browsers -*/ - -audio[controls], -button, -canvas, -img, -input, -select, -textarea, -video { - display: inline-block; - *display: inline; - vertical-align: top; - *zoom: 1; -} - -/* - * 1. - * Make normal cursor the default for element - * Improves visual focus of page during mouse movement in all browsers - * 2. - * Add vertical scrollbar to element - * Improves page center consistency regardless of content height in all browsers - * 3. - * Remove text size adjust tap color for element - * Fixes tap color displayed oddly in iOS -*/ + * 1. Improves visual focus of mouse in all browsers + * 2. Corrects text resizing oddly when font size is set using ems in IE6/7 + * http://clagnut.com/blog/348/#c790 + * 3. Corrects page centering in all browsers regardless of content height + * 4. Improves visual appearance of containers during a delegated click in mSaf + * www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/ + * 5. Corrects text resizing oddly after orientation change in all handhelds + * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ + */ html { cursor: default; /* 1 */ - overflow-y: scroll; /* 2 */ - -webkit-tap-highlight-color: transparent; /* 3 */ + font-size: 100%; /* 2 */ + overflow-y: scroll; /* 3 */ + -webkit-tap-highlight-color: transparent; /* 4 */ + -ms-text-size-adjust: 100%; /* 5 */ + -webkit-text-size-adjust: 100%; /* 5 */ } -/* - * Remove margin and hide overflow from
element - * Margin overflow displayed incorrectly in IE6/7 -*/ +/* + * 1. Addresses text resizing limitations in IE6/7 + * Improves text sizing inconsistency in all browsers + * Known issue: text sizing unnecessary for 'form' + * 2. Improves margins set oddly in IE6/7 FF3/4 S5 C10 + */ -body { - margin: 0; - overflow: hidden; +body, +form, +input, +button, +select, +textarea { + font-size: 100%; /* 1 */ + margin: 0; /* 2 */ } -/* - * 1. - * Make outline thin dotted for - * Fixes outline displayed oddly in C10 - * 2. - * Remove outline for element when active or hovered - * Improves readability when focused and also mouse hovered in all browsers -*/ -/* 1 */ +/* ============================================================================= + Links + ========================================================================== */ -a:focus { - outline: thin dotted; -} - -/* 2 */ +/* + * Improves appearance when active or hovered in all browsers + * people.opera.com/patrickl/experiments/keyboard/test + */ +a, a:active, a:hover { outline: none; } /* - * Make display based on controls for