stylus-source 0.15.4 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Rakefile +39 -0
- data/VERSION +1 -0
- data/lib/stylus/source.rb +1 -1
- data/stylus-source.gemspec +2 -2
- data/vendor/History.md +525 -0
- data/vendor/LICENSE +22 -0
- data/vendor/Makefile +20 -0
- data/vendor/Readme.md +127 -0
- data/vendor/bin/stylus +606 -0
- data/vendor/bm.js +22 -0
- data/vendor/docs/bifs.md +582 -0
- data/vendor/docs/comments.md +35 -0
- data/vendor/docs/compare.md +81 -0
- data/vendor/docs/conditionals.md +107 -0
- data/vendor/docs/css-style.md +77 -0
- data/vendor/docs/error-reporting.md +50 -0
- data/vendor/docs/escape.md +27 -0
- data/vendor/docs/executable.md +159 -0
- data/vendor/docs/firebug.md +60 -0
- data/vendor/docs/font-face.md +26 -0
- data/vendor/docs/functions.md +192 -0
- data/vendor/docs/functions.url.md +30 -0
- data/vendor/docs/gedit.md +24 -0
- data/vendor/docs/import.md +73 -0
- data/vendor/docs/interpolation.md +55 -0
- data/vendor/docs/introspection.md +39 -0
- data/vendor/docs/iteration.md +100 -0
- data/vendor/docs/js.md +136 -0
- data/vendor/docs/keyframes.md +120 -0
- data/vendor/docs/kwargs.md +35 -0
- data/vendor/docs/literal.md +16 -0
- data/vendor/docs/media.md +18 -0
- data/vendor/docs/middleware.md +73 -0
- data/vendor/docs/mixins.md +130 -0
- data/vendor/docs/operators.md +451 -0
- data/vendor/docs/selectors.md +131 -0
- data/vendor/docs/textmate.md +4 -0
- data/vendor/docs/vargs.md +84 -0
- data/vendor/docs/variables.md +78 -0
- data/vendor/editors/Stylus.tmbundle/Commands/Compile and Display CSS.tmCommand +33 -0
- data/vendor/editors/Stylus.tmbundle/Preferences/Comments.tmPreferences +36 -0
- data/vendor/editors/Stylus.tmbundle/Syntaxes/Stylus.tmLanguage +166 -0
- data/vendor/editors/Stylus.tmbundle/info.plist +10 -0
- data/vendor/editors/gedit/styl.lang +475 -0
- data/vendor/examples/arithmetic.js +12 -0
- data/vendor/examples/arithmetic.styl +29 -0
- data/vendor/examples/basic.js +12 -0
- data/vendor/examples/basic.styl +8 -0
- data/vendor/examples/builtins.js +12 -0
- data/vendor/examples/builtins.styl +56 -0
- data/vendor/examples/comments.js +11 -0
- data/vendor/examples/comments.styl +15 -0
- data/vendor/examples/compress.js +12 -0
- data/vendor/examples/conversions.js +12 -0
- data/vendor/examples/conversions.styl +34 -0
- data/vendor/examples/functions.js +12 -0
- data/vendor/examples/functions.styl +30 -0
- data/vendor/examples/gradients.js +13 -0
- data/vendor/examples/gradients.styl +8 -0
- data/vendor/examples/images/gopher.jpg +0 -0
- data/vendor/examples/images/gradient.svg +9 -0
- data/vendor/examples/images/jesus.gif +0 -0
- data/vendor/examples/images/sprite.gif +0 -0
- data/vendor/examples/images.js +20 -0
- data/vendor/examples/images.styl +15 -0
- data/vendor/examples/implicit-functions.js +12 -0
- data/vendor/examples/implicit-functions.styl +23 -0
- data/vendor/examples/import.js +12 -0
- data/vendor/examples/import.styl +11 -0
- data/vendor/examples/js-functions.js +55 -0
- data/vendor/examples/js-functions.styl +23 -0
- data/vendor/examples/literal.js +12 -0
- data/vendor/examples/literal.styl +8 -0
- data/vendor/examples/middleware.js +23 -0
- data/vendor/examples/mixins/box.styl +14 -0
- data/vendor/examples/mixins/gradients.styl +92 -0
- data/vendor/examples/nesting.js +12 -0
- data/vendor/examples/nesting.styl +14 -0
- data/vendor/examples/variables.js +12 -0
- data/vendor/examples/variables.styl +24 -0
- data/vendor/index.js +2 -0
- data/{lib/stylus → vendor/lib}/colors.js +0 -0
- data/{lib/stylus → vendor/lib}/convert/css.js +0 -0
- data/{lib/stylus → vendor/lib}/errors.js +0 -0
- data/{lib/stylus → vendor/lib}/functions/image.js +0 -0
- data/{lib/stylus → vendor/lib}/functions/index.js +0 -0
- data/{lib/stylus → vendor/lib}/functions/index.styl +11 -2
- data/{lib/stylus → vendor/lib}/functions/url.js +0 -0
- data/{lib/stylus → vendor/lib}/lexer.js +14 -1
- data/{lib/stylus → vendor/lib}/middleware.js +5 -1
- data/{lib/stylus → vendor/lib}/nodes/arguments.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/binop.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/block.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/boolean.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/call.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/charset.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/comment.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/each.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/expression.js +32 -0
- data/{lib/stylus → vendor/lib}/nodes/fontface.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/function.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/group.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/hsla.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/ident.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/if.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/import.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/index.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/jsliteral.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/keyframes.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/literal.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/media.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/node.js +14 -0
- data/{lib/stylus → vendor/lib}/nodes/null.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/page.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/params.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/property.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/return.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/rgba.js +4 -2
- data/{lib/stylus → vendor/lib}/nodes/root.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/selector.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/string.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/ternary.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/unaryop.js +0 -0
- data/{lib/stylus → vendor/lib}/nodes/unit.js +0 -0
- data/{lib/stylus → vendor/lib}/parser.js +17 -2
- data/{lib/stylus → vendor/lib}/renderer.js +0 -0
- data/{lib/stylus → vendor/lib}/stack/frame.js +0 -0
- data/{lib/stylus → vendor/lib}/stack/index.js +0 -0
- data/{lib/stylus → vendor/lib}/stack/scope.js +0 -0
- data/{lib/stylus → vendor/lib}/stylus.js +1 -1
- data/{lib/stylus → vendor/lib}/token.js +0 -0
- data/{lib/stylus → vendor/lib}/utils.js +0 -0
- data/{lib/stylus → vendor/lib}/visitor/compiler.js +1 -0
- data/{lib/stylus → vendor/lib}/visitor/evaluator.js +9 -3
- data/{lib/stylus → vendor/lib}/visitor/index.js +0 -0
- data/{lib → vendor}/node_modules/cssom/Jakefile +0 -0
- data/{lib → vendor}/node_modules/cssom/README.mdown +0 -0
- data/{lib → vendor}/node_modules/cssom/Rakefile +0 -0
- data/{lib → vendor}/node_modules/cssom/docs/bar.css +0 -0
- data/{lib → vendor}/node_modules/cssom/docs/demo.css +0 -0
- data/{lib → vendor}/node_modules/cssom/docs/foo.css +0 -0
- data/{lib → vendor}/node_modules/cssom/docs/parse.html +0 -0
- data/{lib → vendor}/node_modules/cssom/docs/parse2.html +0 -0
- data/{lib → vendor}/node_modules/cssom/index.html +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/CSSImportRule.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/CSSMediaRule.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/CSSOM.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/CSSRule.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/CSSStyleDeclaration.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/CSSStyleRule.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/CSSStyleSheet.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/MediaList.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/StyleSheet.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/clone.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/index.js +0 -0
- data/{lib → vendor}/node_modules/cssom/lib/parse.js +0 -0
- data/{lib → vendor}/node_modules/cssom/media.html +0 -0
- data/{lib → vendor}/node_modules/cssom/package.json +0 -0
- data/{lib → vendor}/node_modules/cssom/plugins/toHTML.js +0 -0
- data/{lib → vendor}/node_modules/cssom/server/index.html +0 -0
- data/{lib → vendor}/node_modules/cssom/server/index.js +0 -0
- data/{lib → vendor}/node_modules/cssom/shorthands.html +0 -0
- data/{lib → vendor}/node_modules/cssom/test/CSSStyleDeclaration.test.js +0 -0
- data/{lib → vendor}/node_modules/cssom/test/CSSStyleRule.test.js +0 -0
- data/{lib → vendor}/node_modules/cssom/test/CSSStyleSheet.test.js +0 -0
- data/{lib → vendor}/node_modules/cssom/test/MediaList.test.js +0 -0
- data/{lib → vendor}/node_modules/cssom/test/clone.test.js +0 -0
- data/{lib → vendor}/node_modules/cssom/test/fixtures/dummy.css +0 -0
- data/{lib → vendor}/node_modules/cssom/test/helper.js +0 -0
- data/{lib → vendor}/node_modules/cssom/test/index.html +0 -0
- data/{lib → vendor}/node_modules/cssom/test/parse.test.js +0 -0
- data/{lib → vendor}/node_modules/cssom/test/vendor/qunit.css +0 -0
- data/{lib → vendor}/node_modules/cssom/test/vendor/qunit.js +0 -0
- data/{lib → vendor}/node_modules/growl/History.md +0 -0
- data/{lib → vendor}/node_modules/growl/Readme.md +0 -0
- data/{lib → vendor}/node_modules/growl/lib/growl.js +0 -0
- data/{lib → vendor}/node_modules/growl/package.json +0 -0
- data/{lib → vendor}/node_modules/growl/test.js +0 -0
- data/vendor/node_modules/mkdirp/LICENSE +21 -0
- data/vendor/node_modules/mkdirp/README.markdown +21 -0
- data/vendor/node_modules/mkdirp/examples/pow.js +6 -0
- data/vendor/node_modules/mkdirp/examples/pow.js.orig +6 -0
- data/vendor/node_modules/mkdirp/examples/pow.js.rej +19 -0
- data/vendor/node_modules/mkdirp/index.js +20 -0
- data/vendor/node_modules/mkdirp/package.json +23 -0
- data/vendor/node_modules/mkdirp/test/mkdirp.js +28 -0
- data/vendor/node_modules/mkdirp/test/race.js +41 -0
- data/vendor/node_modules/mkdirp/test/rel.js +32 -0
- data/vendor/package.json +16 -0
- data/vendor/test/cases/arithmetic.color.css +44 -0
- data/vendor/test/cases/arithmetic.color.styl +48 -0
- data/vendor/test/cases/arithmetic.css +23 -0
- data/vendor/test/cases/arithmetic.styl +30 -0
- data/vendor/test/cases/arithmetic.unary.css +16 -0
- data/vendor/test/cases/arithmetic.unary.styl +16 -0
- data/vendor/test/cases/atscope.css +21 -0
- data/vendor/test/cases/atscope.styl +23 -0
- data/vendor/test/cases/bifs.add-property.css +21 -0
- data/vendor/test/cases/bifs.add-property.styl +48 -0
- data/vendor/test/cases/bifs.components.css +9 -0
- data/vendor/test/cases/bifs.components.styl +9 -0
- data/vendor/test/cases/bifs.dark.css +5 -0
- data/vendor/test/cases/bifs.dark.styl +4 -0
- data/vendor/test/cases/bifs.darken.css +8 -0
- data/vendor/test/cases/bifs.darken.styl +9 -0
- data/vendor/test/cases/bifs.fade.css +6 -0
- data/vendor/test/cases/bifs.fade.styl +6 -0
- data/vendor/test/cases/bifs.image-size.css +9 -0
- data/vendor/test/cases/bifs.image-size.styl +16 -0
- data/vendor/test/cases/bifs.join.css +18 -0
- data/vendor/test/cases/bifs.join.styl +21 -0
- data/vendor/test/cases/bifs.last.css +5 -0
- data/vendor/test/cases/bifs.last.styl +6 -0
- data/vendor/test/cases/bifs.length.css +10 -0
- data/vendor/test/cases/bifs.length.styl +18 -0
- data/vendor/test/cases/bifs.light.css +5 -0
- data/vendor/test/cases/bifs.light.styl +4 -0
- data/vendor/test/cases/bifs.lighten.css +14 -0
- data/vendor/test/cases/bifs.lighten.styl +14 -0
- data/vendor/test/cases/bifs.lookup.css +3 -0
- data/vendor/test/cases/bifs.lookup.styl +8 -0
- data/vendor/test/cases/bifs.match.css +4 -0
- data/vendor/test/cases/bifs.match.styl +9 -0
- data/vendor/test/cases/bifs.opposite-position.css +8 -0
- data/vendor/test/cases/bifs.opposite-position.styl +9 -0
- data/vendor/test/cases/bifs.push.css +25 -0
- data/vendor/test/cases/bifs.push.styl +48 -0
- data/vendor/test/cases/bifs.rgba.css +5 -0
- data/vendor/test/cases/bifs.rgba.styl +4 -0
- data/vendor/test/cases/bifs.s.css +11 -0
- data/vendor/test/cases/bifs.s.styl +12 -0
- data/vendor/test/cases/bifs.type.css +11 -0
- data/vendor/test/cases/bifs.type.styl +12 -0
- data/vendor/test/cases/bifs.unit.css +6 -0
- data/vendor/test/cases/bifs.unit.styl +5 -0
- data/vendor/test/cases/bifs.unquote.css +5 -0
- data/vendor/test/cases/bifs.unquote.styl +8 -0
- data/vendor/test/cases/bifs.url.css +11 -0
- data/vendor/test/cases/bifs.url.styl +15 -0
- data/vendor/test/cases/coercion.css +6 -0
- data/vendor/test/cases/coercion.styl +5 -0
- data/vendor/test/cases/comments.css +18 -0
- data/vendor/test/cases/comments.styl +28 -0
- data/vendor/test/cases/compress.comments.css +2 -0
- data/vendor/test/cases/compress.comments.styl +5 -0
- data/vendor/test/cases/compress.units.css +2 -0
- data/vendor/test/cases/compress.units.styl +18 -0
- data/vendor/test/cases/conditional-assignment.css +4 -0
- data/vendor/test/cases/conditional-assignment.styl +9 -0
- data/vendor/test/cases/control.blueprint.ie.css +126 -0
- data/vendor/test/cases/control.blueprint.ie.styl +36 -0
- data/vendor/test/cases/control.blueprint.screen.css +1103 -0
- data/vendor/test/cases/control.blueprint.screen.styl +265 -0
- data/vendor/test/cases/control.boilerplate.css +473 -0
- data/vendor/test/cases/control.boilerplate.styl +265 -0
- data/vendor/test/cases/css.functions.single-line.css +9 -0
- data/vendor/test/cases/css.functions.single-line.styl +13 -0
- data/vendor/test/cases/css.if.css +8 -0
- data/vendor/test/cases/css.if.styl +21 -0
- data/vendor/test/cases/css.keyframes.css +57 -0
- data/vendor/test/cases/css.keyframes.styl +48 -0
- data/vendor/test/cases/css.large.css +172 -0
- data/vendor/test/cases/css.large.styl +172 -0
- data/vendor/test/cases/css.media.css +15 -0
- data/vendor/test/cases/css.media.styl +17 -0
- data/vendor/test/cases/css.mixins.braces.css +38 -0
- data/vendor/test/cases/css.mixins.braces.styl +53 -0
- data/vendor/test/cases/css.mixins.css +38 -0
- data/vendor/test/cases/css.mixins.root.css +26 -0
- data/vendor/test/cases/css.mixins.root.styl +25 -0
- data/vendor/test/cases/css.mixins.root.wonky.css +26 -0
- data/vendor/test/cases/css.mixins.root.wonky.styl +17 -0
- data/vendor/test/cases/css.mixins.styl +47 -0
- data/vendor/test/cases/css.selector.interpolation.css +91 -0
- data/vendor/test/cases/css.selector.interpolation.styl +90 -0
- data/vendor/test/cases/css.selectors.css +38 -0
- data/vendor/test/cases/css.selectors.styl +53 -0
- data/vendor/test/cases/css.whitespace.css +37 -0
- data/vendor/test/cases/css.whitespace.styl +38 -0
- data/vendor/test/cases/escape.css +4 -0
- data/vendor/test/cases/escape.styl +4 -0
- data/vendor/test/cases/fontface.css +4 -0
- data/vendor/test/cases/fontface.styl +5 -0
- data/vendor/test/cases/for.complex.css +44 -0
- data/vendor/test/cases/for.complex.styl +28 -0
- data/vendor/test/cases/for.css +52 -0
- data/vendor/test/cases/for.function.css +20 -0
- data/vendor/test/cases/for.function.styl +51 -0
- data/vendor/test/cases/for.styl +44 -0
- data/vendor/test/cases/function.arguments.css +4 -0
- data/vendor/test/cases/function.arguments.styl +14 -0
- data/vendor/test/cases/function.literals.css +6 -0
- data/vendor/test/cases/function.literals.styl +12 -0
- data/vendor/test/cases/functions.arg-calls.css +3 -0
- data/vendor/test/cases/functions.arg-calls.styl +9 -0
- data/vendor/test/cases/functions.call.css +4 -0
- data/vendor/test/cases/functions.call.styl +7 -0
- data/vendor/test/cases/functions.css +11 -0
- data/vendor/test/cases/functions.defaults.css +15 -0
- data/vendor/test/cases/functions.defaults.styl +30 -0
- data/vendor/test/cases/functions.multi-line.css +9 -0
- data/vendor/test/cases/functions.multi-line.styl +25 -0
- data/vendor/test/cases/functions.multiple-calls.css +13 -0
- data/vendor/test/cases/functions.multiple-calls.styl +26 -0
- data/vendor/test/cases/functions.nested-calls.css +3 -0
- data/vendor/test/cases/functions.nested-calls.styl +9 -0
- data/vendor/test/cases/functions.nested.css +10 -0
- data/vendor/test/cases/functions.nested.styl +37 -0
- data/vendor/test/cases/functions.property.css +10 -0
- data/vendor/test/cases/functions.property.styl +11 -0
- data/vendor/test/cases/functions.return.css +15 -0
- data/vendor/test/cases/functions.return.each.css +10 -0
- data/vendor/test/cases/functions.return.each.styl +23 -0
- data/vendor/test/cases/functions.return.styl +86 -0
- data/vendor/test/cases/functions.styl +34 -0
- data/vendor/test/cases/functions.variable.css +9 -0
- data/vendor/test/cases/functions.variable.ident.css +3 -0
- data/vendor/test/cases/functions.variable.ident.styl +11 -0
- data/vendor/test/cases/functions.variable.styl +27 -0
- data/vendor/test/cases/hack.star.css +27 -0
- data/vendor/test/cases/hack.star.styl +37 -0
- data/vendor/test/cases/if.css +43 -0
- data/vendor/test/cases/if.else.css +6 -0
- data/vendor/test/cases/if.else.styl +16 -0
- data/vendor/test/cases/if.mixin.css +7 -0
- data/vendor/test/cases/if.mixin.styl +24 -0
- data/vendor/test/cases/if.postfix.css +61 -0
- data/vendor/test/cases/if.postfix.styl +110 -0
- data/vendor/test/cases/if.selectors.css +16 -0
- data/vendor/test/cases/if.selectors.styl +22 -0
- data/vendor/test/cases/if.styl +99 -0
- data/vendor/test/cases/import.basic/a.styl +5 -0
- data/vendor/test/cases/import.basic/b.styl +5 -0
- data/vendor/test/cases/import.basic/c.styl +3 -0
- data/vendor/test/cases/import.basic.css +11 -0
- data/vendor/test/cases/import.basic.styl +4 -0
- data/vendor/test/cases/import.complex/a.styl +4 -0
- data/vendor/test/cases/import.complex/c.styl +2 -0
- data/vendor/test/cases/import.complex/nested/b.styl +4 -0
- data/vendor/test/cases/import.complex.css +9 -0
- data/vendor/test/cases/import.complex.styl +1 -0
- data/vendor/test/cases/import.index/vendor/a.styl +2 -0
- data/vendor/test/cases/import.index/vendor/b.styl +2 -0
- data/vendor/test/cases/import.index/vendor/c.styl +2 -0
- data/vendor/test/cases/import.index/vendor/index.styl +4 -0
- data/vendor/test/cases/import.index.css +9 -0
- data/vendor/test/cases/import.index.styl +2 -0
- data/vendor/test/cases/import.literal.css +2 -0
- data/vendor/test/cases/import.literal.styl +3 -0
- data/vendor/test/cases/import.mixins.css +7 -0
- data/vendor/test/cases/import.mixins.styl +9 -0
- data/vendor/test/cases/import.ordering/five.styl +2 -0
- data/vendor/test/cases/import.ordering/four.styl +4 -0
- data/vendor/test/cases/import.ordering/two.styl +2 -0
- data/vendor/test/cases/import.ordering.css +15 -0
- data/vendor/test/cases/import.ordering.styl +12 -0
- data/vendor/test/cases/important.css +6 -0
- data/vendor/test/cases/important.styl +6 -0
- data/vendor/test/cases/interpolation.properties.css +40 -0
- data/vendor/test/cases/interpolation.properties.styl +56 -0
- data/vendor/test/cases/introspection.css +7 -0
- data/vendor/test/cases/introspection.styl +14 -0
- data/vendor/test/cases/jquery.css +3 -0
- data/vendor/test/cases/jquery.styl +5 -0
- data/vendor/test/cases/keyframes.css +9 -0
- data/vendor/test/cases/keyframes.fabrication.css +18 -0
- data/vendor/test/cases/keyframes.fabrication.defaults.css +45 -0
- data/vendor/test/cases/keyframes.fabrication.defaults.styl +9 -0
- data/vendor/test/cases/keyframes.fabrication.styl +11 -0
- data/vendor/test/cases/keyframes.styl +6 -0
- data/vendor/test/cases/kwargs.css +63 -0
- data/vendor/test/cases/kwargs.styl +74 -0
- data/vendor/test/cases/list.css +3 -0
- data/vendor/test/cases/list.styl +3 -0
- data/vendor/test/cases/literal.color.css +6 -0
- data/vendor/test/cases/literal.color.styl +5 -0
- data/vendor/test/cases/literal.css +10 -0
- data/vendor/test/cases/literal.styl +18 -0
- data/vendor/test/cases/media.css +14 -0
- data/vendor/test/cases/media.styl +11 -0
- data/vendor/test/cases/mixin.conditional.css +19 -0
- data/vendor/test/cases/mixin.conditional.styl +36 -0
- data/vendor/test/cases/mixin.order.conditional.css +11 -0
- data/vendor/test/cases/mixin.order.conditional.styl +20 -0
- data/vendor/test/cases/mixin.order.css +9 -0
- data/vendor/test/cases/mixin.order.nested.css +9 -0
- data/vendor/test/cases/mixin.order.nested.styl +21 -0
- data/vendor/test/cases/mixin.order.styl +20 -0
- data/vendor/test/cases/mixins/box.styl +11 -0
- data/vendor/test/cases/mixins.complex.css +30 -0
- data/vendor/test/cases/mixins.complex.fix-to.css +15 -0
- data/vendor/test/cases/mixins.complex.fix-to.styl +28 -0
- data/vendor/test/cases/mixins.complex.styl +41 -0
- data/vendor/test/cases/mixins.conditional.css +3 -0
- data/vendor/test/cases/mixins.conditional.styl +8 -0
- data/vendor/test/cases/mixins.nested.css +7 -0
- data/vendor/test/cases/mixins.nested.selectors.css +21 -0
- data/vendor/test/cases/mixins.nested.selectors.styl +31 -0
- data/vendor/test/cases/mixins.nested.styl +14 -0
- data/vendor/test/cases/mixins.order.2.css +11 -0
- data/vendor/test/cases/mixins.order.2.styl +16 -0
- data/vendor/test/cases/mixins.reset.css +75 -0
- data/vendor/test/cases/mixins.reset.styl +27 -0
- data/vendor/test/cases/mixins.return.css +4 -0
- data/vendor/test/cases/mixins.return.styl +8 -0
- data/vendor/test/cases/mixins.root.css +3 -0
- data/vendor/test/cases/mixins.root.styl +5 -0
- data/vendor/test/cases/operator.range.css +15 -0
- data/vendor/test/cases/operator.range.styl +23 -0
- data/vendor/test/cases/operators.assignment.function.css +15 -0
- data/vendor/test/cases/operators.assignment.function.styl +34 -0
- data/vendor/test/cases/operators.assignment.mixin.css +15 -0
- data/vendor/test/cases/operators.assignment.mixin.styl +39 -0
- data/vendor/test/cases/operators.assignment.root.css +25 -0
- data/vendor/test/cases/operators.assignment.root.styl +55 -0
- data/vendor/test/cases/operators.complex.css +9 -0
- data/vendor/test/cases/operators.complex.styl +32 -0
- data/vendor/test/cases/operators.css +40 -0
- data/vendor/test/cases/operators.equality.css +55 -0
- data/vendor/test/cases/operators.equality.styl +55 -0
- data/vendor/test/cases/operators.in.css +37 -0
- data/vendor/test/cases/operators.in.styl +51 -0
- data/vendor/test/cases/operators.mixins.css +10 -0
- data/vendor/test/cases/operators.mixins.styl +25 -0
- data/vendor/test/cases/operators.precedence.css +51 -0
- data/vendor/test/cases/operators.precedence.styl +82 -0
- data/vendor/test/cases/operators.styl +96 -0
- data/vendor/test/cases/operators.subscript.assign.css +21 -0
- data/vendor/test/cases/operators.subscript.assign.styl +45 -0
- data/vendor/test/cases/operators.subscript.css +59 -0
- data/vendor/test/cases/operators.subscript.range.css +14 -0
- data/vendor/test/cases/operators.subscript.range.styl +15 -0
- data/vendor/test/cases/operators.subscript.styl +81 -0
- data/vendor/test/cases/page.css +13 -0
- data/vendor/test/cases/page.styl +13 -0
- data/vendor/test/cases/parent.css +32 -0
- data/vendor/test/cases/parent.styl +33 -0
- data/vendor/test/cases/properties.colons.css +8 -0
- data/vendor/test/cases/properties.colons.styl +10 -0
- data/vendor/test/cases/properties.css +4 -0
- data/vendor/test/cases/properties.one-line.css +10 -0
- data/vendor/test/cases/properties.one-line.styl +11 -0
- data/vendor/test/cases/properties.styl +4 -0
- data/vendor/test/cases/property-access.css +48 -0
- data/vendor/test/cases/property-access.styl +62 -0
- data/vendor/test/cases/regression.107.lookup-failure.css +12 -0
- data/vendor/test/cases/regression.107.lookup-failure.styl +13 -0
- data/vendor/test/cases/regression.127.css +3 -0
- data/vendor/test/cases/regression.127.styl +2 -0
- data/vendor/test/cases/regression.130.css +16 -0
- data/vendor/test/cases/regression.130.styl +6 -0
- data/vendor/test/cases/regression.131.css +7 -0
- data/vendor/test/cases/regression.131.styl +2 -0
- data/vendor/test/cases/regression.137.css +7 -0
- data/vendor/test/cases/regression.137.styl +7 -0
- data/vendor/test/cases/regression.139.css +5 -0
- data/vendor/test/cases/regression.139.styl +21 -0
- data/vendor/test/cases/regression.142.css +39 -0
- data/vendor/test/cases/regression.142.styl +54 -0
- data/vendor/test/cases/regression.146.css +30 -0
- data/vendor/test/cases/regression.146.styl +31 -0
- data/vendor/test/cases/regression.153.css +8 -0
- data/vendor/test/cases/regression.153.styl +9 -0
- data/vendor/test/cases/regression.154.css +8 -0
- data/vendor/test/cases/regression.154.styl +14 -0
- data/vendor/test/cases/regression.156.css +4 -0
- data/vendor/test/cases/regression.156.styl +6 -0
- data/vendor/test/cases/regression.212.css +15 -0
- data/vendor/test/cases/regression.212.styl +14 -0
- data/vendor/test/cases/regression.216.css +10 -0
- data/vendor/test/cases/regression.216.styl +8 -0
- data/vendor/test/cases/regression.220.css +5 -0
- data/vendor/test/cases/regression.220.styl +5 -0
- data/vendor/test/cases/regression.229.css +12 -0
- data/vendor/test/cases/regression.229.styl +9 -0
- data/vendor/test/cases/regression.233.css +6 -0
- data/vendor/test/cases/regression.233.styl +7 -0
- data/vendor/test/cases/regression.235.css +11 -0
- data/vendor/test/cases/regression.235.styl +13 -0
- data/vendor/test/cases/regression.243.css +3 -0
- data/vendor/test/cases/regression.243.styl +4 -0
- data/vendor/test/cases/regression.244.css +3 -0
- data/vendor/test/cases/regression.244.styl +3 -0
- data/vendor/test/cases/regression.247.css +6 -0
- data/vendor/test/cases/regression.247.styl +6 -0
- data/vendor/test/cases/regression.248.compressed.css +4 -0
- data/vendor/test/cases/regression.248.compressed.styl +10 -0
- data/vendor/test/cases/regression.252.css +13 -0
- data/vendor/test/cases/regression.252.styl +13 -0
- data/vendor/test/cases/regression.260.css +6 -0
- data/vendor/test/cases/regression.260.styl +6 -0
- data/vendor/test/cases/regression.267.css +3 -0
- data/vendor/test/cases/regression.267.styl +3 -0
- data/vendor/test/cases/regression.270.css +5 -0
- data/vendor/test/cases/regression.270.styl +7 -0
- data/vendor/test/cases/regression.272.css +11 -0
- data/vendor/test/cases/regression.272.styl +17 -0
- data/vendor/test/cases/regression.274.css +14 -0
- data/vendor/test/cases/regression.274.styl +16 -0
- data/vendor/test/cases/regression.360.css +19 -0
- data/vendor/test/cases/regression.360.styl +1 -0
- data/vendor/test/cases/regression.368.css +4 -0
- data/vendor/test/cases/regression.368.styl +3 -0
- data/vendor/test/cases/regression.379.css +6 -0
- data/vendor/test/cases/regression.379.styl +10 -0
- data/vendor/test/cases/regression.380.css +8 -0
- data/vendor/test/cases/regression.380.styl +14 -0
- data/vendor/test/cases/regression.388.css +2 -0
- data/vendor/test/cases/regression.388.styl +6 -0
- data/vendor/test/cases/regression.415.css +5 -0
- data/vendor/test/cases/regression.415.styl +3 -0
- data/vendor/test/cases/regression.420.css +21 -0
- data/vendor/test/cases/regression.420.styl +29 -0
- data/vendor/test/cases/reset.css +70 -0
- data/vendor/test/cases/reset.styl +16 -0
- data/vendor/test/cases/rule.charset.css +1 -0
- data/vendor/test/cases/rule.charset.styl +2 -0
- data/vendor/test/cases/rulset.css +4 -0
- data/vendor/test/cases/rulset.newline.css +5 -0
- data/vendor/test/cases/rulset.newline.styl +5 -0
- data/vendor/test/cases/rulset.styl +3 -0
- data/vendor/test/cases/scope.complex.css +10 -0
- data/vendor/test/cases/scope.complex.styl +16 -0
- data/vendor/test/cases/scope.css +5 -0
- data/vendor/test/cases/scope.nested.css +9 -0
- data/vendor/test/cases/scope.nested.styl +10 -0
- data/vendor/test/cases/scope.styl +12 -0
- data/vendor/test/cases/selector.interpolation.css +57 -0
- data/vendor/test/cases/selector.interpolation.styl +45 -0
- data/vendor/test/cases/selectors.complex.css +28 -0
- data/vendor/test/cases/selectors.complex.styl +27 -0
- data/vendor/test/cases/selectors.css +50 -0
- data/vendor/test/cases/selectors.nested.comma.css +9 -0
- data/vendor/test/cases/selectors.nested.comma.styl +8 -0
- data/vendor/test/cases/selectors.nested.css +34 -0
- data/vendor/test/cases/selectors.nested.styl +33 -0
- data/vendor/test/cases/selectors.pseudo.css +27 -0
- data/vendor/test/cases/selectors.pseudo.elements.css +26 -0
- data/vendor/test/cases/selectors.pseudo.elements.styl +29 -0
- data/vendor/test/cases/selectors.pseudo.styl +24 -0
- data/vendor/test/cases/selectors.styl +46 -0
- data/vendor/test/cases/self-assignment.css +3 -0
- data/vendor/test/cases/self-assignment.styl +4 -0
- data/vendor/test/cases/vargs.call.css +24 -0
- data/vendor/test/cases/vargs.call.styl +40 -0
- data/vendor/test/cases/vargs.css +30 -0
- data/vendor/test/cases/vargs.styl +49 -0
- data/vendor/test/cases/variable.css +3 -0
- data/vendor/test/cases/variable.styl +4 -0
- data/vendor/test/cases/variables.css +12 -0
- data/vendor/test/cases/variables.styl +17 -0
- data/vendor/test/images/gif +0 -0
- data/vendor/test/images/squirrel.jpeg +0 -0
- data/vendor/test/images/tux.png +0 -0
- data/vendor/test/run.js +151 -0
- data/vendor/testing/index.html +56 -0
- data/vendor/testing/stylus.js +146 -0
- data/vendor/testing/test-js.js +23 -0
- data/vendor/testing/test.css +8 -0
- data/vendor/testing/test.js +23 -0
- data/vendor/testing/test.styl +75 -0
- data/vendor/testing/utils.styl +6 -0
- data/vendor/testing/vendor.styl +3 -0
- metadata +565 -112
- data/.DS_Store +0 -0
- data/lib/.DS_Store +0 -0
- data/lib/node_modules/cssom/.idea/CSSOM.iml +0 -9
- data/lib/node_modules/cssom/.idea/dictionaries/nv.xml +0 -3
- data/lib/node_modules/cssom/.idea/encodings.xml +0 -5
- data/lib/node_modules/cssom/.idea/misc.xml +0 -17
- data/lib/node_modules/cssom/.idea/modules.xml +0 -9
- data/lib/node_modules/cssom/.idea/projectCodeStyle.xml +0 -82
- data/lib/node_modules/cssom/.idea/vcs.xml +0 -8
- data/lib/node_modules/cssom/.idea/workspace.xml +0 -467
- data/lib/node_modules/cssom/.livereload +0 -19
- data/lib/node_modules/cssom/docs/.livereload +0 -19
data/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
vendor
|
data/Rakefile
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
require 'bundler'
|
|
2
|
+
require 'multi_json'
|
|
3
|
+
require 'open-uri'
|
|
4
|
+
Bundler::GemHelper.install_tasks
|
|
5
|
+
|
|
6
|
+
def say(line)
|
|
7
|
+
puts " \e[32m=>\e[0m #{line}"
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def execute(banner, command)
|
|
11
|
+
say(banner + "...")
|
|
12
|
+
output = `#{command} 2>&1`
|
|
13
|
+
unless $?.success?
|
|
14
|
+
$stderr.puts(" \e[31mOops, something went wrong!\e[0m\n\n")
|
|
15
|
+
$stderr.puts(output)
|
|
16
|
+
exit(1)
|
|
17
|
+
end
|
|
18
|
+
output
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
desc "Downloads stylus into './vendor' and checks the latest released tag"
|
|
22
|
+
task :update do
|
|
23
|
+
raw = open('http://registry.npmjs.org/stylus') { |io| io.binmode.read }
|
|
24
|
+
metadata = MultiJson.decode(raw)
|
|
25
|
+
current_version = File.read('VERSION')
|
|
26
|
+
version = metadata['dist-tags']['latest']
|
|
27
|
+
tarball = metadata['versions'][version]['dist']['tarball']
|
|
28
|
+
|
|
29
|
+
say "Updating stylus source from #{current_version} to #{version}"
|
|
30
|
+
|
|
31
|
+
execute 'cleaning up old files', 'rm -rf vendor'
|
|
32
|
+
execute "download stylus #{version}", "wget #{tarball} -O stylus.tgz"
|
|
33
|
+
execute "upacking stylus #{version}", 'tar -zxvf stylus.tgz'
|
|
34
|
+
execute 'cleaning up', 'rm stylus.tgz package/.npmignore'
|
|
35
|
+
execute 'updating stylus dependencies', 'mv package vendor && cd vendor && npm install .'
|
|
36
|
+
say 'updating VERSION file'
|
|
37
|
+
File.open('VERSION', 'w') { |file| file.write(version) }
|
|
38
|
+
say 'done!'
|
|
39
|
+
end
|
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.17.0
|
data/lib/stylus/source.rb
CHANGED
data/stylus-source.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = "stylus-source"
|
|
5
|
-
s.version =
|
|
5
|
+
s.version = File.read('VERSION')
|
|
6
6
|
s.platform = Gem::Platform::RUBY
|
|
7
7
|
s.authors = ["TJ Holowaychuk"]
|
|
8
8
|
s.email = ["tj@vision-media.ca"]
|
|
@@ -10,6 +10,6 @@ Gem::Specification.new do |s|
|
|
|
10
10
|
s.summary = %q{JS source code for Stylus.js}
|
|
11
11
|
s.description = %q{Robust, expressive, and feature-rich CSS superset. This gem packages up stylus for use with the stylus gem.}
|
|
12
12
|
|
|
13
|
-
s.files = `git ls-files`.split("\n")
|
|
13
|
+
s.files = `git ls-files`.split("\n") + Dir["vendor/**/*"]
|
|
14
14
|
s.require_paths = ["lib"]
|
|
15
15
|
end
|
data/vendor/History.md
ADDED
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
|
|
2
|
+
0.17.0 / 2011-09-30
|
|
3
|
+
==================
|
|
4
|
+
|
|
5
|
+
* Added `@scope <selector>` feature to scope all subsequent selectors
|
|
6
|
+
* Added list equality to the `!=` operator
|
|
7
|
+
* Added list equality to the `==` operator
|
|
8
|
+
* Added mkdir -p support to the middleware
|
|
9
|
+
* Changed: `!` coerces expression not the first value
|
|
10
|
+
* Fixed Ternary boolean coercion. Closes #420
|
|
11
|
+
* Fixed __@font-face__ __@import__ regression. Closes #418
|
|
12
|
+
|
|
13
|
+
0.16.0 / 2011-09-26
|
|
14
|
+
==================
|
|
15
|
+
|
|
16
|
+
* Added `mkdir -p` support to the middleware
|
|
17
|
+
* Added `@import url(string)` support. Closes #352
|
|
18
|
+
* Added `fade-in()` and `fade-out()` BIFs
|
|
19
|
+
* Adding prefixes for Opera and IE
|
|
20
|
+
* Fixed comments trailing __@media__. Closes #415 [guillermo]
|
|
21
|
+
* Fixed: Output from --help in stylus executable cut-off half way through
|
|
22
|
+
* Changed: treat -/+ operations with percentages as lighten()/darken().
|
|
23
|
+
Closes #401
|
|
24
|
+
|
|
25
|
+
0.15.4 / 2011-09-14
|
|
26
|
+
==================
|
|
27
|
+
|
|
28
|
+
* Fixed `String#coerce()` for Expressions
|
|
29
|
+
|
|
30
|
+
0.15.3 / 2011-09-14
|
|
31
|
+
==================
|
|
32
|
+
|
|
33
|
+
* Added `-U, --inline` to stylus(1)
|
|
34
|
+
* Added `rem` support. Closes #395
|
|
35
|
+
* Fixed __@charset__ semi-colon. Closes #400
|
|
36
|
+
* Fixed infinite loop in `Parser#function()`. Closes #393
|
|
37
|
+
|
|
38
|
+
0.15.2 / 2011-09-06
|
|
39
|
+
==================
|
|
40
|
+
|
|
41
|
+
* Added alias `:=` of `?=`. Closes #389
|
|
42
|
+
* Removed auto-prefixing of pseudo element selectors. Closes #385
|
|
43
|
+
* Changed: when left-hand operand has no unit assign the right
|
|
44
|
+
* Fixed __@keyframes__ with __@import__ regression. Closes #372
|
|
45
|
+
* Fixed css __@import__ within blocks regression. Closes #388
|
|
46
|
+
* Fixed unwrapping of property args expression. Closes #379
|
|
47
|
+
* Fixed __@prop__ access scope issue, use closet block, not current
|
|
48
|
+
* Fixed __@font-face__. Closes #375
|
|
49
|
+
|
|
50
|
+
0.15.1 / 2011-08-18
|
|
51
|
+
==================
|
|
52
|
+
|
|
53
|
+
* Added pseudo-element vendor expansion support
|
|
54
|
+
* Added `@keyframe` expansion support. Closes #293
|
|
55
|
+
* Added support for arbitrary `@-VENDOR-keyframes` support
|
|
56
|
+
* Added support for `@property` mixin property access Closes #363
|
|
57
|
+
* Added `/*!` support to comments to disable suppression
|
|
58
|
+
* Changed: allow uses to append `.styl` when importing. Closes #366
|
|
59
|
+
* Fixed paren matching issue. Closes #368
|
|
60
|
+
* Fixed windows absolute path checking Added `utils.absolute(path)`
|
|
61
|
+
* Fixed `Ident#clone()` with `.property` flag
|
|
62
|
+
* Fixed evaluation of expression when using @name. Closes #361
|
|
63
|
+
* Fixed `path.join()` usage in `utils.lookup()`. Closes #356
|
|
64
|
+
* Fixed space after comment regression. Closes #360
|
|
65
|
+
|
|
66
|
+
0.15.0 / 2011-08-15
|
|
67
|
+
==================
|
|
68
|
+
|
|
69
|
+
* Adding `Renderer#get(option)`
|
|
70
|
+
* Added the ability to reference property values with `@<name>`. Closes #344
|
|
71
|
+
* Changed comment output. css-style multi-line comments are preserved
|
|
72
|
+
* Fixed issue with bools in selectors. Closes #280
|
|
73
|
+
|
|
74
|
+
0.14.0 / 2011-08-10
|
|
75
|
+
==================
|
|
76
|
+
|
|
77
|
+
* Added firebug original file / line number mapping [parallel]
|
|
78
|
+
* Added support for `#rgba` and `#rrggbbaa` color formats
|
|
79
|
+
* Changed: fix alpha to a scale of 2
|
|
80
|
+
* Fixing function param check to allow for empty function arguments
|
|
81
|
+
|
|
82
|
+
0.13.9 / 2011-08-04
|
|
83
|
+
==================
|
|
84
|
+
|
|
85
|
+
* Fixed `lighten()` BIF 'lighten by %' function push color closer to white [cwolves]
|
|
86
|
+
* Fixed cli plugin usage absolute paths, don't prepend the CWD [cpojer]
|
|
87
|
+
* Renaming 'import' to '_import' because import is a reserved word in node v0.5
|
|
88
|
+
|
|
89
|
+
0.13.8 / 2011-08-01
|
|
90
|
+
==================
|
|
91
|
+
|
|
92
|
+
* Added `PI` and `-math-prop(name)`
|
|
93
|
+
* Added `cos()` and `sin()`
|
|
94
|
+
* Added support for __SVG__ data URIs [mhemesath]
|
|
95
|
+
* Rename variable "import" to "imported" [eegg]
|
|
96
|
+
|
|
97
|
+
0.13.7 / 2011-07-15
|
|
98
|
+
==================
|
|
99
|
+
|
|
100
|
+
* Added `js(str)` BIF
|
|
101
|
+
* Fixed reserved keyword `import` with `imported`
|
|
102
|
+
|
|
103
|
+
0.13.6 / 2011-07-12
|
|
104
|
+
==================
|
|
105
|
+
|
|
106
|
+
* Added `@-webkit-keyframes` support. Closes #307
|
|
107
|
+
* Added gedit language-spec
|
|
108
|
+
* Changed: optional `growl` dep for stylus(1)
|
|
109
|
+
* Changed: `require("stylus")` instead of `../` for the mac app integration
|
|
110
|
+
|
|
111
|
+
0.13.5 / 2011-06-27
|
|
112
|
+
==================
|
|
113
|
+
|
|
114
|
+
* Fixed middleware handling of new and removed `@import` s [brandonbloom]
|
|
115
|
+
|
|
116
|
+
0.13.4 / 2011-06-22
|
|
117
|
+
==================
|
|
118
|
+
|
|
119
|
+
* Added __Compile and Display CSS__ TextMate command (⌘B) [Daniel Gasienica]
|
|
120
|
+
* Fixed caching behavior for recompilation of files with changed imports [Brandon Bloom]
|
|
121
|
+
|
|
122
|
+
0.13.3 / 2011-06-01
|
|
123
|
+
==================
|
|
124
|
+
|
|
125
|
+
* Added padding for error linenos so they line up
|
|
126
|
+
* Improved unary op error messages
|
|
127
|
+
* Improved invalid `@keyframes` ident error msg
|
|
128
|
+
* Fixed HSLA regression for operations resulting in a bool. Closes #274
|
|
129
|
+
* Fixed `arguments` issue with excluding defaults. Closes #272
|
|
130
|
+
|
|
131
|
+
0.13.2 / 2011-05-31
|
|
132
|
+
==================
|
|
133
|
+
|
|
134
|
+
* Fixed colors after `url()` call regression. Closes #270
|
|
135
|
+
|
|
136
|
+
0.13.1 / 2011-05-30
|
|
137
|
+
==================
|
|
138
|
+
|
|
139
|
+
* Fixed colors in `url()`. Closes #267
|
|
140
|
+
* Fixed selector without trailing comma containing selector token. Closes #260
|
|
141
|
+
|
|
142
|
+
0.13.0 / 2011-05-17
|
|
143
|
+
==================
|
|
144
|
+
|
|
145
|
+
* Added `-u, --use PATH` flag for utilizing plugins
|
|
146
|
+
* Fixed `hsla.clampDegrees()` with negative values [Bruno Héridet]
|
|
147
|
+
|
|
148
|
+
0.12.4 / 2011-05-12
|
|
149
|
+
==================
|
|
150
|
+
|
|
151
|
+
* Added support for underscore in identifiers. Closes #247
|
|
152
|
+
* Fixed `@keyframe` block evaluation. Closes #252
|
|
153
|
+
|
|
154
|
+
0.12.3 / 2011-05-08
|
|
155
|
+
==================
|
|
156
|
+
|
|
157
|
+
* Fixed `0%` in `@keyframes` from becoming `0` when compressed. Closes #248
|
|
158
|
+
|
|
159
|
+
0.12.2 / 2011-05-03
|
|
160
|
+
==================
|
|
161
|
+
|
|
162
|
+
* Fixed issue with `^=` attr selector causing infinite loop. Closes #244
|
|
163
|
+
* Fixed multiple occurrences of `&` in selectors. Closes #243
|
|
164
|
+
|
|
165
|
+
0.12.1 / 2011-04-29
|
|
166
|
+
==================
|
|
167
|
+
|
|
168
|
+
* Fixed spaces around line-height shorthand. Closes #228
|
|
169
|
+
* Fixed `-{foo}` interpolation support. Closes #235
|
|
170
|
+
|
|
171
|
+
0.12.0 / 2011-04-29
|
|
172
|
+
==================
|
|
173
|
+
|
|
174
|
+
* Added `*prop: val` hack support (blueprint / html boilerplate etc parse fine now)
|
|
175
|
+
* Added selector interpolation support
|
|
176
|
+
* Fixed "-" within interpolation. Closes #220
|
|
177
|
+
|
|
178
|
+
0.11.12 / 2011-04-27
|
|
179
|
+
==================
|
|
180
|
+
|
|
181
|
+
* Added `SyntaxError` and `ParseError`
|
|
182
|
+
* Removed `stylus.parse()`
|
|
183
|
+
* Fixed error reporting. Closes #44
|
|
184
|
+
|
|
185
|
+
0.11.11 / 2011-04-24
|
|
186
|
+
==================
|
|
187
|
+
|
|
188
|
+
* Fixed mutation of units when using unary ops. Closes #233
|
|
189
|
+
|
|
190
|
+
0.11.10 / 2011-04-17
|
|
191
|
+
==================
|
|
192
|
+
|
|
193
|
+
* Fixed regression. Closes #229
|
|
194
|
+
|
|
195
|
+
0.11.9 / 2011-04-15
|
|
196
|
+
==================
|
|
197
|
+
|
|
198
|
+
* Fixed issue with large selectors spanning several lines
|
|
199
|
+
|
|
200
|
+
0.11.8 / 2011-04-15
|
|
201
|
+
==================
|
|
202
|
+
|
|
203
|
+
* Added support for `Renderer#define(name, node)` to define a global
|
|
204
|
+
|
|
205
|
+
0.11.7 / 2011-04-12
|
|
206
|
+
==================
|
|
207
|
+
|
|
208
|
+
* Added `Renderer#use(fn)`. Closes #224
|
|
209
|
+
* Improved `utils.assertType()` error message; include param name
|
|
210
|
+
|
|
211
|
+
0.11.6 / 2011-04-12
|
|
212
|
+
==================
|
|
213
|
+
|
|
214
|
+
* Fixed: node.source and node.filename are writable
|
|
215
|
+
|
|
216
|
+
0.11.5 / 2011-04-12
|
|
217
|
+
==================
|
|
218
|
+
|
|
219
|
+
* Added / employed `Null#isNull`
|
|
220
|
+
* Added / employed `Boolean#is{True,False}`
|
|
221
|
+
* Removed all uses of `instanceof`
|
|
222
|
+
* Removed all equality checks between singleton nodes
|
|
223
|
+
|
|
224
|
+
0.11.4 / 2011-04-10
|
|
225
|
+
==================
|
|
226
|
+
|
|
227
|
+
* Added `Arguments#clone()`
|
|
228
|
+
* Added `push()` / `append()`
|
|
229
|
+
* Added `unshift()` / `prepend()` BIFs
|
|
230
|
+
|
|
231
|
+
0.11.3 / 2011-04-08
|
|
232
|
+
==================
|
|
233
|
+
|
|
234
|
+
* Fixed: keyword args previously not evaluated
|
|
235
|
+
* Fixed: subpixel support
|
|
236
|
+
* Fixed bug preventing combinators (and other ops) in `@media` blocks. Closes #216 [reported by jsteenkamp]
|
|
237
|
+
|
|
238
|
+
0.11.2 / 2011-04-06
|
|
239
|
+
==================
|
|
240
|
+
|
|
241
|
+
* Added `Renderer#include(path)`. Closes #214
|
|
242
|
+
* Fixed `@import` path resolution bug. Closes #215
|
|
243
|
+
* Fixed optional keyword arg bug. Closes #212
|
|
244
|
+
|
|
245
|
+
0.11.1 / 2011-04-01
|
|
246
|
+
==================
|
|
247
|
+
|
|
248
|
+
* Fixed regression preventing commas from outputting
|
|
249
|
+
|
|
250
|
+
0.11.0 / 2011-04-01
|
|
251
|
+
==================
|
|
252
|
+
|
|
253
|
+
* Added `HSLA#add(h,s,l,a)`
|
|
254
|
+
* Added `HSLA#sub(h,s,l,a)`
|
|
255
|
+
* Added `RGBA#add(r,g,b,a)`
|
|
256
|
+
* Added `RGBA#sub(r,g,b,a)`
|
|
257
|
+
* Added `RGBA#multiply(n)`
|
|
258
|
+
* Added `RGBA#divide(n)`
|
|
259
|
+
* Added `HSLA#adjustHue(deg)`
|
|
260
|
+
* Added `HSLA#adjustLightness(percent)`
|
|
261
|
+
* Added `HSLA#adjustSaturation(percent)`
|
|
262
|
+
* Added `linear-gradient()` example
|
|
263
|
+
* Added `s(fmt, ...)` built-in; sprintf-like
|
|
264
|
+
* Added `%` sprintf-like string operator, ex: `'%s %s' % (1 2)`
|
|
265
|
+
* Added `current-property` local variable
|
|
266
|
+
* Added `add-property(name, val)`
|
|
267
|
+
* Added the ability for functions to duplicate the property they are invoked within
|
|
268
|
+
* Added `[]=` operator support. Ex: `fonts[1] = arial`, `nums[1..3] = 2`
|
|
269
|
+
* Added `-I, --include <path>` to stylus(1). Closes #206
|
|
270
|
+
* Added support for `50 + 25% == 75`
|
|
271
|
+
* Added support for `rgba + 25%` to lighten
|
|
272
|
+
* Added support for `rgba - 25%` to darken
|
|
273
|
+
* Added support for `rgba - 25` to adjust rgb values
|
|
274
|
+
* Changed: null now outputs "null" instead of "[Null]"
|
|
275
|
+
* Fixed hsl operation support, all operations are equivalent on rgba/hsla nodes
|
|
276
|
+
* Fixed degree rotation
|
|
277
|
+
|
|
278
|
+
0.10.0 / 2011-03-29
|
|
279
|
+
==================
|
|
280
|
+
|
|
281
|
+
* Added keyword argument support
|
|
282
|
+
* Added `Arguments` node, acts like `Expression`
|
|
283
|
+
* Added `utils.params()`
|
|
284
|
+
* Added `debug` option to stylus middleware
|
|
285
|
+
* Added support for `hsl + 15deg` etc to adjust hue
|
|
286
|
+
* Added special-case for percentage based `RGBA` operations (`#eee - 20%`)
|
|
287
|
+
* Changed: right-hand colors in operations are not clamped (`#eee * 0.2`)
|
|
288
|
+
* Added support for `unit * color` (swaps operands)
|
|
289
|
+
* Fixed color component requests on the opposite node type (ex red on hsla node)
|
|
290
|
+
* Fixed `Expression#clone()` to support `Arguments`
|
|
291
|
+
* Fixed issue with middleware where imports are improperly mapped
|
|
292
|
+
* Fixed mutation of color when adjusting values
|
|
293
|
+
* Fixed: coerce string to literal
|
|
294
|
+
* Removed {`darken`,`lighten`}`-by()` BIFs
|
|
295
|
+
|
|
296
|
+
0.9.2 / 2011-03-21
|
|
297
|
+
==================
|
|
298
|
+
|
|
299
|
+
* Removed a `console.log()` call
|
|
300
|
+
|
|
301
|
+
0.9.1 / 2011-03-18
|
|
302
|
+
==================
|
|
303
|
+
|
|
304
|
+
* Fixed connect middleware `@import` support. Closes #168
|
|
305
|
+
The middleware is now smart enough to know when imports
|
|
306
|
+
change, and will re-compile the target file.
|
|
307
|
+
|
|
308
|
+
* Changed middleware `compile` function to return the `Renderer` (API change)
|
|
309
|
+
|
|
310
|
+
0.9.0 / 2011-03-18
|
|
311
|
+
==================
|
|
312
|
+
|
|
313
|
+
* Added `-i, --interactive` for the Stylus REPL (eval stylus expressions, tab-completion etc)
|
|
314
|
+
* Added link to vim syntax
|
|
315
|
+
* Changed `p()` built-in to display parens
|
|
316
|
+
* Changed `--compress -C` to `-c`, and `-css -c` is now `-C`
|
|
317
|
+
* Fixed: preserve rest-arg expressions. Closes #194
|
|
318
|
+
* Fixed `*=` in selector, ex `[class*="foo"]`
|
|
319
|
+
* Fixed `--watch` issue with growl, updated to 1.1.0. Closes #188
|
|
320
|
+
* Fixed negative floats when compressed. Closes #193 [reported by ludicco]
|
|
321
|
+
|
|
322
|
+
0.8.0 / 2011-03-14
|
|
323
|
+
==================
|
|
324
|
+
|
|
325
|
+
* Added postfix `for`-loop support.
|
|
326
|
+
Ex: `return n if n % 2 == 0 for n in nums`
|
|
327
|
+
* Added support for several postfix operators
|
|
328
|
+
Ex: `border-radius: 5px if true unless false;`
|
|
329
|
+
* Added `last(expr)` built-in function
|
|
330
|
+
* Added `sum(nums)` built-in function
|
|
331
|
+
* Added `avg(nums)` built-in function
|
|
332
|
+
* Added `join(delim, vals)` built-in function
|
|
333
|
+
* Added `Evaluator#{currentScope,currentBlock}`
|
|
334
|
+
* Added multi-line function paramter definition support
|
|
335
|
+
* Changed: `0` is falsey, `0%`, `0em`, `0px` etc truthy. Closes #160
|
|
336
|
+
* Fixed `for` implicit __return__ value
|
|
337
|
+
* Fixed `for` explicit __return__ value
|
|
338
|
+
* Fixed mixin property ordering
|
|
339
|
+
|
|
340
|
+
0.7.4 / 2011-03-10
|
|
341
|
+
==================
|
|
342
|
+
|
|
343
|
+
* Added `RGBA` node
|
|
344
|
+
* Added `is a "color"` special-case, true for `HSLA` and `RGBA` nodes.
|
|
345
|
+
Closes #180
|
|
346
|
+
* Performance; 2.5× faster compiles due to removing use of getters in `Parser` and `Lexer` (yes, they are really slow).
|
|
347
|
+
* Removed `Color` node
|
|
348
|
+
* Fixed stylus(1) `--watch` support due to dynamic `@import` support. Closes #176
|
|
349
|
+
|
|
350
|
+
0.7.3 / 2011-03-09
|
|
351
|
+
==================
|
|
352
|
+
|
|
353
|
+
* Fixed: allow semi-colons for non-css syntax for one-liners
|
|
354
|
+
|
|
355
|
+
0.7.2 / 2011-03-08
|
|
356
|
+
==================
|
|
357
|
+
|
|
358
|
+
* Added `isnt` operator (same as `is not` and `!=`)
|
|
359
|
+
* Added support for dynamic `@import` expressions
|
|
360
|
+
* Added `@import` index resolution support
|
|
361
|
+
* Added `light()` / `dark()` BIFs
|
|
362
|
+
* Added `compress` option for Connect middleware [disfated]
|
|
363
|
+
* Changed: most built-in functions defined in stylus (`./lib/functions/index.styl`)
|
|
364
|
+
* Fixed dynamic expressions in `url()`. Closes #105
|
|
365
|
+
|
|
366
|
+
0.7.1 / 2011-03-07
|
|
367
|
+
==================
|
|
368
|
+
|
|
369
|
+
* Fixed connect middleware for 0.4.x
|
|
370
|
+
|
|
371
|
+
0.7.0 / 2011-03-02
|
|
372
|
+
==================
|
|
373
|
+
|
|
374
|
+
* Added `is` and `is not` aliases for `==` and `!=`
|
|
375
|
+
* Added `@keyframes` dynamic name support
|
|
376
|
+
* Fixed units in interpolation
|
|
377
|
+
* Fixed clamping of HSLA degrees / percentages
|
|
378
|
+
|
|
379
|
+
0.6.7 / 2011-03-01
|
|
380
|
+
==================
|
|
381
|
+
|
|
382
|
+
* Fixed __RGBA__ -> __HSLA__ conversion due to typo
|
|
383
|
+
|
|
384
|
+
0.6.6 / 2011-03-01
|
|
385
|
+
==================
|
|
386
|
+
|
|
387
|
+
* Added string -> unit type coercion support aka `5px + "10"` will give `15px`
|
|
388
|
+
* Added `warn` option Closes #152
|
|
389
|
+
Currently this only reports on re-definition of functions
|
|
390
|
+
* Added `$` as a valid identifier character
|
|
391
|
+
* Added `mixin` local variable for function introspection capabilities. Closes #162
|
|
392
|
+
* Fixed typo: `Unit#toBoolean()` is now correct
|
|
393
|
+
* Fixed interpolation function calls. Closes #156
|
|
394
|
+
* Fixed mixins within Media node. Closes #153
|
|
395
|
+
* Fixed function call in ret val. Closes #154
|
|
396
|
+
|
|
397
|
+
0.6.5 / 2011-02-24
|
|
398
|
+
==================
|
|
399
|
+
|
|
400
|
+
* Fixed parent ref `&` mid-selector bug. Closes #148 [reported by visnu]
|
|
401
|
+
|
|
402
|
+
0.6.4 / 2011-02-24
|
|
403
|
+
==================
|
|
404
|
+
|
|
405
|
+
* Fixed `for` within brackets. Closes #146
|
|
406
|
+
|
|
407
|
+
0.6.3 / 2011-02-22
|
|
408
|
+
==================
|
|
409
|
+
|
|
410
|
+
* Fixed single-ident selectors. Closes #142
|
|
411
|
+
* Fixed cyclic `@import` with file of the same name. Closes #143
|
|
412
|
+
|
|
413
|
+
0.6.2 / 2011-02-21
|
|
414
|
+
==================
|
|
415
|
+
|
|
416
|
+
* Added stylus(1) growl support when using `--watch`
|
|
417
|
+
* Added `@import` watching support to stylus(1). Closes #134
|
|
418
|
+
* Changed: stylus(1) only throws when `--watch` is not used
|
|
419
|
+
* Fixed `darken-by()` BIF
|
|
420
|
+
* Fixed `@import` literal semi-colon. Closes #140
|
|
421
|
+
|
|
422
|
+
0.6.1 / 2011-02-18
|
|
423
|
+
==================
|
|
424
|
+
|
|
425
|
+
* Fixed evaluation of nodes after a return. Closes #139
|
|
426
|
+
|
|
427
|
+
0.6.0 / 2011-02-18
|
|
428
|
+
==================
|
|
429
|
+
|
|
430
|
+
* Added `stylus(1)` direct css to stylus file conversion [Mario]
|
|
431
|
+
For example instead of `$ stylus --css < foo.css > foo.styl`
|
|
432
|
+
you may now either `$ stylus --css foo.css` or provide
|
|
433
|
+
a destination path `$ stylus --css foo.css /tmp/out.styl`.
|
|
434
|
+
|
|
435
|
+
* Added postfix conditionals. Closes #74
|
|
436
|
+
Expressive ruby-ish syntax, ex: `padding 5px if allow-padding`.
|
|
437
|
+
|
|
438
|
+
0.5.3 / 2011-02-17
|
|
439
|
+
==================
|
|
440
|
+
|
|
441
|
+
* Added `in` operator. `3 in nums`, `padding in props` etc
|
|
442
|
+
* Added `Expression#hash`, hashing all of the nodes in order
|
|
443
|
+
* Added tests for conditionals with braces. Closes #136
|
|
444
|
+
* Fixed ids that are also valid colors. Closes #137
|
|
445
|
+
|
|
446
|
+
0.5.2 / 2011-02-15
|
|
447
|
+
==================
|
|
448
|
+
|
|
449
|
+
* Fixed spaces after `}` with css-style. Closes #131
|
|
450
|
+
* Fixed single-line css-style support. Closes #130
|
|
451
|
+
|
|
452
|
+
0.5.1 / 2011-02-11
|
|
453
|
+
==================
|
|
454
|
+
|
|
455
|
+
* Fixed mixin property ordering. Closes #125
|
|
456
|
+
|
|
457
|
+
0.5.0 / 2011-02-09
|
|
458
|
+
==================
|
|
459
|
+
|
|
460
|
+
* Added `lighten-by()` BIF
|
|
461
|
+
* Added `darken-by()` BIF
|
|
462
|
+
|
|
463
|
+
0.4.1 / 2011-02-09
|
|
464
|
+
==================
|
|
465
|
+
|
|
466
|
+
* Added support for function definition braces
|
|
467
|
+
* Fixed issue with invalid color output. Closes #127
|
|
468
|
+
|
|
469
|
+
0.4.0 / 2011-02-07
|
|
470
|
+
==================
|
|
471
|
+
|
|
472
|
+
* Added css-style syntax support
|
|
473
|
+
* Fixed support for `*` selector within `@media` blocks
|
|
474
|
+
|
|
475
|
+
0.3.1 / 2011-02-04
|
|
476
|
+
==================
|
|
477
|
+
|
|
478
|
+
* Fixed property disambiguation logic. Closes #117
|
|
479
|
+
You no longer need to add a trailing comma when
|
|
480
|
+
chaining selectors such as `td:nth-child(2)\ntd:nth-child(3)`
|
|
481
|
+
|
|
482
|
+
0.3.0 / 2011-02-04
|
|
483
|
+
==================
|
|
484
|
+
|
|
485
|
+
* Added more assignment operators. Closes #77
|
|
486
|
+
`+=`, `-=`, `*=`, `/=`, and `%=`
|
|
487
|
+
|
|
488
|
+
0.2.1 / 2011-02-02
|
|
489
|
+
==================
|
|
490
|
+
|
|
491
|
+
* Fixed `--compress` when passing files for stylus(1). Closes #115
|
|
492
|
+
* Fixed bug preventing absolute paths from being passed to `@import`
|
|
493
|
+
* Fixed `opposite-position()` with nested expressions, unwrapping
|
|
494
|
+
* Fixed a couple global var leaks [aheckmann]
|
|
495
|
+
|
|
496
|
+
0.2.0 / 2011-02-01
|
|
497
|
+
==================
|
|
498
|
+
|
|
499
|
+
* Added: `url()` utilizing general lookup paths.
|
|
500
|
+
This means that `{ paths: [] }` is optional now, as lookups
|
|
501
|
+
will be relative to the file being rendered by default.
|
|
502
|
+
|
|
503
|
+
* Added `-w, --watch` support to stylus(1). Closes #113
|
|
504
|
+
|
|
505
|
+
0.1.0 / 2011-02-01
|
|
506
|
+
==================
|
|
507
|
+
|
|
508
|
+
* Added `opposite-position(positions)` built-in function
|
|
509
|
+
* Added `image-lookup(path)` built-in function
|
|
510
|
+
* Added `-o, --out <dir>` support to stylus(1)
|
|
511
|
+
* Added `stylus [file|dir ...]` support
|
|
512
|
+
* Added: defaulting paths to `[CWD]` for stylus(1)
|
|
513
|
+
* Changed: `unquote()` using `Literal` node
|
|
514
|
+
* Changed: utilizing `Literal` in place of some `Ident`s
|
|
515
|
+
|
|
516
|
+
0.0.2 / 2011-01-31
|
|
517
|
+
==================
|
|
518
|
+
|
|
519
|
+
* Added optional property colon support. Closes #110
|
|
520
|
+
* Added `--version` to stylus(1)
|
|
521
|
+
|
|
522
|
+
0.0.1 / 2011-01-31
|
|
523
|
+
==================
|
|
524
|
+
|
|
525
|
+
* Initial release
|
data/vendor/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2010 LearnBoost <dev@learnboost.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/vendor/Makefile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
SRC = $(shell find lib -name "*.js")
|
|
3
|
+
TM_BUNDLE = editors/Stylus.tmbundle
|
|
4
|
+
TM_BUNDLE_DEST = ~/Library/Application\ Support/TextMate/Bundles
|
|
5
|
+
|
|
6
|
+
test: test-integration
|
|
7
|
+
|
|
8
|
+
test-integration:
|
|
9
|
+
@node test/run.js
|
|
10
|
+
|
|
11
|
+
install-bundle:
|
|
12
|
+
cp -fr $(TM_BUNDLE) $(TM_BUNDLE_DEST)
|
|
13
|
+
|
|
14
|
+
update-bundle:
|
|
15
|
+
cp -fr $(TM_BUNDLE_DEST)/Stylus.tmbundle editors
|
|
16
|
+
|
|
17
|
+
benchmark:
|
|
18
|
+
@node bm.js
|
|
19
|
+
|
|
20
|
+
.PHONY: test test-integration install-bundle update-bundle benchmark
|