Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
migrate
  • Loading branch information
romainmenke committed Nov 22, 2021
commit 3feedcc5bc8b9e3a94e9f03a5b8dafbf4db9afc8
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
yarn.lock
reports
.stryker-tmp
package-lock.json
8 changes: 2 additions & 6 deletions plugins/css-blank-pseudo/.gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
node_modules
/browser.*
/browser-legacy.*
/index.*
/legacy.*
/postcss.*
dist
package-lock.json
yarn.lock
*.log*
*.result.css
.*
*.result.css.map
!.editorconfig
!.gitignore
!.rollup.js
Expand Down
72 changes: 0 additions & 72 deletions plugins/css-blank-pseudo/.rollup.js

This file was deleted.

2 changes: 1 addition & 1 deletion plugins/css-blank-pseudo/.tape.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
'basic': {
message: 'supports basic usage'
message: 'supports basic usage',
},
'basic:replacewith': {
message: 'supports { replaceWith: ".css-blank" } usage',
Expand Down
65 changes: 0 additions & 65 deletions plugins/css-blank-pseudo/CONTRIBUTING.md

This file was deleted.

16 changes: 8 additions & 8 deletions plugins/css-blank-pseudo/INSTALL-POSTCSS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm install css-blank-pseudo --save-dev
Use [CSS Blank Pseudo] to process your CSS:

```js
const postcssBlankPseudo = require('css-blank-pseudo/postcss');
const postcssBlankPseudo = require('css-blank-pseudo');

postcssBlankPseudo.process(YOUR_CSS /*, processOptions, pluginOptions */);
```
Expand All @@ -25,7 +25,7 @@ Or use it as a [PostCSS] plugin:

```js
const postcss = require('postcss');
const postcssBlankPseudo = require('css-blank-pseudo/postcss');
const postcssBlankPseudo = require('css-blank-pseudo');

postcss([
postcssBlankPseudo(/* pluginOptions */)
Expand All @@ -43,7 +43,7 @@ npm install postcss-cli --save-dev
Use [CSS Blank Pseudo] in your `postcss.config.js` configuration file:

```js
const postcssBlankPseudo = require('css-blank-pseudo/postcss');
const postcssBlankPseudo = require('css-blank-pseudo');

module.exports = {
plugins: [
Expand All @@ -63,7 +63,7 @@ npm install postcss-loader --save-dev
Use [CSS Blank Pseudo] in your Webpack configuration:

```js
const postcssBlankPseudo = require('css-blank-pseudo/postcss');
const postcssBlankPseudo = require('css-blank-pseudo');

module.exports = {
module: {
Expand Down Expand Up @@ -100,7 +100,7 @@ file:

```js
const reactAppRewirePostcss = require('react-app-rewire-postcss');
const postcssBlankPseudo = require('css-blank-pseudo/postcss');
const postcssBlankPseudo = require('css-blank-pseudo');

module.exports = config => reactAppRewirePostcss(config, {
plugins: () => [
Expand All @@ -121,7 +121,7 @@ Use [CSS Blank Pseudo] in your Gulpfile:

```js
const postcss = require('gulp-postcss');
const postcssBlankPseudo = require('css-blank-pseudo/postcss');
const postcssBlankPseudo = require('css-blank-pseudo');

gulp.task('css', () => gulp.src('./src/*.css').pipe(
postcss([
Expand All @@ -143,7 +143,7 @@ npm install grunt-postcss --save-dev
Use [CSS Blank Pseudo] in your Gruntfile:

```js
const postcssBlankPseudo = require('css-blank-pseudo/postcss');
const postcssBlankPseudo = require('css-blank-pseudo');

grunt.loadNpmTasks('grunt-postcss');

Expand All @@ -161,7 +161,7 @@ grunt.initConfig({
});
```

[CSS Blank Pseudo]: https://github.com/csstools/css-blank-pseudo
[CSS Blank Pseudo]: https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo
[Gulp PostCSS]: https://github.com/postcss/gulp-postcss
[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss
[PostCSS]: https://github.com/postcss/postcss
Expand Down
29 changes: 16 additions & 13 deletions plugins/css-blank-pseudo/README-BROWSER.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# CSS Blank Pseudo for Browsers [<img src="http://jonathantneal.github.io/js-logo.svg" alt="" width="90" height="90" align="right">][CSS Blank Pseudo]

[![NPM Version][npm-img]][npm-url]
[![Build Status][cli-img]][cli-url]
[![Support Chat][git-img]][git-url]

[CSS Blank Pseudo] lets you style form elements when they are empty, following
Expand All @@ -28,15 +27,7 @@ npm install css-blank-pseudo
Then include and initialize it on your document:

```js
const cssBlankPseudo = require('css-blank-pseudo');

cssBlankPseudo(document);
```

To support Internet Explorer 11, include the *browser-legacy* script:

```js
const cssBlankPseudo = require('css-blank-pseudo/legacy');
const cssBlankPseudo = require('css-blank-pseudo/browser');

cssBlankPseudo(document);
```
Expand Down Expand Up @@ -67,12 +58,24 @@ cssBlankPseudo(document, {
});
```

[cli-img]: https://img.shields.io/travis/csstools/css-blank-pseudo/master.svg
[cli-url]: https://travis-ci.org/csstools/css-blank-pseudo
## Dependencies

Web API's:

- [MutationObserver](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver)

ECMA Script:

- `Object.prototype.toString`
- `Object.getOwnPropertyDescriptor`
- `Object.defineProperty`
- `Array.prototype.forEach`


[git-img]: https://img.shields.io/badge/support-chat-blue.svg
[git-url]: https://gitter.im/postcss/postcss
[npm-img]: https://img.shields.io/npm/v/css-blank-pseudo.svg
[npm-url]: https://www.npmjs.com/package/css-blank-pseudo

[CSS Blank Pseudo]: https://github.com/csstools/css-blank-pseudo
[CSS Blank Pseudo]: https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo
[Selectors Level 4]: https://drafts.csswg.org/selectors-4/#blank
13 changes: 5 additions & 8 deletions plugins/css-blank-pseudo/README-POSTCSS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# CSS Blank Pseudo for PostCSS [<img src="http://jonathantneal.github.io/postcss-logo.svg" alt="" width="90" height="90" align="right">][CSS Blank Pseudo]

[![NPM Version][npm-img]][npm-url]
[![Build Status][cli-img]][cli-url]
[![Support Chat][git-img]][git-url]

[CSS Blank Pseudo] lets you style form elements when they are empty, following
Expand Down Expand Up @@ -39,7 +38,7 @@ npm install css-blank-pseudo --save-dev
Use [CSS Blank Pseudo] to process your CSS:

```js
const postcssBlankPseudo = require('css-blank-pseudo/postcss');
const postcssBlankPseudo = require('css-blank-pseudo');

postcssBlankPseudo.process(YOUR_CSS /*, processOptions, pluginOptions */);
```
Expand All @@ -48,7 +47,7 @@ Or use it as a [PostCSS] plugin:

```js
const postcss = require('postcss');
const postcssBlankPseudo = require('css-blank-pseudo/postcss');
const postcssBlankPseudo = require('css-blank-pseudo');

postcss([
postcssBlankPseudo(/* pluginOptions */)
Expand All @@ -69,7 +68,7 @@ The `preserve` option defines whether the original selector should remain. By
default, the original selector is preserved.

```js
focusWithin({ preserve: false });
cssBlankPseudo({ preserve: false });
```

```css
Expand All @@ -90,7 +89,7 @@ The `replaceWith` option defines the selector to replace `:blank`. By
default, the replacement selector is `[blank]`.

```js
focusWithin({ replaceWith: '.blank' });
cssBlankPseudo({ replaceWith: '.blank' });
```

```css
Expand All @@ -109,12 +108,10 @@ input:blank {
}
```

[cli-img]: https://img.shields.io/travis/csstools/css-blank-pseudo/master.svg
[cli-url]: https://travis-ci.org/csstools/css-blank-pseudo
[git-img]: https://img.shields.io/badge/support-chat-blue.svg
[git-url]: https://gitter.im/postcss/postcss
[npm-img]: https://img.shields.io/npm/v/css-blank-pseudo.svg
[npm-url]: https://www.npmjs.com/package/css-blank-pseudo

[CSS Blank Pseudo]: https://github.com/csstools/css-blank-pseudo
[CSS Blank Pseudo]: https://github.com/csstools/postcss-plugins/tree/main/plugins/css-blank-pseudo
[Selectors Level 4]: https://drafts.csswg.org/selectors-4/#blank
Loading