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

postcss-grid-system

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-grid-system - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

lib/grid-system.js

18

lib/index.js

@@ -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": [

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