postcss-tidy-columns
Advanced tools
Comparing version 0.3.1 to 0.3.2
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.3.2 | ||
* BUGIFX: Fixes an issue in the way Tidy Columns cloned nodes (#12) | ||
## 0.3.1 | ||
* Updates tests and documentation (#10, #11) | ||
## 0.3.0 | ||
* BREAKING CHANGE: `inherit` no longer supported in shorthand properties; use `none` instead. | ||
* BREAKING CHANGE: `inherit` no longer supported in shorthand properties; use `none` instead (#9) | ||
## 0.2.3 | ||
* BUGFIX: Fixes issues with sourcemapping. | ||
* BUGFIX: Corrects `tidy-column` shorthand replacement for third `offset-right` property. | ||
* BUGFIX: Fixes issues with sourcemapping (#7) | ||
* BUGFIX: Corrects `tidy-column` shorthand replacement for third `offset-right` property (#6) | ||
## 0.2.2 | ||
* BUGFIX: Corrects `tidy-column` shorthand matching and replacement. | ||
* BUGFIX: Corrects `tidy-column` shorthand matching and replacement (#5) | ||
## 0.2.1 | ||
* Removes unused dependency (`object-assign`). | ||
* Removes unused dependency (`object-assign`) (#4) | ||
## 0.2.0 | ||
* Adds support for CSS Custom Properties in `@tidy` rule values. | ||
* Adds support for CSS Custom Properties in `@tidy` rule values (#3) | ||
## 0.1.1 | ||
* BUGFIX: Locally-scoped options not longer pollute global options. | ||
* BUGFIX: Locally-scoped options not longer pollute global options (#2) | ||
## 0.1 | ||
* Initial release. | ||
* Initial release |
@@ -10,4 +10,5 @@ /** | ||
module.exports = function cleanClone(node, overrides = {}) { | ||
const cleaner = (node.nodes) ? { nodes: [] } : {}; | ||
// Clone the node with overrides. | ||
const clonedNode = node.clone(Object.assign(overrides, { nodes: [] })); | ||
const clonedNode = node.clone(Object.assign(overrides, cleaner)); | ||
// Clear raw formatting, which will be inherited upon insertion. | ||
@@ -14,0 +15,0 @@ clonedNode.cleanRaws(); |
{ | ||
"name": "postcss-tidy-columns", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "PostCSS plugin to manage column and margin alignment.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -26,3 +26,3 @@ # PostCSS Tidy Columns [![Build Status][ci-img]][ci] [![npm version][npmjs-img]][npmjs] | ||
tidy-span: 3; | ||
tidy-offset: 2; | ||
tidy-offset-left: 2; | ||
} | ||
@@ -68,3 +68,3 @@ ``` | ||
The `tidy-span` property specifies the number of columns and adjacent column gaps the element should span. | ||
The `tidy-span` property specifies the number of columns and adjacent column gaps the element should span. Supports positive and decimal values. | ||
@@ -71,0 +71,0 @@ > #### Syntax |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
60608
1743
0