Skip to content

Commit 3fdc61b

Browse files
committed
7.0.0
1 parent 5c5b70a commit 3fdc61b

12 files changed

+283
-240
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
environment:
44
matrix:
5-
- nodejs_version: 4.0
5+
- nodejs_version: 6.0
66

77
version: "{build}"
88
build: off

.rollup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
plugins: [
1010
babel({
1111
presets: [
12-
['env', { modules: false, targets: { node: 6 } }]
12+
['@babel/env', { modules: false, targets: { node: 6 } }]
1313
]
1414
})
1515
]

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes to PostCSS Normalize
22

3+
### 7.0.0 (August 24, 2018)
4+
5+
- Use normalize.css v9.0.1 (major)
6+
37
### 6.0.0 (June 16, 2018)
48

59
- Use normalize.css v8 (major)

INSTALL.md

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[PostCSS Normalize] runs in all Node environments, with special instructions for:
44

5-
| [Node](#node) | [Webpack](#webpack) | [Create React App](#create-react-app) | [Gulp](#gulp) | [Grunt](#grunt) |
5+
| [Node](#node) | [PostCSS CLI](#postcss-cli) | [Webpack](#webpack) | [Create React App](#create-react-app) | [Gulp](#gulp) | [Grunt](#grunt) |
66
| --- | --- | --- | --- | --- |
77

88
## Node
@@ -16,22 +16,43 @@ npm install postcss-normalize --save-dev
1616
Use [PostCSS Normalize] to process your CSS:
1717

1818
```js
19-
import postcssNormalize from 'postcss-normalize';
19+
const postcssNormalize = require('postcss-normalize');
2020

2121
postcssNormalize.process(YOUR_CSS /*, processOptions, pluginOptions */);
2222
```
2323

2424
Or use it as a [PostCSS] plugin:
2525

2626
```js
27-
import postcss from 'postcss';
28-
import postcssNormalize from 'postcss-normalize';
27+
const postcss = require('postcss');
28+
const postcssNormalize = require('postcss-normalize');
2929

3030
postcss([
3131
postcssNormalize(/* pluginOptions */)
3232
]).process(YOUR_CSS /*, processOptions */);
3333
```
3434

35+
## PostCSS CLI
36+
37+
Add [PostCSS CLI] to your project:
38+
39+
```bash
40+
npm install postcss-cli --save-dev
41+
```
42+
43+
Use [PostCSS Logical Properties and Values] in your `postcss.config.js`
44+
configuration file:
45+
46+
```js
47+
const postcssNormalize = require('postcss-logical');
48+
49+
module.exports = {
50+
plugins: [
51+
postcssNormalize(/* pluginOptions */)
52+
]
53+
}
54+
```
55+
3556
## Webpack
3657

3758
Add [PostCSS Loader] to your project:
@@ -43,7 +64,7 @@ npm install postcss-loader --save-dev
4364
Use [PostCSS Normalize] in your Webpack configuration:
4465

4566
```js
46-
import postcssNormalize from 'postcss-normalize';
67+
const postcssNormalize = require('postcss-normalize');
4768

4869
module.exports = {
4970
module: {
@@ -78,8 +99,8 @@ Use [React App Rewire PostCSS] and [PostCSS Normalize] in your
7899
`config-overrides.js` file:
79100

80101
```js
81-
import reactAppRewirePostcss from 'react-app-rewire-postcss';
82-
import postcssNormalize from 'postcss-normalize';
102+
const reactAppRewirePostcss = require('react-app-rewire-postcss');
103+
const postcssNormalize = require('postcss-normalize');
83104

84105
export default config => reactAppRewirePostcss(config, {
85106
plugins: () => [
@@ -99,8 +120,8 @@ npm install gulp-postcss --save-dev
99120
Use [PostCSS Normalize] in your Gulpfile:
100121

101122
```js
102-
import postcss from 'gulp-postcss';
103-
import postcssNormalize from 'postcss-normalize';
123+
const postcss = require('gulp-postcss');
124+
const postcssNormalize = require('postcss-normalize');
104125

105126
gulp.task('css', () => gulp.src('./src/*.css').pipe(
106127
postcss([
@@ -122,7 +143,7 @@ npm install grunt-postcss --save-dev
122143
Use [PostCSS Normalize] in your Gruntfile:
123144

124145
```js
125-
import postcssNormalize from 'postcss-normalize';
146+
const postcssNormalize = require('postcss-normalize');
126147

127148
grunt.loadNpmTasks('grunt-postcss');
128149

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ postcss([
9191

9292
[PostCSS Normalize] runs in all Node environments, with special instructions for:
9393

94-
| [Node](INSTALL.md#node) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |
94+
| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |
9595
| --- | --- | --- | --- | --- |
9696

9797
## Options

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-normalize",
3-
"version": "6.0.0",
3+
"version": "7.0.0",
44
"description": "Use the parts of normalize.css you need from your browserslist",
55
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
66
"license": "CC0-1.0",
@@ -24,21 +24,21 @@
2424
"node": ">=6.0.0"
2525
},
2626
"dependencies": {
27-
"@csstools/normalize.css": "^8.0.0",
28-
"browserslist": "^3.2.8",
29-
"postcss": "^6.0.22",
27+
"@csstools/normalize.css": "^9.0.1",
28+
"browserslist": "^4.1.0",
29+
"postcss": "^7.0.2",
3030
"postcss-browser-comments": "^1.0.0"
3131
},
3232
"devDependencies": {
33-
"babel-core": "^6.26.3",
34-
"babel-eslint": "^8.2.3",
35-
"babel-preset-env": "^1.7.0",
36-
"eslint": "^4.19.1",
33+
"@babel/core": "^7.0.0",
34+
"@babel/preset-env": "^7.0.0",
35+
"babel-eslint": "^9.0.0",
36+
"eslint": "^5.5.0",
3737
"eslint-config-dev": "^2.0.0",
3838
"postcss-tape": "^2.2.0",
3939
"pre-commit": "^1.2.2",
40-
"rollup": "^0.60.7",
41-
"rollup-plugin-babel": "^3.0.4"
40+
"rollup": "^0.65.0",
41+
"rollup-plugin-babel": "^4.0.1"
4242
},
4343
"eslintConfig": {
4444
"extends": "dev",

test/basic.expect.css

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! normalize.css v8.0.0 | MIT License | github.com/csstools/normalize.css */
1+
/*! normalize.css v9.0.1 | MIT License | github.com/csstools/normalize.css */
22

33
/* Document
44
* ========================================================================== */
@@ -116,14 +116,12 @@ svg:not(:root) {
116116
* ========================================================================== */
117117

118118
/**
119-
* Remove the margin in Firefox and Safari.
119+
* Remove the margin in Safari.
120120
*/
121121

122122
button,
123123
input,
124-
optgroup,
125-
select,
126-
textarea {
124+
select {
127125
margin: 0;
128126
}
129127

@@ -148,26 +146,6 @@ button,
148146
-webkit-appearance: button;
149147
}
150148

151-
/**
152-
* Remove the inner border and padding in Firefox.
153-
*/
154-
155-
::-moz-focus-inner {
156-
border-style: none;
157-
padding: 0;
158-
}
159-
160-
/**
161-
* Restore the focus styles unset by the previous rule in Firefox.
162-
*/
163-
164-
button:-moz-focusring,
165-
[type="button"]:-moz-focusring,
166-
[type="reset"]:-moz-focusring,
167-
[type="submit"]:-moz-focusring {
168-
outline: 1px dotted ButtonText;
169-
}
170-
171149
/**
172150
* Correct the padding in Firefox.
173151
*/
@@ -187,16 +165,13 @@ input {
187165
/**
188166
* 1. Correct the text wrapping in Edge and IE.
189167
* 2. Correct the color inheritance from `fieldset` elements in IE.
190-
* 3. Remove the padding so developers are not caught out when they zero out
191-
* `fieldset` elements in all browsers.
192168
*/
193169

194170
legend {
195171
box-sizing: border-box; /* 1 */
196172
color: inherit; /* 2 */
197173
display: table; /* 1 */
198174
max-width: 100%; /* 1 */
199-
padding: 0; /* 3 */
200175
white-space: normal; /* 1 */
201176
}
202177

@@ -219,15 +194,27 @@ select {
219194
}
220195

221196
/**
222-
* Remove the default vertical scrollbar in IE.
197+
* 1. Remove the margin in Firefox and Safari.
198+
* 2. Remove the default vertical scrollbar in IE.
223199
*/
224200

225201
textarea {
226-
overflow: auto;
202+
margin: 0; /* 1 */
203+
overflow: auto; /* 2 */
227204
}
228205

229206
/**
230-
* Correct the cursor style of increment and decrement buttons in Chrome.
207+
* 1. Correct the odd appearance in Chrome and Safari.
208+
* 2. Correct the outline style in Safari.
209+
*/
210+
211+
[type="search"] {
212+
-webkit-appearance: textfield; /* 1 */
213+
outline-offset: -2px; /* 2 */
214+
}
215+
216+
/**
217+
* Correct the cursor style of increment and decrement buttons in Safari.
231218
*/
232219

233220
::-webkit-inner-spin-button,
@@ -236,13 +223,12 @@ textarea {
236223
}
237224

238225
/**
239-
* 1. Correct the odd appearance in Chrome and Safari.
240-
* 2. Correct the outline style in Safari.
226+
* Correct the text style of placeholders in Chrome, Edge, and Safari.
241227
*/
242228

243-
[type="search"] {
244-
-webkit-appearance: textfield; /* 1 */
245-
outline-offset: -2px; /* 2 */
229+
::-webkit-input-placeholder {
230+
color: inherit;
231+
opacity: 0.54;
246232
}
247233

248234
/**
@@ -263,6 +249,23 @@ textarea {
263249
font: inherit; /* 2 */
264250
}
265251

252+
/**
253+
* Remove the inner border and padding of focus outlines in Firefox.
254+
*/
255+
256+
::-moz-focus-inner {
257+
border-style: none;
258+
padding: 0;
259+
}
260+
261+
/**
262+
* Restore the focus outline styles unset by the previous rule in Firefox.
263+
*/
264+
265+
:-moz-focusring {
266+
outline: 1px dotted ButtonText;
267+
}
268+
266269
/* Interactive
267270
* ========================================================================== */
268271

0 commit comments

Comments
 (0)