postcss-prefixwrap
Advanced tools
Comparing version 0.0.5 to 0.1.0
@@ -6,2 +6,8 @@ | ||
## 0.1.0 | ||
## Features and Improvements | ||
* Add support for top level combined selectors containing our container class. | ||
## 0.0.5 | ||
@@ -8,0 +14,0 @@ |
@@ -0,0 +0,0 @@ |
{ | ||
"name": "postcss-prefixwrap", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "A PostCSS plugin that is used to wrap css styles with a css selector to constrain their affect on parent elements in a page.", | ||
@@ -5,0 +5,0 @@ "main": "./src/main.js", |
# [PostCSS Prefix Wrap](https://github.com/dbtedman/postcss-prefixwrap) `v0.0.5` [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=master)](https://travis-ci.org/dbtedman/estoolbox) [![NPM Version](https://img.shields.io/npm/v/postcss-prefixwrap.svg)](https://www.npmjs.com/package/postcss-prefixwrap) | ||
# [PostCSS Prefix Wrap](https://github.com/dbtedman/postcss-prefixwrap) `v0.1.0` [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=master)](https://travis-ci.org/dbtedman/postcss-prefixwrap) [![NPM Version](https://img.shields.io/npm/v/postcss-prefixwrap.svg)](https://www.npmjs.com/package/postcss-prefixwrap) | ||
@@ -4,0 +4,0 @@ A [PostCSS](http://postcss.org) plugin that is used to wrap css styles with a css selector to constrain their affect on parent elements in a page. |
@@ -15,3 +15,4 @@ var postcss = require("postcss"); | ||
} else { | ||
// Prepend selector unless our first rule is a combination of this selector and another rule. | ||
} else if (!rule.selector.match(new RegExp("^ *[^ ]*" + selector + ".*$"))) { | ||
rule.selector = selector + " " + rule.selector; | ||
@@ -18,0 +19,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5882
16