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

postcss-flex-alias

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-flex-alias

easily write flex

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

PostCSS flex-alias Build Status

PostCSS plugin easily write flex

Documentation

Click on the Documentation to learn more

Explain

display: flex-[flex-flow][justify-content][align-items][align-content]

flex-flow

  • x: row nowrap
  • y: column nowrap
  • w: row wrap
  • m: column warp

justify-content

  • s: flex-start
  • a: space-around
  • b: space-between
  • c: center
  • e: flex-end

align-items

  • s: flex-start
  • b: baseline
  • c: center
  • e: flex-end
  • h: stretch

align-content

  • s: flex-start
  • a: space-around
  • b: space-between
  • c: center
  • e: flex-end

Example

// input
.foo {
  display: flex-xcc;
}
// output
.foo {
  display: flex;
  justify-content: center;
  align-items: center;
}

// input
.foo {
  display: flex-wbc;
}
// output
.foo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

Usage

postcss([ require('postcss-flex-alias') ])

// or postcss.config.js
plugins: {
  'postcss-flex-alias': {}
}

See PostCSS docs for examples for your environment.

Keywords

FAQs

Package last updated on 05 Apr 2019

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