postcss-grid-system
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -7,5 +7,5 @@ 'use strict'; | ||
var _sGrid = require('./s-grid'); | ||
var _gridSystem = require('./grid-system'); | ||
var _sGrid2 = _interopRequireDefault(_sGrid); | ||
var _gridSystem2 = _interopRequireDefault(_gridSystem); | ||
@@ -20,3 +20,3 @@ var _utils = require('./utils'); | ||
module.exports = _postcss2.default.plugin('css-system-grid', function () { | ||
module.exports = _postcss2.default.plugin('postcss-grid-system', function () { | ||
var opts = { | ||
@@ -46,3 +46,3 @@ unit: 20.5, | ||
if (decl.prop.match(/^s-grid/)) { | ||
if (decl.prop.match(/^gs/)) { | ||
var value = decl.value.split(' '); | ||
@@ -94,4 +94,4 @@ if (value[0] === 'container') { | ||
return function (css) { | ||
css.walkAtRules('s-grid', function (gridAtRule) { | ||
gridAtRule.walkDecls(function (decl) { | ||
css.walkAtRules('gs', function (gsAtRule) { | ||
gsAtRule.walkDecls(function (decl) { | ||
if (decl.prop.match(/^unit/) || decl.prop.match(/^gutter/) || decl.prop.match(/^padding/) || decl.prop.match(/^max/) || decl.prop.match(/^min/)) { | ||
@@ -104,3 +104,3 @@ opts[decl.prop] = parseFloat(decl.value, 10); | ||
css.walkAtRules('s-grid-media', function (gridMediaAtRule) { | ||
css.walkAtRules('gs-media', function (gridMediaAtRule) { | ||
walkDecls(gridMediaAtRule, gridMediaAtRule.params); | ||
@@ -120,4 +120,4 @@ gridMediaAtRule.each(function (rule) { | ||
// console.log(util.inspect(e.containers, false, null)); | ||
(0, _sGrid2.default)(e, rootCss, opts); | ||
gridAtRule.replaceWith(rootCss); | ||
(0, _gridSystem2.default)(e, rootCss, opts); | ||
gsAtRule.replaceWith(rootCss); | ||
}); | ||
@@ -124,0 +124,0 @@ }; |
{ | ||
"name": "postcss-grid-system", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A PostCSS plugin to create grids based on a fixed block width.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
47572
30
1342