postcss-calc
Advanced tools
Comparing version
@@ -0,1 +1,7 @@ | ||
# 7.0.1 | ||
- Updated: `postcss` to 7.0.2 (patch) | ||
- Updated: `postcss-selector-parser` to 5.0.0-rc.4 (patch) | ||
- Updated: `postcss-value-parser` to 3.3.1 (patch) | ||
# 7.0.0 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "postcss-calc", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "PostCSS plugin to reduce calc()", | ||
@@ -31,6 +31,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/cli": "^7.1.2", | ||
"@babel/core": "^7.1.2", | ||
"@babel/polyfill": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/register": "^7.0.0", | ||
@@ -42,6 +42,6 @@ "ava": "^1.0.0-beta.8", | ||
"del-cli": "^1.1.0", | ||
"eslint": "^5.6.1", | ||
"eslint": "^5.7.0", | ||
"eslint-config-i-am-meticulous": "^11.0.0", | ||
"eslint-plugin-babel": "^5.2.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"jison-gho": "^0.6.1-215" | ||
@@ -51,5 +51,5 @@ }, | ||
"css-unit-converter": "^1.1.1", | ||
"postcss": "^7.0.2", | ||
"postcss-selector-parser": "^5.0.0-rc.3", | ||
"postcss-value-parser": "^3.3.0" | ||
"postcss": "^7.0.5", | ||
"postcss-selector-parser": "^5.0.0-rc.4", | ||
"postcss-value-parser": "^3.3.1" | ||
}, | ||
@@ -56,0 +56,0 @@ "ava": { |
@@ -1,14 +0,17 @@ | ||
# postcss-calc [](https://travis-ci.org/postcss/postcss-calc) | ||
# PostCSS Calc [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS" width="90" height="90" align="right">][PostCSS] | ||
> [PostCSS](https://github.com/postcss/postcss) plugin to reduce `calc()`. | ||
[![NPM Version][npm-img]][npm-url] | ||
[![Build Status][cli-img]][cli-url] | ||
[![Support Chat][git-img]][git-url] | ||
This plugin reduce `calc()` references whenever it's possible. | ||
This can be particularly useful with the [postcss-custom-properties](https://github.com/postcss/postcss-custom-properties) plugin. | ||
[PostCSS Calc] lets you reduce `calc()` references whenever it's possible. This | ||
can be particularly useful with the [PostCSS Custom Properties] plugin. | ||
**Note:** When multiple units are mixed together in the same expression, the `calc()` statement is left as is, to fallback to the [w3c calc() feature](http://www.w3.org/TR/css3-values/#calc). | ||
When multiple units are mixed together in the same expression, the `calc()` | ||
statement is left as is, to fallback to the [W3C calc() implementation]. | ||
## Installation | ||
```console | ||
$ npm install postcss-calc | ||
```bash | ||
npm install postcss-calc | ||
``` | ||
@@ -34,3 +37,3 @@ | ||
**Example** (with [postcss-custom-properties](https://github.com/postcss/postcss-custom-properties) enabled as well): | ||
**Example** (with [PostCSS Custom Properties] enabled as well): | ||
@@ -90,3 +93,3 @@ ```js | ||
Checkout [tests](src/__tests__/index.js) for more examples. | ||
Checkout [tests] for more examples. | ||
@@ -108,3 +111,4 @@ ### Options | ||
Allow you to preserve calc() usage in output so browsers will handle decimal precision themselves. | ||
Allow you to preserve calc() usage in output so browsers will handle decimal | ||
precision themselves. | ||
@@ -163,9 +167,10 @@ ```js | ||
Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature. | ||
Work on a branch, install dev-dependencies, respect coding style & run tests | ||
before submitting a bug fix or a feature. | ||
```console | ||
$ git clone https://github.com/postcss/postcss-calc.git | ||
$ git checkout -b patch-1 | ||
$ npm install | ||
$ npm test | ||
```bash | ||
git clone git@github.com:postcss/postcss-calc.git | ||
git checkout -b patch-1 | ||
npm install | ||
npm test | ||
``` | ||
@@ -176,1 +181,14 @@ | ||
## [License](LICENSE) | ||
[cli-img]: https://img.shields.io/travis/postcss/postcss-calc/master.svg | ||
[cli-url]: https://travis-ci.org/postcss/postcss-calc | ||
[git-img]: https://img.shields.io/badge/support-chat-blue.svg | ||
[git-url]: https://gitter.im/postcss/postcss | ||
[npm-img]: https://img.shields.io/npm/v/postcss-calc.svg | ||
[npm-url]: https://www.npmjs.com/package/postcss-calc | ||
[PostCSS]: https://github.com/postcss | ||
[PostCSS Calc]: https://github.com/postcss/postcss-calc | ||
[PostCSS Custom Properties]: https://github.com/postcss/postcss-custom-properties | ||
[tests]: src/__tests__/index.js | ||
[W3C calc() implementation]: https://www.w3.org/TR/css3-values/#calc-notation |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
145415
0.45%190
10.47%1
-50%Updated
Updated