postcss-flexbugs-fixes

WebJar for postcss-flexbugs-fixes

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

postcss-flexbugs-fixes
Last Version

Last Version

3.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

postcss-flexbugs-fixes
WebJar for postcss-flexbugs-fixes
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/luisrudge/postcss-flexbugs-fixes

Download postcss-flexbugs-fixes

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/postcss-flexbugs-fixes/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>postcss-flexbugs-fixes</artifactId>
    <version>3.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/postcss-flexbugs-fixes/
implementation 'org.webjars.npm:postcss-flexbugs-fixes:3.2.0'
// https://jarcasting.com/artifacts/org.webjars.npm/postcss-flexbugs-fixes/
implementation ("org.webjars.npm:postcss-flexbugs-fixes:3.2.0")
'org.webjars.npm:postcss-flexbugs-fixes:jar:3.2.0'
<dependency org="org.webjars.npm" name="postcss-flexbugs-fixes" rev="3.2.0">
  <artifact name="postcss-flexbugs-fixes" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='postcss-flexbugs-fixes', version='3.2.0')
)
libraryDependencies += "org.webjars.npm" % "postcss-flexbugs-fixes" % "3.2.0"
[org.webjars.npm/postcss-flexbugs-fixes "3.2.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : postcss jar [6.0.1,7)

Project Modules

There are no modules declared in this project.

PostCSS Flexbugs Fixes Build Status

PostCSS plugin This project tries to fix all of flexbug's issues.

bug 4

Input

.foo { flex: 1; }
.bar { flex: 1 1; }
.foz { flex: 1 1 0; }
.baz { flex: 1 1 0px; }

Output

.foo { flex: 1 1; }
.bar { flex: 1 1; }
.foz { flex: 1 1; }
.baz { flex: 1 1; }

bug 6

Input

.foo { flex: 1; }

Output

.foo { flex: 1 1 0%; }

This only fixes css classes that have the flex property set. To fix elements that are contained inside a flexbox container, use this global rule:

* {
    flex-shrink: 1;
}

bug 8.1.a

Input

.foo { flex: 1 0 calc(1vw - 1px); }

Output

.foo {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: calc(1vw - 1px);
}

Usage

postcss([require('postcss-flexbugs-fixes')]);

You can also disable bugs individually, possible keys bug4, bug6 and bug8a.

var plugin = require('postcss-flexbugs-fixes');
postcss([plugin({ bug6: false })]);

See PostCSS docs for examples for your environment.

Versions

Version
3.2.0