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

postcss-button

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-button - npm Package Compare versions

Comparing version 0.3.13 to 0.3.14

29

lib/button.js

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

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