Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 2f2be67

Browse files
committed
Added pseudoelements PostCSS Plugin
1 parent 9ff81ec commit 2f2be67

File tree

6 files changed

+20
-1
lines changed

6 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.1 - 2015-03-31
2+
3+
- Added: pseudoElements single colon fallback for pseudoElements double colons
4+
15
# 1.1.0 - 2015-03-05
26

37
- Added: `--config` CLI option

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The official name is **cssnext**, which should never be capitalized, especially
1818
[Why](#why) | [Features](#features) | [Limitations](#limitations) | [Installation](#installation)| [CLI Usage](#cli) | [Node.js API](#nodejs-api) | [Contribute](#contributing)
1919
--- | --- | --- | --- | --- | --- | ---
2020

21-
---
21+
---
2222

2323
## Why
2424

@@ -250,6 +250,7 @@ Here are all the available features:
250250
- `fontVariant`
251251
- `filter`
252252
- `rem`
253+
- `pseudoElements`
253254
- `autoprefixer`
254255

255256
_Note: order is important to get everything working correctly._

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ var features = {
4242
fontVariant: function(options) { return require("postcss-font-variant")(options)},
4343
filter: function(options) { return require("pleeease-filters")(options)},
4444
rem: function(options) { return require("pixrem")(options)},
45+
pseudoElements: function(options) { return require("postcss-pseudoelements")(options)},
4546
autoprefixer: function(options) { return require("autoprefixer-core")(options).postcss}
4647
}
4748

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"postcss-font-variant": "^1.0.0",
5151
"postcss-import": "^5.0.0",
5252
"postcss-media-minmax": "^1.1.0",
53+
"postcss-pseudoelements": "^2.1.1",
5354
"postcss-url": "^2.0.0",
5455
"read-file-stdin": "^0.2.0",
5556
"to-slug-case": "^0.1.2",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.foo::after {
2+
content:"pseudoelement"
3+
}
4+
.foo::before {
5+
content:"pseudoelement"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.foo:after {
2+
content:"pseudoelement"
3+
}
4+
.foo:before {
5+
content:"pseudoelement"
6+
}

0 commit comments

Comments
 (0)