From 3a43553c9b1f8ced6a154d109a93ae28a68826db Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Fri, 26 May 2017 22:43:19 -0400 Subject: [PATCH 1/9] Fork my own project back home --- normalize.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/normalize.css b/normalize.css index acd5aa787..489d61dad 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 v6.0.0 | MIT License | github.com/jonathantneal/normalize.css */ /* Document ========================================================================== */ From e5219cc98b520a9ce82833432abf17e446e48a95 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Fri, 26 May 2017 22:43:51 -0400 Subject: [PATCH 2/9] Separate out selector targeted fixes for readability --- normalize.css | 69 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 47 insertions(+), 22 deletions(-) diff --git a/normalize.css b/normalize.css index 489d61dad..c3a211341 100644 --- a/normalize.css +++ b/normalize.css @@ -46,12 +46,10 @@ h1 { /** * Add the correct display in IE 9-. - * 1. Add the correct display in IE. */ figcaption, -figure, -main { /* 1 */ +figure { display: block; } @@ -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. @@ -237,36 +243,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 +303,14 @@ fieldset { padding: 0.35em 0.75em 0.625em; } +/** + * Show the overflow in Edge, IE. + */ + +input { + overflow: visible; +} + /** * 1. Correct the text wrapping in Edge and IE. * 2. Correct the color inheritance from `fieldset` elements in IE. @@ -326,6 +337,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. */ @@ -386,12 +405,18 @@ textarea { /* Interactive ========================================================================== */ +/* + * Add the correct display in Edge, IE, and Firefox. + */ + +details { + display: block; +} + /* * Add the correct display in IE 9-. - * 1. Add the correct display in Edge, IE, and Firefox. */ -details, /* 1 */ menu { display: block; } From e3d23fd306b1534959199fdf801d70eaee2b5305 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Fri, 26 May 2017 22:50:35 -0400 Subject: [PATCH 3/9] Update browser landscape of abbr[title] fixes --- normalize.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/normalize.css b/normalize.css index c3a211341..b3737f96e 100644 --- a/normalize.css +++ b/normalize.css @@ -104,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] { From 4c55d4d29ef0c3345a859ea0542c05364fd601f8 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Fri, 26 May 2017 23:22:20 -0400 Subject: [PATCH 4/9] Correct browser landscape of displays --- normalize.css | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/normalize.css b/normalize.css index b3737f96e..0119cb5a2 100644 --- a/normalize.css +++ b/normalize.css @@ -19,7 +19,7 @@ html { ========================================================================== */ /** - * Add the correct display in IE 9-. + * Add the correct display in IE 8-. */ article, @@ -45,7 +45,7 @@ h1 { ========================================================================== */ /** - * Add the correct display in IE 9-. + * Add the correct display in IE 8-. */ figcaption, @@ -154,7 +154,7 @@ dfn { } /** - * Add the correct background and color in IE 9-. + * Add the correct background and color in IE 8-. */ mark { @@ -329,7 +329,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. */ @@ -407,21 +407,13 @@ textarea { ========================================================================== */ /* - * Add the correct display in Edge, IE, and Firefox. + * Add the correct display in Edge, IE. */ details { display: block; } -/* - * Add the correct display in IE 9-. - */ - -menu { - display: block; -} - /* * Add the correct display in all browsers. */ From be70b61b9ab492890ca48fc5f9b4f18eab229563 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Sun, 28 May 2017 21:01:47 -0400 Subject: [PATCH 5/9] Update IE comment formatting --- normalize.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/normalize.css b/normalize.css index 0119cb5a2..3216c298e 100644 --- a/normalize.css +++ b/normalize.css @@ -54,7 +54,7 @@ figure { } /** - * Add the correct margin in IE 8. + * Add the correct margin in IE 8-. */ figure { @@ -305,7 +305,7 @@ fieldset { } /** - * Show the overflow in Edge, IE. + * Show the overflow in Edge and IE. */ input { @@ -407,7 +407,7 @@ textarea { ========================================================================== */ /* - * Add the correct display in Edge, IE. + * Add the correct display in Edge and IE. */ details { From 2c6376d3b86d25f651cd5428ca88943a1c7402d3 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Sun, 28 May 2017 21:02:10 -0400 Subject: [PATCH 6/9] Update browser landscape of details --- normalize.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/normalize.css b/normalize.css index 3216c298e..1e98d106d 100644 --- a/normalize.css +++ b/normalize.css @@ -407,7 +407,7 @@ textarea { ========================================================================== */ /* - * Add the correct display in Edge and IE. + * Add the correct display in Edge, Firefox 48-, and IE. */ details { From 1880b36408d010c05efd561f7c096907cc0b4d0d Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Sun, 28 May 2017 21:02:33 -0400 Subject: [PATCH 7/9] Remove sub and sup opinionated resets --- normalize.css | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/normalize.css b/normalize.css index 1e98d106d..4f08fe414 100644 --- a/normalize.css +++ b/normalize.css @@ -170,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 ========================================================================== */ From 5c879de04b4fa9d275ae3e0f1d32871463a36c8b Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Sun, 28 May 2017 21:04:38 -0400 Subject: [PATCH 8/9] 7.0.0 --- CHANGELOG.md | 8 ++++++++ normalize.css | 2 +- package.json | 8 ++++---- 3 files changed, 13 insertions(+), 5 deletions(-) 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/normalize.css b/normalize.css index 4f08fe414..33efd60ad 100644 --- a/normalize.css +++ b/normalize.css @@ -1,4 +1,4 @@ -/*! normalize.css v6.0.0 | MIT License | github.com/jonathantneal/normalize.css */ +/*! normalize.css v7.0.0 | MIT License | github.com/jonathantneal/normalize.css */ /* Document ========================================================================== */ 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": { From d7bd1fd22bff730d673be70b87b21193c95b70f3 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Sun, 28 May 2017 21:04:45 -0400 Subject: [PATCH 9/9] Update documentation --- README.md | 61 ++++++++++++++----------------------------------------- 1 file changed, 15 insertions(+), 46 deletions(-) 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).