postcss-css-variables
Advanced tools
Comparing version
# v0.5.2 - 2016-8-24 | ||
- Fix [#42](https://github.com/MadLittleMods/postcss-css-variables/issues/42) where `opts.preserve` was not working inside at-rules | ||
- Thanks you to [@muftiev](github.com/muftiev) for the [contribution](https://github.com/MadLittleMods/postcss-css-variables/pull/43) | ||
# v0.5.1 - 2015-10-24 | ||
- Fix postcss/postcss#611 where we were trying to remove the root node on clean up | ||
- Fix [postcss/postcss#611](https://github.com/postcss/postcss/issues/611) where we were trying to remove the root node on clean up | ||
- Improved test setup | ||
@@ -9,9 +16,9 @@ | ||
- Upgrade to PostCSS v5. Fix #20 | ||
- Upgrade to PostCSS v5. Fix [#20](https://github.com/MadLittleMods/postcss-css-variables/issues/20) | ||
# v0.4.0 - 2015-7-2 | ||
- Fix #15 | ||
- Fix [#15](https://github.com/MadLittleMods/postcss-css-variables/issues/15) | ||
- Remove slowness from cloning the `root` with `node.clone().removeAll()`. Now using `./lib/shallow-clone-node.js` to avoid cloning children which will get removed right after. | ||
- Thank you to @ddprrt for bringing up the slowness issue in this article, [PostCSS misconceptions](https://medium.com/@ddprrt/postcss-misconceptions-faf5dc5038df). | ||
- Thank you to [@ddprrt](https://github.com/ddprrt) for bringing up the slowness issue in this article, [PostCSS misconceptions](https://medium.com/@ddprrt/postcss-misconceptions-faf5dc5038df). | ||
@@ -22,3 +29,3 @@ | ||
- Remove `opts` global leak. Fix #13 | ||
- Remove `opts` global leak. Fix [#13](https://github.com/MadLittleMods/postcss-css-variables/issues/13) | ||
@@ -32,3 +39,3 @@ | ||
- Fix #7: Support for child combinator | ||
- Fix [#7](https://github.com/MadLittleMods/postcss-css-variables/issues/7): Support for child combinator | ||
- Added tests for child-combinator/direct-descendant coverage | ||
@@ -38,3 +45,3 @@ | ||
- Fix #6. Variable usage in comma separated selector to use proper scope | ||
- Fix [#6](https://github.com/MadLittleMods/postcss-css-variables/issues/6). Variable usage in comma separated selector to use proper scope | ||
@@ -58,3 +65,3 @@ # v0.3.5 - 2015-5-12 | ||
- Large overhaul of code to make it more robust on proper scope resolution. | ||
- Fix #2 | ||
- Fix [#2]](https://github.com/MadLittleMods/postcss-css-variables/issues/2) | ||
@@ -61,0 +68,0 @@ # v0.2.3 - 2015-5-4 |
@@ -0,0 +0,0 @@ // PostCSS CSS Variables (postcss-css-variables) |
@@ -97,9 +97,12 @@ var resolveValue = require('./resolve-value'); | ||
var declClone = decl.clone(); | ||
// No mangle resolve | ||
declClone.value = _logResolveValueResult(resolveValue(mimicDecl, map, true)).value; | ||
// Add the declaration to our new rule | ||
ruleClone.append(declClone); | ||
if(shouldPreserve === true) { | ||
declClone.cloneAfter(); | ||
} | ||
// No mangle resolve | ||
declClone.value = _logResolveValueResult(resolveValue(mimicDecl, map, true)).value; | ||
if(mapItem.isUnderAtRule) { | ||
@@ -106,0 +109,0 @@ // Create the clean atRule for which we place the declaration under |
{ | ||
"name": "postcss-css-variables", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -0,0 +0,0 @@ [](http://badge.fury.io/js/postcss-css-variables) [](https://travis-ci.org/MadLittleMods/postcss-css-variables) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
49328
3.11%788
0.38%