diff --git a/CHANGELOG.md b/CHANGELOG.md index 554dcad84..7ac47ec70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changes to normalize.css +### 7.0.0 (May 26, 2017) + +* Separate out selector targeted fixes for readability +* Update browser landscape of abbr[title] fixes +* Update browser landscape of details fixes +* Correct browser landscape of displays +* Remove sub and sup opinionated changes + ### 6.0.0 (March 26, 2017) * Remove all opinionated rules diff --git a/README.md b/README.md index a380e0c14..fca425865 100644 --- a/README.md +++ b/README.md @@ -1,63 +1,43 @@ # normalize.css -Normalize Logonormalize.css logo -> A modern alternative to CSS resets +[normalize.css] is a CSS library which provides cross-browser consistency in +the default styling of HTML elements. -[![npm][npm-image]][npm-url] [![license][license-image]][license-url] -[![changelog][changelog-image]][changelog-url] -[![gitter][gitter-image]][gitter-url] - - -**NPM** +## Usage ```sh -npm install --save normalize.css +npm install --save jonathantneal/normalize.css ``` -**Bower** - -```sh -bower install --save normalize-css -``` - -**CDN** - -See https://cdnjs.com/libraries/normalize - **Download** -See https://necolas.github.io/normalize.css/latest/normalize.css +See https://jonathantneal.github.io/normalize/latest/normalize.css ## What does it do? -* Preserves useful defaults, unlike many CSS resets. * Normalizes styles for a wide range of elements. * Corrects bugs and common browser inconsistencies. -* Improves usability with subtle modifications. * Explains what code does using detailed comments. - ## Browser support -* Chrome (last two) -* Edge (last two) -* Firefox (last two) +* Chrome (last three) +* Edge (last three) +* Firefox (last three) * Firefox ESR * Internet Explorer 8+ -* iOS Safari (last two) -* Opera (last two) +* iOS Safari (last three) +* Opera (last three) * Safari 6+ -* _[Normalize.css v1 provides legacy browser support](https://github.com/necolas/normalize.css/tree/v1) (IE 6+, Safari 4+), but is no longer actively developed._ - - ## Extended details and known issues -Additional detail and explanation of the esoteric parts of normalize.css. +Additional detail and explanation of the esoteric parts of normalize. #### `pre, code, kbd, samp` @@ -119,18 +99,7 @@ contribution process easy and effective for everyone involved. - [opinionate.css](https://github.com/adamgruber/opinionate.css) - Supplement to normalize, restores opinionated rules removed in v6 - [sanitize.css](https://github.com/jonathantneal/sanitize.css) - Alternative to normalize, adheres to common developer expectations and preferences - ## Acknowledgements -Normalize.css is a project by [Nicolas Gallagher](https://github.com/necolas), -co-created with [Jonathan Neal](https://github.com/jonathantneal). - - -[changelog-image]: https://img.shields.io/badge/changelog-md-blue.svg?style=flat-square -[changelog-url]: CHANGELOG.md -[license-image]: https://img.shields.io/npm/l/normalize.css.svg?style=flat-square -[license-url]: LICENSE.md -[npm-image]: https://img.shields.io/npm/v/normalize.css.svg?style=flat-square -[npm-url]: https://www.npmjs.com/package/normalize.css -[gitter-image]: https://img.shields.io/badge/chat-gitter-blue.svg?style=flat-square -[gitter-url]: https://gitter.im/necolas/normalize.css +Normalize is a project by [Jonathan Neal](https://github.com/jonathantneal), +co-created with [Nicolas Gallagher](https://github.com/necolas). diff --git a/normalize.css b/normalize.css index acd5aa787..33efd60ad 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v6.0.0 | MIT License | github.com/necolas/normalize.css */ +/*! normalize.css v7.0.0 | MIT License | github.com/jonathantneal/normalize.css */ /* Document ========================================================================== */ @@ -19,7 +19,7 @@ html { ========================================================================== */ /** - * Add the correct display in IE 9-. + * Add the correct display in IE 8-. */ article, @@ -45,18 +45,16 @@ h1 { ========================================================================== */ /** - * Add the correct display in IE 9-. - * 1. Add the correct display in IE. + * Add the correct display in IE 8-. */ figcaption, -figure, -main { /* 1 */ +figure { display: block; } /** - * Add the correct margin in IE 8. + * Add the correct margin in IE 8-. */ figure { @@ -74,6 +72,14 @@ hr { overflow: visible; /* 2 */ } +/** + * Add the correct display in IE. + */ + +main { + display: block; +} + /** * 1. Correct the inheritance and scaling of font size in all browsers. * 2. Correct the odd `em` font sizing in all browsers. @@ -98,8 +104,9 @@ a { } /** - * 1. Remove the bottom border in Chrome 57- and Firefox 39-. - * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. + * 1. Remove the bottom border in Firefox 39-. + * 2. Add the correct text decoration in Chrome 57-, Edge, IE, Opera, + and Safari. */ abbr[title] { @@ -147,7 +154,7 @@ dfn { } /** - * Add the correct background and color in IE 9-. + * Add the correct background and color in IE 8-. */ mark { @@ -163,27 +170,6 @@ small { font-size: 80%; } -/** - * Prevent `sub` and `sup` elements from affecting the line height in - * all browsers. - */ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - /* Embedded content ========================================================================== */ @@ -237,36 +223,33 @@ textarea { } /** - * Show the overflow in IE. - * 1. Show the overflow in Edge. + * 1. Show the overflow in IE. + * 2. Remove the inheritance of text transform in Edge, Firefox, and IE. */ -button, -input { /* 1 */ - overflow: visible; +button { + overflow: visible; /* 1 */ + text-transform: none; /* 2 */ } /** - * Remove the inheritance of text transform in Edge, Firefox, and IE. - * 1. Remove the inheritance of text transform in Firefox. + * Correct the inability to style clickable types in iOS and Safari. */ button, -select { /* 1 */ - text-transform: none; +[type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; } /** - * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` - * controls in Android 4. - * 2. Correct the inability to style clickable types in iOS and Safari. + * Prevent a WebKit bug where (2) destroys native `audio` and `video` controls + * in Android 4. */ -button, -html [type="button"], /* 1 */ -[type="reset"], -[type="submit"] { - -webkit-appearance: button; /* 2 */ +html [type="button"] { + -webkit-appearance: button; } /** @@ -300,6 +283,14 @@ fieldset { padding: 0.35em 0.75em 0.625em; } +/** + * Show the overflow in Edge and IE. + */ + +input { + overflow: visible; +} + /** * 1. Correct the text wrapping in Edge and IE. * 2. Correct the color inheritance from `fieldset` elements in IE. @@ -317,7 +308,7 @@ legend { } /** - * 1. Add the correct display in IE 9-. + * 1. Add the correct display in Edge and IE. * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. */ @@ -326,6 +317,14 @@ progress { vertical-align: baseline; /* 2 */ } +/** + * Remove the inheritance of text transform in Firefox. + */ + +select { + text-transform: none; +} + /** * Remove the default vertical scrollbar in IE. */ @@ -387,12 +386,10 @@ textarea { ========================================================================== */ /* - * Add the correct display in IE 9-. - * 1. Add the correct display in Edge, IE, and Firefox. + * Add the correct display in Edge, Firefox 48-, and IE. */ -details, /* 1 */ -menu { +details { display: block; } diff --git a/package.json b/package.json index c55cebc4f..508fd8646 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "normalize.css", - "version": "6.0.0", + "version": "7.0.0", "description": "A modern alternative to CSS resets", "main": "normalize.css", "style": "normalize.css", @@ -15,14 +15,14 @@ "scripts": { "test": "stylelint normalize.css" }, - "repository": "necolas/normalize.css", + "repository": "jonathantneal/normalize.css", "contributors": [ "Jonathan Neal (http://jonathantneal.com/)", "Nicolas Gallagher (http://nicolasgallagher.com/)" ], "license": "MIT", - "bugs": "https://github.com/necolas/normalize.css/issues", - "homepage": "https://necolas.github.io/normalize.css", + "bugs": "https://github.com/jonathantneal/normalize.css/issues", + "homepage": "https://jonathantneal.github.io/normalize.css", "stylelint": { "extends": "stylelint-config-standard", "rules": {