postcss-grid-fluid
Advanced tools
Comparing version 0.1.12 to 0.1.14
@@ -13,3 +13,3 @@ 'use strict'; | ||
exports.default = function (decl, margin, display) { | ||
exports.default = function (decl, gutter, display) { | ||
var clearfixRule = _postcss2.default.rule({ selector: decl.parent.selector + '::after' }); | ||
@@ -21,4 +21,8 @@ clearfixRule.append({ prop: 'content', value: '""' }); | ||
var declNew = [_postcss2.default.decl({ prop: 'clear', value: 'both' }), _postcss2.default.decl({ prop: 'margin-right', value: '-' + margin })]; | ||
var declNew = [_postcss2.default.decl({ prop: 'clear', value: 'both' })]; | ||
if (gutter !== '0') { | ||
declNew = declNew.concat([_postcss2.default.decl({ prop: 'margin-right', value: '-' + gutter })]); | ||
} | ||
if (display === 'flex') { | ||
@@ -25,0 +29,0 @@ declNew = declNew.concat([_postcss2.default.decl({ prop: 'display', value: 'flex' }), _postcss2.default.decl({ prop: 'flex-flow', value: 'row wrap' }), _postcss2.default.decl({ prop: 'align-items', value: 'flex-start' }), _postcss2.default.decl({ prop: 'align-content', value: 'flex-start' })]); |
{ | ||
"name": "postcss-grid-fluid", | ||
"version": "0.1.12", | ||
"version": "0.1.14", | ||
"description": "A PostCSS plugin to create fluid grids.", | ||
@@ -24,6 +24,6 @@ "keywords": [ | ||
"dependencies": { | ||
"postcss": "^5.0.21" | ||
"postcss": "^5.2.4" | ||
}, | ||
"scripts": { | ||
"build": "babel src --out-dir lib", | ||
"dist": "babel src --out-dir lib", | ||
"test": "ava && eslint *.js" | ||
@@ -33,12 +33,12 @@ }, | ||
"devDependencies": { | ||
"ava": "^0.15.2", | ||
"babel-cli": "^6.10.1", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-register": "^6.9.0", | ||
"eslint": "^3.0.1", | ||
"eslint-config-airbnb": "^9.0.1", | ||
"eslint-plugin-import": "^1.10.2", | ||
"eslint-plugin-jsx-a11y": "^1.5.5", | ||
"eslint-plugin-react": "^5.2.2", | ||
"postcss-cli": "^2.5.2" | ||
"ava": "^0.16.0", | ||
"babel-cli": "^6.16.0", | ||
"babel-preset-es2015": "^6.16.0", | ||
"babel-register": "^6.16.3", | ||
"eslint": "^3.7.1", | ||
"eslint-config-airbnb": "^12.0.0", | ||
"eslint-plugin-import": "^2.0.0", | ||
"eslint-plugin-jsx-a11y": "^2.2.2", | ||
"eslint-plugin-react": "^6.3.0", | ||
"postcss-cli": "^2.6.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "eslintConfig": { |
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
12731
190
Updatedpostcss@^5.2.4