Skip to content

Commit 7de8a56

Browse files
committed
update batch
1 parent b4c7e17 commit 7de8a56

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# postcss-resolve-nested-selector
22

3-
[![Build Status](https://travis-ci.org/davidtheclark/postcss-resolve-nested-selector.svg?branch=master)](https://travis-ci.org/davidtheclark/postcss-resolve-nested-selector)
3+
[![test](https://github.com/csstools/postcss-resolve-nested-selector/actions/workflows/test.yml/badge.svg)](https://github.com/csstools/postcss-resolve-nested-selector/actions/workflows/test.yml)
44

55
Given a (nested) selector in a PostCSS AST, return an array of resolved selectors.
66

77
Tested to work with the syntax of
88
[postcss-nested](https://github.com/postcss/postcss-nested)
9-
and [postcss-nesting](https://github.com/jonathantneal/postcss-nesting).
9+
and [postcss-nesting](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting).
1010
Should also work with SCSS and Less syntax. If you'd like to help out by
1111
adding some automated tests for those, that'd be swell. In fact, if you'd
1212
like to add any automated tests, you are a winner!
@@ -22,19 +22,19 @@ For example, given this JS:
2222
```js
2323
var resolvedNestedSelector = require('postcss-resolve-nested-selector');
2424
postcssRoot.eachRule(function(rule) {
25-
rule.selectors.forEach(function(selector) {
26-
console.log(resolvedNestedSelector(selector, rule));
27-
});
25+
rule.selectors.forEach(function(selector) {
26+
console.log(resolvedNestedSelector(selector, rule));
27+
});
2828
});
2929
```
3030

3131
And the following CSS:
3232

3333
```scss
3434
.foo {
35-
.bar {
36-
color: pink;
37-
}
35+
.bar {
36+
color: pink;
37+
}
3838
}
3939
```
4040

@@ -49,10 +49,10 @@ Or with this CSS:
4949

5050
```scss
5151
.foo {
52-
.bar &,
53-
a {
54-
color: pink;
55-
}
52+
.bar &,
53+
a {
54+
color: pink;
55+
}
5656
}
5757
```
5858

0 commit comments

Comments
 (0)