6.1.0 • Published 1 month ago

postcss-reduce-initial v6.1.0

Weekly downloads
8,482,452
License
MIT
Repository
github
Last release
1 month ago

postcss-reduce-initial

Reduce initial definitions to the actual initial value, where possible.

Install

With npm do:

npm install postcss-reduce-initial --save

Examples

See the data for more conversions. This data is courtesy of Mozilla.

Convert initial values

When the initial keyword is longer than the property value, it will be converted:

Input

h1 {
  min-width: initial;
}

Output

h1 {
  min-width: auto;
}

Convert values back to initial

When the initial value is smaller than the property value, it will be converted:

Input

h1 {
  transform-box: border-box;
}

Output

h1 {
  transform-box: initial;
}

This conversion is only applied when you supply a browsers list that all support the initial keyword; it's worth noting that Internet Explorer has no support.

API

reduceInitial(options)

options

ignore

Type: Array<String> Default: undefined

It contains the Array of properties that will be ignored while reducing its value to initial. Example : { ignore : ["min-height"] }

Usage

See the PostCSS documentation for examples for your environment.

Contributors

See CONTRIBUTORS.md.

License

This program uses a list of CSS properties derived from data maintained my the MDN team at Mozilla and licensed under the CC0 1.0 Universal Public Domain Dedication.

MIT © Ben Briggs

cssnano-preset-defaultvuedragdropuploadimagescloud-archive-s3bb-chat@fundefund/funde_ckgql_din_mod@olivervorasai/slidercogoportutils@infinitebrahmanuniverse/nolb-postcss-r@saaspe/componentsexpand-react-bridgesklif-ui-kitsklif-api@everything-registry/sub-chunk-2461@314oner_npm/universal-components-libraryp149-tabletest-popupssklif-uies-react-bridgeemr-tabulator-tablesera-ckeditor5easyplayer-mystyle-guide-mainex-ikon-components-library@tillschweneker/ckeditor5-build-strapi-wysiwyg-markdownflowable-bpmn-modelerfhir2garnish-uihot-zone-vuegenerator-bootstrap-boilerplate-templatehantil-cssjesusdemojulien-easy-modalkafirchain-tetrismggauhar@meysam213/react-leaflet@mayuriachewad/pickupbiz-npm-packagenewdemo1my-library-buttonmavectra@knooks/use-title@kommunicate/kommunicate-chatbot-plugin@leiyulf/gantt-task-react@kristoffertonning/vue-laravel-errors@junvary/quasar-ui-qcascader@juanaraneta/dept-central-lib-client@juanzenn/ckeditor5-custom-buildm2m-chartjs-plugin-crosshairlitepie-datepicker-gabemicroend-component@refactorpro/pixi-virtual-joystickprasadacm@percent/percent-api-hooksp147-tablep148-tablenois-react-toast@newsteam/postcss-configng-search-dropdown@ngxvoice/ngx-voicelistnernka-gantt-task-reactpickupbiz-npm-package@purnasatria/directus-extension-document-interface@pumpn/cssnano-preset-default@sak1sham/react-toc-highlight@ozancakir/ckeditor5-build-inline-balloon@oriduk/ckeditor5-rebuild-musicanote@oriduk/ckeditor5-rebuild-oriduknuxtpaginationsreactofy-css-library@tamland/postcss-configsequelcomponent@bezael-challenge/innoit-date-formatreact-lightbox-pack-18support@vasosolo/multiselectcombobox@aabelmann/ui-layer@zalastax/nolb-postcss-r@anonybit-modules/videoreconstruction@artiso-solutions/vue-html-to-paperained-ckeditor5@aristidenf/streak-counterap-vue-captcha@applaud/cssnano-preset-defaultappcharge-checkoutappcharge-checkout-reactjs-sdksearch-list-reactsearch-input-react@the91end/react-authreact-solid-gradient-picker@skeetboothppq/component-libraryreact-dottie@syedsadiqali11/emoji-mart@taymoon/ckeditor5-custom-build@vue-helper/vue-keep-alive@southcn/ckeditor5-build-inline@tomw2w/my-nuxt-layer@silver0542/directus-extension-cma-components-editorreact-ang-notifications-honey-comb-setup@stansaal/ckeditor5-custom-buildresponsis-gantt-task-react@zebracompany/f_editor
6.1.0

1 month ago

6.0.3

2 months ago

6.0.2

4 months ago

6.0.1

4 months ago

5.1.2

1 year ago

6.0.0

1 year ago

5.1.1

1 year ago

5.1.0

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

3 years ago

5.0.0

3 years ago

5.0.0-rc.2

3 years ago

5.0.0-rc.1

3 years ago

5.0.0-rc.0

3 years ago

4.0.3

5 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

4.0.0-rc.2

7 years ago

4.0.0-rc.0

7 years ago

1.0.1

7 years ago

1.0.0

8 years ago