5.0.2 • Published 4 years ago

postcss-flexbugs-fixes v5.0.2

Weekly downloads
5,372,759
License
MIT
Repository
github
Last release
4 years ago

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.

react-scriptsyoyuo-scriptsxmi-scripts@bsolution/dev@bsolution/fast@bsolution/scripts@proteria/react-scripts@uukit/scripts@savaleukhin/react-scripts@scentregroup/react-scripts@talesman/react-scriptsal-react-scriptscarrier_analcbbpa-clientcc-gram-demo@christensena/react-scripts-tsreact-wind-uismart-input-demobyteplayerkstick-react-scriptsdecorators-and-sass-react-scriptsplafform-scriptswatsize-test-react-scripts@psimk/react-scriptsglobal-martcomatch-mvp-debugging@darapti/darapti-react-scriptssv-uiswitch_mostqroda-sdkqroda-sdk-v1metaliquid-react-scriptsrockywu-uiblowpack@tomas2d/react-scriptsgry-ns-logingry-ns-publishjbojcic-react-scripts@paperlesspost/react-scripts@darkhm/essence-constructor-scripts@jvhellemondt/custom-react-scripts@st4rfox/electron-scriptssv-component-librarysv-component-library-1sv-component-library-2@straw-hat/neutrino@thuanpq/airvert-ui@xinyifly/react-scriptsreact-static-jurosh@ipavinthan/react-scriptsmio-cli-service@katalabut/react-scriptsandculturecode-react-scriptswebeetle-react-scriptsyadong-react@agney/react-scripts-tailwindzackmoreplay-react-scriptsgooapps-react-opsthefarm-react-scripts@wywk/headquaters-marketing-eventconcord-ui-plugin-react-scriptssebrae-boilerplatesebrae-react-scripts@cloudhuset/zd-app-react-scriptsidelic-react-scriptstest-app-6test-app-7tm-components-test@jvhellemondt/react-scriptsearthling-interactive-react-scriptsaerolito-nexthoogo-niuyapingreact-epic-image-sliderpejann-scriptsmy-custom-react-jwplayerinversify-react-scriptselectron-cra-scriptsecom-catalogkolbeinsson88-assignment5kolbeinsson88-stylesjs-advancedplatinion-paris-react-componentsreact-scripts-public-urlzula-bravosmartinput-reactstar-react-scripts@amajola/react-scriptsactive-react-scripts@priyanknamdeo16/react-scripts@ashversache/toasterreactor-scripts-for-laravelorbit-shared-components@packages-pragma/react-appreact-cleanupreact-components-common-libraryprinter-editorwasm-worker-react-scriptsoptym-react-scripts@viren.ratan/react-scripts-jsscrazymagi-react-scripts
5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.2.1

5 years ago

4.2.0

5 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.3.1

7 years ago

3.3.0

7 years ago

3.2.0

7 years ago

3.1.0

7 years ago

3.0.0

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago