postcss-custom-properties
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,5 @@ | ||
# 1.0.2 - 2014-11-04 | ||
- More clear message for warning about custom prop used in non top-level :root | ||
# 1.0.1 - 2014-11-03 | ||
@@ -2,0 +6,0 @@ |
@@ -39,3 +39,3 @@ /** | ||
if (prop && prop.indexOf(VAR_PROP_IDENTIFIER) === 0) { | ||
console.warn(gnuMessage("Custom property ignored: found in another place than top level :root (" + rule.selectors + " { ... " + prop + ": ... })" + (rule.parent.type !== "root" ? ", in " + rule.parent.type : ""))) | ||
console.warn(gnuMessage("Custom property ignored: not scoped to the top-level :root element (" + rule.selectors + " { ... " + prop + ": ... })" + (rule.parent.type !== "root" ? ", in " + rule.parent.type : ""))) | ||
} | ||
@@ -42,0 +42,0 @@ }) |
{ | ||
"name": "postcss-custom-properties", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "PostCSS plugin to polyfill W3C CSS Custom Properties for cascading variables", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,3 +5,4 @@ # postcss-custom-properties [![Build Status](https://travis-ci.org/postcss/postcss-custom-properties.png)](https://travis-ci.org/postcss/postcss-custom-properties) | ||
**N.B.** The transformation _is not complete_. It currently just aims to provide a future-proof way of using a **limited subset (to `:root` selector)** of the features provided by native CSS custom properties. Read [#1](https://github.com/postcss/postcss-custom-properties/issues/1) & [#9](https://github.com/postcss/postcss-custom-properties/issues/9) to know why this limitation exists. | ||
**N.B.** The transformation _is not complete_. It currently just aims to provide a future-proof way of using a **limited subset (to top-level `:root` selector)** of the features provided by native CSS custom properties. | ||
Read [#1](https://github.com/postcss/postcss-custom-properties/issues/1) & [#9](https://github.com/postcss/postcss-custom-properties/issues/9) to know why this limitation exists. | ||
@@ -12,3 +13,5 @@ Works great with [postcss-calc](https://github.com/postcss/postcss-calc). | ||
$ npm install postcss-custom-properties | ||
```console | ||
$ npm install postcss-custom-properties | ||
``` | ||
@@ -78,6 +81,8 @@ ## Usage | ||
$ git clone https://github.com/postcss/postcss-custom-properties.git | ||
$ git checkout -b patch-1 | ||
$ npm install | ||
$ npm test | ||
```console | ||
$ git clone https://github.com/postcss/postcss-custom-properties.git | ||
$ git checkout -b patch-1 | ||
$ npm install | ||
$ npm test | ||
``` | ||
@@ -84,0 +89,0 @@ ## [Changelog](CHANGELOG.md) |
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
10294
89