Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-calc

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-calc - npm Package Compare versions

Comparing version 5.2.1 to 5.3.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 5.3.0 - 2016-07-11
- Added: support for selector transformation via `selectors` option.
([#29](https://github.com/postcss/postcss-calc/pull/29) - @uniquegestaltung)
# 5.2.1 - 2016-04-10

@@ -2,0 +7,0 @@

4

index.js

@@ -19,2 +19,3 @@ /**

var mediaQueries = options.mediaQueries
var selectors = options.selectors

@@ -57,4 +58,7 @@ return function(style, result) {

}
else if (selectors && rule.type === "rule") {
return transformValue(rule, "selector")
}
})
}
})

2

package.json
{
"name": "postcss-calc",
"version": "5.2.1",
"version": "5.3.0",
"description": "PostCSS plugin to reduce calc()",

@@ -5,0 +5,0 @@ "keywords": [

@@ -137,2 +137,21 @@ # postcss-calc [![Build Status](https://travis-ci.org/postcss/postcss-calc.png)](https://travis-ci.org/postcss/postcss-calc)

#### `selectors` (default: `false`)
Allows calc() usage as part of selectors.
```js
var out = postcss()
.use(calc({selectors: true}))
.process(css)
.css
```
Example:
```css
div[data-size="calc(3*3)"] {
width: 100px;
}
```
---

@@ -139,0 +158,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc