stylus-initial
v0.1.1
Published
Stylus plugin, polyfilling `initial` keyword.
Downloads
2
Readme
stylus-initial
Stylus plugin, polyfilling
initial
keyword.
IMPORTANT NOTE
For now, a bug in nib make stylus rendering fails when passing
initial
orinherit
value toopacity
.
Until the bug is fixed, be sure to pass a1
value toopacity
instead ofinitial
.
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 {
width: auto;
}
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