|
2 | 2 |
|
3 | 3 | [![NPM Version][npm-img]][npm-url] |
4 | 4 | [![Build Status][cli-img]][cli-url] |
5 | | -[![Windows Build Status][win-img]][win-url] |
6 | 5 | [![Support Chat][git-img]][git-url] |
7 | 6 |
|
8 | 7 | [PostCSS Extend Rule] lets you use the `@extend` at-rule and |
@@ -193,6 +192,12 @@ postcssExtend({ name: 'postcss-extend' }) |
193 | 192 | If the `name` option were changed to, say, `postcss-extend`, then only |
194 | 193 | `@postcss-extend` at-rules would be parsed. |
195 | 194 |
|
| 195 | +```pcss |
| 196 | +main { |
| 197 | + @postcss-extend .some-rule; |
| 198 | +} |
| 199 | +``` |
| 200 | + |
196 | 201 | ### onFunctionalSelector |
197 | 202 |
|
198 | 203 | The `onFunctionalSelector` option determines how functional selectors should be |
@@ -227,7 +232,7 @@ postcssExtend({ onRecursiveExtend: 'remove' /* default */ }) |
227 | 232 |
|
228 | 233 | ```pcss |
229 | 234 | .this-will-not-extend-itself { |
230 | | - @extend .this-will-not-extend-itself; |
| 235 | + @extend .this-will-not-extend-itself; |
231 | 236 | } |
232 | 237 | ``` |
233 | 238 |
|
@@ -257,8 +262,6 @@ main { |
257 | 262 | [git-url]: https://gitter.im/postcss/postcss |
258 | 263 | [npm-img]: https://img.shields.io/npm/v/postcss-extend-rule.svg |
259 | 264 | [npm-url]: https://www.npmjs.com/package/postcss-extend-rule |
260 | | -[win-img]: https://img.shields.io/appveyor/ci/jonathantneal/postcss-extend-rule.svg |
261 | | -[win-url]: https://ci.appveyor.com/project/jonathantneal/postcss-extend-rule |
262 | 265 |
|
263 | 266 | [CSS Extend Rules Specification]: https://jonathantneal.github.io/specs/css-extend-rule/ |
264 | 267 | [Functional Selectors]: https://jonathantneal.github.io/specs/css-extend-rule/#functional-selector |
|
0 commit comments