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

postcss-propro

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-propro

PostCSS plugin adds and extends some properties

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

PostCSS Propro Build Status

PostCSS plugin adds and extends some properties

Documentation

Click on the Documentation to learn more

Example

box

// input
.foo {
  box: 100%;
  min-box: 5rem 2rem;
  max-box: 10rem;
}
// output
.foo {
  with: 100%;
  height: auto;
  min-width: 5rem;
  min-height: 2rem;
  max-width: 10rem;
  max-height: none;
}

font-cc

// input
.foo {
  font-cc: 2rem;
}
// output
.foo {
  text-align: center;
  line-height: 2rem;
}

font-hidden

// input
.foo {
  font-hidden: 1;
}
// output
.foo {
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
}

position

// input
.foo {
  position: fixed 0;
}
// output
.foo {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

position-cc

// input
.foo {
  position-cc: 10rem 4rem;
}
// output
.foo {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -2rem 0 0 -5rem;
}

arrow

// input
.foo {
  arrow: top-left 20px #f0f;
}

btn

// input
.foo {
  btn: 10rem 4rem 0.5rem #00e;
}

spread

// input
.foo {
  spread: top-bottom 100% 100% #da3;
}

Options

  // default color
  backgroundColor: '#0074d9', // for btn
  lineColor: '#ccc' // for arrow and spread

Usage

postcss([ require('postcss-propro') ])

// or postcss.config.js
plugins: {
  'postcss-propro': {
    backgroundColor: '#0074d9',
    lineColor: '#ccc'
  },
  'autoprefixer': {}
}

See PostCSS docs for examples for your environment.

Keywords

FAQs

Package last updated on 08 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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