meteor/meteor — pull request #175 by TrevorBurnham (2012-06-10 00:08:54+00:00)
Title: Adding Nib support to the Stylus package

This patch throws in [Nib](https://github.com/visionmedia/nib) to complement the existing Stylus package. Stylus requires this support to be added programmatically, but Nib is 100% opt-in: Just add

@import 'nib'

at the top of a `.styl` file to enable it. Once enabled, Nib automatically converts lines like

background: linear-gradient(top, hsl(55, 100%, 80%), hsl(55, 100%, 70%))

into the more widely-supported

background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff799), color-stop(1, #fff266));
background: -webkit-linear-gradient(top, #fff799 0%, #fff266 100%);
background: -moz-linear-gradient(top, #fff799 0%, #fff266 100%);
background: -o-linear-gradient(top, #fff799 0%, #fff266 100%);
background: -ms-linear-gradient(top, #fff799 0%, #fff266 100%);
background: linear-gradient(top, #fff799 0%, #fff266 100%);

I've also bumped Stylus to its latest version.

I apologize for the lack of tests, but I haven't been able to figure out a way to implement them in a browser-independent way. `getComputedStyle` won't give you a value for vendor-prefixed property names. Suffice to say that I've installed Meteor with this patch on my system and it's working smoothly.