postcss-button
Advanced tools
Comparing version 0.3.13 to 0.3.14
@@ -1,7 +0,3 @@ | ||
"use strict"; | ||
const postcss = require('postcss'); | ||
var _postcss = _interopRequireDefault(require("postcss")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const selectorApply = (selector, modifiers, applyToParent, isClass) => { | ||
@@ -18,4 +14,3 @@ const apply = (sel, modifier) => { | ||
const ruleDisabled = (ruleSelectors, options) => { | ||
const rule = _postcss.default.rule(); | ||
const rule = postcss.rule(); | ||
rule.selectors = ruleSelectors.map(selector => { | ||
@@ -50,4 +45,3 @@ const selectorDefault = selectorApply(selector, [':disabled', ':disabled:active', ':disabled:hover'], options.classParent); | ||
const ruleHover = (ruleSelectors, options) => { | ||
const rule = _postcss.default.rule(); | ||
const rule = postcss.rule(); | ||
rule.selectors = ruleSelectors.map(selector => { | ||
@@ -84,4 +78,3 @@ const selectorDefault = selectorApply(selector, ':hover', options.classParent); | ||
const ruleActive = (ruleSelectors, options) => { | ||
const rule = _postcss.default.rule(); | ||
const rule = postcss.rule(); | ||
rule.selectors = ruleSelectors.map(selector => { | ||
@@ -118,24 +111,24 @@ const selectorDefault = selectorApply(selector, ':active', options.classParent); | ||
const declDefault = options => { | ||
const d1 = [_postcss.default.decl({ | ||
const d1 = [postcss.decl({ | ||
prop: 'cursor', | ||
value: 'pointer' | ||
}), _postcss.default.decl({ | ||
}), postcss.decl({ | ||
prop: 'text-decoration', | ||
value: 'none' | ||
}), _postcss.default.decl({ | ||
}), postcss.decl({ | ||
prop: 'border', | ||
value: 'none' | ||
}), _postcss.default.decl({ | ||
}), postcss.decl({ | ||
prop: 'display', | ||
value: 'inline-block' | ||
})]; | ||
const d2 = options.color ? _postcss.default.decl({ | ||
const d2 = options.color ? postcss.decl({ | ||
prop: 'color', | ||
value: options.color | ||
}) : ''; | ||
const d3 = options.backgroundColor ? _postcss.default.decl({ | ||
const d3 = options.backgroundColor ? postcss.decl({ | ||
prop: 'background-color', | ||
value: options.backgroundColor | ||
}) : ''; | ||
const d4 = options.borderWidth && options.borderWidth !== '0' ? [_postcss.default.decl({ | ||
const d4 = options.borderWidth && options.borderWidth !== '0' ? [postcss.decl({ | ||
prop: 'box-shadow', | ||
@@ -142,0 +135,0 @@ value: `inset 0 0 0 ${options.borderWidth} ${options.borderColor}` |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const postcss = require('postcss'); | ||
@@ -4,0 +2,0 @@ |
{ | ||
"name": "postcss-button", | ||
"version": "0.3.13", | ||
"version": "0.3.14", | ||
"description": "A PostCSS plugin to create buttons.", | ||
@@ -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
17570
252