stylus-initial

0.1.1 • Public • Published

stylus-initial

Stylus plugin, polyfilling initial keyword.

Build Status NPM version Dependency Status


IMPORTANT NOTE

For now, a bug in nib make stylus rendering fails when passing initial or inherit value to opacity.
Until the bug is fixed, be sure to pass a 1 value to opacity instead of initial.


Installation

npm install stylus-initial

Usage

Include stylus-initial in your stylus stylesheets with

@import "stylus-initial" 

Then, simply use the keyword initial in your stylus files.

body
    width initial

Will results, in css :

body {
    widthauto;
}

All the initial values of css properties are stored in lib/values.json.
Feel free to submit a Pull Request to complete/correct the list.

Note: when a property doesn't have an initial value in the specs, or when the initial value depends on user agents, the value will stay at initial.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.
Add unit tests for any new or changed functionality.

Release History

  • Starting project (23/04/14)
  • Initial release : v0.1.1 (30/04/14)

License

(Un)licensed under the UNLICENSE

Package Sidebar

Install

npm i stylus-initial

Weekly Downloads

0

Version

0.1.1

License

none

Last publish

Collaborators

  • leny
  • krkn