stylus-source 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -5
- data/VERSION +1 -1
- data/vendor/lib/functions/index.js +11 -12
- data/vendor/lib/functions/index.styl +45 -0
- data/vendor/lib/parser.js +13 -0
- data/vendor/lib/stylus.js +1 -1
- data/vendor/lib/visitor/evaluator.js +8 -0
- data/vendor/node_modules/cssom/Jakefile.js +35 -0
- data/vendor/node_modules/cssom/lib/CSSImportRule.js +10 -9
- data/vendor/node_modules/cssom/lib/CSSKeyframeRule.js +2 -0
- data/vendor/node_modules/cssom/lib/CSSKeyframesRule.js +2 -1
- data/vendor/node_modules/cssom/lib/CSSMediaRule.js +2 -1
- data/vendor/node_modules/cssom/lib/CSSRule.js +1 -0
- data/vendor/node_modules/cssom/lib/CSSStyleDeclaration.js +7 -5
- data/vendor/node_modules/cssom/lib/CSSStyleRule.js +11 -9
- data/vendor/node_modules/cssom/lib/CSSStyleSheet.js +4 -4
- data/vendor/node_modules/cssom/lib/MediaList.js +3 -3
- data/vendor/node_modules/cssom/lib/StyleSheet.js +3 -1
- data/vendor/node_modules/cssom/lib/clone.js +5 -5
- data/vendor/node_modules/cssom/lib/index.js +14 -12
- data/vendor/node_modules/cssom/lib/parse.js +48 -43
- data/vendor/node_modules/cssom/package.json +5 -4
- data/vendor/node_modules/debug/History.md +35 -0
- data/vendor/node_modules/debug/Makefile +5 -0
- data/vendor/node_modules/debug/Readme.md +128 -0
- data/vendor/node_modules/debug/debug.js +111 -0
- data/vendor/node_modules/debug/example/app.js +19 -0
- data/vendor/node_modules/debug/example/browser.html +24 -0
- data/vendor/node_modules/debug/example/wildcards.js +10 -0
- data/vendor/node_modules/debug/example/worker.js +22 -0
- data/vendor/node_modules/debug/index.js +2 -0
- data/vendor/node_modules/debug/lib/debug.js +129 -0
- data/vendor/node_modules/debug/package.json +11 -0
- data/vendor/node_modules/growl/History.md +21 -0
- data/vendor/node_modules/growl/Readme.md +29 -20
- data/vendor/node_modules/growl/lib/growl.js +113 -36
- data/vendor/node_modules/growl/package.json +1 -1
- data/vendor/node_modules/growl/test.js +12 -13
- data/vendor/node_modules/mkdirp/README.markdown +35 -2
- data/vendor/node_modules/mkdirp/examples/pow.js +1 -1
- data/vendor/node_modules/mkdirp/index.js +72 -13
- data/vendor/node_modules/mkdirp/package.json +2 -2
- data/vendor/node_modules/mkdirp/test/chmod.js +38 -0
- data/vendor/node_modules/mkdirp/test/clobber.js +37 -0
- data/vendor/node_modules/mkdirp/test/perm.js +32 -0
- data/vendor/node_modules/mkdirp/test/perm_sync.js +39 -0
- data/vendor/node_modules/mkdirp/test/sync.js +27 -0
- data/vendor/node_modules/mkdirp/test/umask.js +28 -0
- data/vendor/node_modules/mkdirp/test/umask_sync.js +27 -0
- data/vendor/package.json +6 -5
- data/vendor/testing/test.css +39 -0
- data/vendor/testing/test.html +21 -0
- data/vendor/testing/test.js +5 -3
- data/vendor/testing/test.styl +42 -2
- metadata +23 -542
- data/vendor/History.md +0 -672
- data/vendor/Makefile +0 -20
- data/vendor/Readme.md +0 -155
- data/vendor/docs/bifs.md +0 -598
- data/vendor/docs/comments.md +0 -35
- data/vendor/docs/compare.md +0 -81
- data/vendor/docs/conditionals.md +0 -107
- data/vendor/docs/css-style.md +0 -77
- data/vendor/docs/error-reporting.md +0 -50
- data/vendor/docs/escape.md +0 -28
- data/vendor/docs/executable.md +0 -163
- data/vendor/docs/extend.md +0 -123
- data/vendor/docs/firebug.md +0 -59
- data/vendor/docs/font-face.md +0 -26
- data/vendor/docs/functions.md +0 -197
- data/vendor/docs/functions.url.md +0 -32
- data/vendor/docs/gedit.md +0 -24
- data/vendor/docs/import.md +0 -75
- data/vendor/docs/interpolation.md +0 -55
- data/vendor/docs/introspection.md +0 -38
- data/vendor/docs/iteration.md +0 -102
- data/vendor/docs/js.md +0 -157
- data/vendor/docs/keyframes.md +0 -122
- data/vendor/docs/kwargs.md +0 -34
- data/vendor/docs/literal.md +0 -16
- data/vendor/docs/media.md +0 -18
- data/vendor/docs/middleware.md +0 -72
- data/vendor/docs/mixins.md +0 -138
- data/vendor/docs/operators.md +0 -470
- data/vendor/docs/selectors.md +0 -133
- data/vendor/docs/textmate.md +0 -4
- data/vendor/docs/vargs.md +0 -84
- data/vendor/docs/variables.md +0 -85
- data/vendor/editors/Stylus.tmbundle/Commands/Compile and Display CSS.tmCommand +0 -33
- data/vendor/editors/Stylus.tmbundle/Preferences/Comments.tmPreferences +0 -36
- data/vendor/editors/Stylus.tmbundle/Syntaxes/Stylus.tmLanguage +0 -228
- data/vendor/editors/Stylus.tmbundle/info.plist +0 -10
- data/vendor/editors/gedit/styl.lang +0 -475
- data/vendor/examples/arithmetic.js +0 -12
- data/vendor/examples/arithmetic.styl +0 -29
- data/vendor/examples/basic.js +0 -12
- data/vendor/examples/basic.styl +0 -8
- data/vendor/examples/builtins.js +0 -12
- data/vendor/examples/builtins.styl +0 -56
- data/vendor/examples/comments.js +0 -11
- data/vendor/examples/comments.styl +0 -15
- data/vendor/examples/compress.js +0 -12
- data/vendor/examples/conversions.js +0 -12
- data/vendor/examples/conversions.styl +0 -34
- data/vendor/examples/functions.js +0 -12
- data/vendor/examples/functions.styl +0 -30
- data/vendor/examples/gradients.js +0 -13
- data/vendor/examples/gradients.styl +0 -8
- data/vendor/examples/images/gopher.jpg +0 -0
- data/vendor/examples/images/gradient.svg +0 -9
- data/vendor/examples/images/jesus.gif +0 -0
- data/vendor/examples/images/sprite.gif +0 -0
- data/vendor/examples/images.js +0 -20
- data/vendor/examples/images.styl +0 -15
- data/vendor/examples/implicit-functions.js +0 -12
- data/vendor/examples/implicit-functions.styl +0 -23
- data/vendor/examples/import.js +0 -12
- data/vendor/examples/import.styl +0 -11
- data/vendor/examples/js-functions.js +0 -55
- data/vendor/examples/js-functions.styl +0 -23
- data/vendor/examples/literal.js +0 -12
- data/vendor/examples/literal.styl +0 -8
- data/vendor/examples/middleware.js +0 -23
- data/vendor/examples/mixins/box.styl +0 -14
- data/vendor/examples/mixins/gradients.styl +0 -92
- data/vendor/examples/nesting.js +0 -12
- data/vendor/examples/nesting.styl +0 -14
- data/vendor/examples/variables.js +0 -12
- data/vendor/examples/variables.styl +0 -24
- data/vendor/node_modules/cssom/Jakefile +0 -37
- data/vendor/node_modules/cssom/MIT-LICENSE.txt +0 -20
- data/vendor/node_modules/cssom/README.mdown +0 -34
- data/vendor/node_modules/cssom/Rakefile +0 -23
- data/vendor/node_modules/cssom/animation.html +0 -27
- data/vendor/node_modules/cssom/bench.html +0 -47
- data/vendor/node_modules/cssom/comments.js +0 -63
- data/vendor/node_modules/cssom/docs/bar.css +0 -3
- data/vendor/node_modules/cssom/docs/col_table.html +0 -15
- data/vendor/node_modules/cssom/docs/cols.html +0 -14
- data/vendor/node_modules/cssom/docs/cols_inline-blocks.html +0 -33
- data/vendor/node_modules/cssom/docs/demo.css +0 -0
- data/vendor/node_modules/cssom/docs/diff.html +0 -132
- data/vendor/node_modules/cssom/docs/foo.css +0 -4
- data/vendor/node_modules/cssom/docs/parse.html +0 -282
- data/vendor/node_modules/cssom/docs/parse.html_ +0 -268
- data/vendor/node_modules/cssom/docs/parse2.html +0 -518
- data/vendor/node_modules/cssom/docs/parser.html +0 -31
- data/vendor/node_modules/cssom/index.html +0 -100
- data/vendor/node_modules/cssom/lib/CSSOM.js +0 -3
- data/vendor/node_modules/cssom/lib/Parser.js +0 -362
- data/vendor/node_modules/cssom/media.html +0 -17
- data/vendor/node_modules/cssom/plugins/toHTML.js +0 -32
- data/vendor/node_modules/cssom/server/index.html +0 -22
- data/vendor/node_modules/cssom/server/index.js +0 -21
- data/vendor/node_modules/cssom/shorthands.html +0 -21
- data/vendor/node_modules/cssom/strings.html +0 -10
- data/vendor/node_modules/cssom/test/CSSImportRule.test.js +0 -52
- data/vendor/node_modules/cssom/test/CSSStyleDeclaration.test.js +0 -42
- data/vendor/node_modules/cssom/test/CSSStyleRule.test.js +0 -12
- data/vendor/node_modules/cssom/test/CSSStyleSheet.test.js +0 -16
- data/vendor/node_modules/cssom/test/MediaList.test.js +0 -21
- data/vendor/node_modules/cssom/test/_helper.js +0 -122
- data/vendor/node_modules/cssom/test/clone.test.js +0 -38
- data/vendor/node_modules/cssom/test/fixtures/dummy.css +0 -3
- data/vendor/node_modules/cssom/test/helper.js +0 -122
- data/vendor/node_modules/cssom/test/index.html +0 -45
- data/vendor/node_modules/cssom/test/parse.test.js +0 -718
- data/vendor/node_modules/cssom/test/vendor/qunit.css +0 -189
- data/vendor/node_modules/cssom/test/vendor/qunit.js +0 -1415
- data/vendor/test/cases/arithmetic.color.css +0 -44
- data/vendor/test/cases/arithmetic.color.styl +0 -48
- data/vendor/test/cases/arithmetic.css +0 -23
- data/vendor/test/cases/arithmetic.styl +0 -30
- data/vendor/test/cases/arithmetic.unary.css +0 -16
- data/vendor/test/cases/arithmetic.unary.styl +0 -16
- data/vendor/test/cases/atscope.css +0 -21
- data/vendor/test/cases/atscope.styl +0 -23
- data/vendor/test/cases/bifs.add-property.css +0 -21
- data/vendor/test/cases/bifs.add-property.styl +0 -48
- data/vendor/test/cases/bifs.components.css +0 -9
- data/vendor/test/cases/bifs.components.styl +0 -9
- data/vendor/test/cases/bifs.dark.css +0 -5
- data/vendor/test/cases/bifs.dark.styl +0 -4
- data/vendor/test/cases/bifs.darken.css +0 -8
- data/vendor/test/cases/bifs.darken.styl +0 -9
- data/vendor/test/cases/bifs.fade.css +0 -6
- data/vendor/test/cases/bifs.fade.styl +0 -6
- data/vendor/test/cases/bifs.image-size.css +0 -9
- data/vendor/test/cases/bifs.image-size.styl +0 -16
- data/vendor/test/cases/bifs.join.css +0 -18
- data/vendor/test/cases/bifs.join.styl +0 -21
- data/vendor/test/cases/bifs.keys.css +0 -4
- data/vendor/test/cases/bifs.keys.styl +0 -6
- data/vendor/test/cases/bifs.last.css +0 -5
- data/vendor/test/cases/bifs.last.styl +0 -6
- data/vendor/test/cases/bifs.length.css +0 -10
- data/vendor/test/cases/bifs.length.styl +0 -18
- data/vendor/test/cases/bifs.light.css +0 -5
- data/vendor/test/cases/bifs.light.styl +0 -4
- data/vendor/test/cases/bifs.lighten.css +0 -14
- data/vendor/test/cases/bifs.lighten.styl +0 -14
- data/vendor/test/cases/bifs.lookup.css +0 -3
- data/vendor/test/cases/bifs.lookup.styl +0 -8
- data/vendor/test/cases/bifs.match.css +0 -4
- data/vendor/test/cases/bifs.match.styl +0 -9
- data/vendor/test/cases/bifs.opposite-position.css +0 -8
- data/vendor/test/cases/bifs.opposite-position.styl +0 -9
- data/vendor/test/cases/bifs.push.css +0 -25
- data/vendor/test/cases/bifs.push.styl +0 -48
- data/vendor/test/cases/bifs.rgba.css +0 -5
- data/vendor/test/cases/bifs.rgba.styl +0 -4
- data/vendor/test/cases/bifs.s.css +0 -11
- data/vendor/test/cases/bifs.s.styl +0 -12
- data/vendor/test/cases/bifs.type.css +0 -11
- data/vendor/test/cases/bifs.type.styl +0 -12
- data/vendor/test/cases/bifs.unit.css +0 -6
- data/vendor/test/cases/bifs.unit.styl +0 -5
- data/vendor/test/cases/bifs.unquote.css +0 -5
- data/vendor/test/cases/bifs.unquote.styl +0 -8
- data/vendor/test/cases/bifs.url.css +0 -11
- data/vendor/test/cases/bifs.url.styl +0 -15
- data/vendor/test/cases/bifs.values.css +0 -5
- data/vendor/test/cases/bifs.values.styl +0 -6
- data/vendor/test/cases/casting.css +0 -12
- data/vendor/test/cases/casting.styl +0 -14
- data/vendor/test/cases/coercion.css +0 -6
- data/vendor/test/cases/coercion.styl +0 -5
- data/vendor/test/cases/comments.css +0 -18
- data/vendor/test/cases/comments.styl +0 -28
- data/vendor/test/cases/compress.comments.css +0 -2
- data/vendor/test/cases/compress.comments.styl +0 -5
- data/vendor/test/cases/compress.units.css +0 -2
- data/vendor/test/cases/compress.units.styl +0 -18
- data/vendor/test/cases/conditional-assignment.css +0 -4
- data/vendor/test/cases/conditional-assignment.styl +0 -9
- data/vendor/test/cases/control.blueprint.ie.css +0 -126
- data/vendor/test/cases/control.blueprint.ie.styl +0 -36
- data/vendor/test/cases/control.blueprint.screen.css +0 -1103
- data/vendor/test/cases/control.blueprint.screen.styl +0 -265
- data/vendor/test/cases/control.boilerplate.css +0 -473
- data/vendor/test/cases/control.boilerplate.styl +0 -265
- data/vendor/test/cases/css.extend.css +0 -13
- data/vendor/test/cases/css.extend.styl +0 -15
- data/vendor/test/cases/css.functions.single-line.css +0 -9
- data/vendor/test/cases/css.functions.single-line.styl +0 -13
- data/vendor/test/cases/css.if.css +0 -8
- data/vendor/test/cases/css.if.styl +0 -21
- data/vendor/test/cases/css.keyframes.css +0 -57
- data/vendor/test/cases/css.keyframes.styl +0 -48
- data/vendor/test/cases/css.large.css +0 -172
- data/vendor/test/cases/css.large.styl +0 -172
- data/vendor/test/cases/css.media.css +0 -15
- data/vendor/test/cases/css.media.styl +0 -17
- data/vendor/test/cases/css.mixins.braces.css +0 -38
- data/vendor/test/cases/css.mixins.braces.styl +0 -53
- data/vendor/test/cases/css.mixins.css +0 -38
- data/vendor/test/cases/css.mixins.root.css +0 -26
- data/vendor/test/cases/css.mixins.root.styl +0 -25
- data/vendor/test/cases/css.mixins.root.wonky.css +0 -26
- data/vendor/test/cases/css.mixins.root.wonky.styl +0 -17
- data/vendor/test/cases/css.mixins.styl +0 -47
- data/vendor/test/cases/css.selector.interpolation.css +0 -91
- data/vendor/test/cases/css.selector.interpolation.styl +0 -90
- data/vendor/test/cases/css.selectors.css +0 -38
- data/vendor/test/cases/css.selectors.styl +0 -53
- data/vendor/test/cases/css.whitespace.css +0 -37
- data/vendor/test/cases/css.whitespace.styl +0 -38
- data/vendor/test/cases/dumb.css +0 -10
- data/vendor/test/cases/dumb.styl +0 -11
- data/vendor/test/cases/eol-escape.css +0 -11
- data/vendor/test/cases/eol-escape.styl +0 -27
- data/vendor/test/cases/escape.css +0 -4
- data/vendor/test/cases/escape.styl +0 -4
- data/vendor/test/cases/extend.complex.css +0 -16
- data/vendor/test/cases/extend.complex.styl +0 -15
- data/vendor/test/cases/extend.css +0 -22
- data/vendor/test/cases/extend.multiple-definitions.css +0 -11
- data/vendor/test/cases/extend.multiple-definitions.styl +0 -9
- data/vendor/test/cases/extend.styl +0 -22
- data/vendor/test/cases/fontface.css +0 -4
- data/vendor/test/cases/fontface.styl +0 -5
- data/vendor/test/cases/for.complex.css +0 -44
- data/vendor/test/cases/for.complex.styl +0 -28
- data/vendor/test/cases/for.css +0 -52
- data/vendor/test/cases/for.function.css +0 -20
- data/vendor/test/cases/for.function.styl +0 -51
- data/vendor/test/cases/for.styl +0 -44
- data/vendor/test/cases/function.arguments.css +0 -4
- data/vendor/test/cases/function.arguments.styl +0 -14
- data/vendor/test/cases/function.literals.css +0 -6
- data/vendor/test/cases/function.literals.styl +0 -12
- data/vendor/test/cases/functions.arg-calls.css +0 -3
- data/vendor/test/cases/functions.arg-calls.styl +0 -9
- data/vendor/test/cases/functions.call.css +0 -4
- data/vendor/test/cases/functions.call.styl +0 -7
- data/vendor/test/cases/functions.css +0 -11
- data/vendor/test/cases/functions.defaults.css +0 -15
- data/vendor/test/cases/functions.defaults.styl +0 -30
- data/vendor/test/cases/functions.multi-line.css +0 -9
- data/vendor/test/cases/functions.multi-line.styl +0 -25
- data/vendor/test/cases/functions.multiple-calls.css +0 -13
- data/vendor/test/cases/functions.multiple-calls.styl +0 -26
- data/vendor/test/cases/functions.nested-calls.css +0 -3
- data/vendor/test/cases/functions.nested-calls.styl +0 -9
- data/vendor/test/cases/functions.nested.css +0 -10
- data/vendor/test/cases/functions.nested.styl +0 -37
- data/vendor/test/cases/functions.property.css +0 -10
- data/vendor/test/cases/functions.property.styl +0 -11
- data/vendor/test/cases/functions.return.css +0 -15
- data/vendor/test/cases/functions.return.each.css +0 -10
- data/vendor/test/cases/functions.return.each.styl +0 -23
- data/vendor/test/cases/functions.return.styl +0 -86
- data/vendor/test/cases/functions.styl +0 -34
- data/vendor/test/cases/functions.variable.css +0 -9
- data/vendor/test/cases/functions.variable.ident.css +0 -3
- data/vendor/test/cases/functions.variable.ident.styl +0 -11
- data/vendor/test/cases/functions.variable.styl +0 -27
- data/vendor/test/cases/hack.star.css +0 -27
- data/vendor/test/cases/hack.star.styl +0 -37
- data/vendor/test/cases/if.css +0 -43
- data/vendor/test/cases/if.else.css +0 -6
- data/vendor/test/cases/if.else.styl +0 -16
- data/vendor/test/cases/if.mixin.css +0 -7
- data/vendor/test/cases/if.mixin.styl +0 -24
- data/vendor/test/cases/if.postfix.css +0 -61
- data/vendor/test/cases/if.postfix.styl +0 -110
- data/vendor/test/cases/if.selectors.css +0 -16
- data/vendor/test/cases/if.selectors.styl +0 -22
- data/vendor/test/cases/if.styl +0 -99
- data/vendor/test/cases/import.basic/a.styl +0 -5
- data/vendor/test/cases/import.basic/b.styl +0 -5
- data/vendor/test/cases/import.basic/c.styl +0 -3
- data/vendor/test/cases/import.basic.css +0 -11
- data/vendor/test/cases/import.basic.styl +0 -4
- data/vendor/test/cases/import.complex/a.styl +0 -4
- data/vendor/test/cases/import.complex/c.styl +0 -2
- data/vendor/test/cases/import.complex/nested/b.styl +0 -4
- data/vendor/test/cases/import.complex.css +0 -9
- data/vendor/test/cases/import.complex.styl +0 -1
- data/vendor/test/cases/import.index/vendor/a.styl +0 -2
- data/vendor/test/cases/import.index/vendor/b.styl +0 -2
- data/vendor/test/cases/import.index/vendor/c.styl +0 -2
- data/vendor/test/cases/import.index/vendor/index.styl +0 -4
- data/vendor/test/cases/import.index.css +0 -9
- data/vendor/test/cases/import.index.styl +0 -2
- data/vendor/test/cases/import.literal.css +0 -2
- data/vendor/test/cases/import.literal.styl +0 -3
- data/vendor/test/cases/import.mixins.css +0 -7
- data/vendor/test/cases/import.mixins.styl +0 -9
- data/vendor/test/cases/import.ordering/five.styl +0 -2
- data/vendor/test/cases/import.ordering/four.styl +0 -4
- data/vendor/test/cases/import.ordering/two.styl +0 -2
- data/vendor/test/cases/import.ordering.css +0 -15
- data/vendor/test/cases/import.ordering.styl +0 -12
- data/vendor/test/cases/important.css +0 -6
- data/vendor/test/cases/important.styl +0 -6
- data/vendor/test/cases/interpolation.properties.css +0 -40
- data/vendor/test/cases/interpolation.properties.styl +0 -56
- data/vendor/test/cases/introspection.css +0 -7
- data/vendor/test/cases/introspection.styl +0 -14
- data/vendor/test/cases/jquery.css +0 -3
- data/vendor/test/cases/jquery.styl +0 -5
- data/vendor/test/cases/keyframes.css +0 -9
- data/vendor/test/cases/keyframes.fabrication.css +0 -18
- data/vendor/test/cases/keyframes.fabrication.defaults.css +0 -45
- data/vendor/test/cases/keyframes.fabrication.defaults.styl +0 -9
- data/vendor/test/cases/keyframes.fabrication.styl +0 -11
- data/vendor/test/cases/keyframes.newlines.css +0 -45
- data/vendor/test/cases/keyframes.newlines.styl +0 -7
- data/vendor/test/cases/keyframes.styl +0 -6
- data/vendor/test/cases/kwargs.css +0 -63
- data/vendor/test/cases/kwargs.styl +0 -74
- data/vendor/test/cases/list.css +0 -3
- data/vendor/test/cases/list.styl +0 -3
- data/vendor/test/cases/literal.color.css +0 -10
- data/vendor/test/cases/literal.color.styl +0 -9
- data/vendor/test/cases/literal.css +0 -10
- data/vendor/test/cases/literal.styl +0 -18
- data/vendor/test/cases/media.css +0 -14
- data/vendor/test/cases/media.styl +0 -11
- data/vendor/test/cases/mixin.conditional.css +0 -19
- data/vendor/test/cases/mixin.conditional.styl +0 -36
- data/vendor/test/cases/mixin.order.conditional.css +0 -11
- data/vendor/test/cases/mixin.order.conditional.styl +0 -20
- data/vendor/test/cases/mixin.order.css +0 -9
- data/vendor/test/cases/mixin.order.nested.css +0 -9
- data/vendor/test/cases/mixin.order.nested.styl +0 -21
- data/vendor/test/cases/mixin.order.styl +0 -20
- data/vendor/test/cases/mixins/box.styl +0 -11
- data/vendor/test/cases/mixins.complex.css +0 -30
- data/vendor/test/cases/mixins.complex.fix-to.css +0 -15
- data/vendor/test/cases/mixins.complex.fix-to.styl +0 -28
- data/vendor/test/cases/mixins.complex.styl +0 -41
- data/vendor/test/cases/mixins.conditional.css +0 -3
- data/vendor/test/cases/mixins.conditional.styl +0 -8
- data/vendor/test/cases/mixins.nested.css +0 -7
- data/vendor/test/cases/mixins.nested.selectors.css +0 -21
- data/vendor/test/cases/mixins.nested.selectors.styl +0 -31
- data/vendor/test/cases/mixins.nested.styl +0 -14
- data/vendor/test/cases/mixins.order.2.css +0 -11
- data/vendor/test/cases/mixins.order.2.styl +0 -16
- data/vendor/test/cases/mixins.reset.css +0 -75
- data/vendor/test/cases/mixins.reset.styl +0 -27
- data/vendor/test/cases/mixins.return.css +0 -4
- data/vendor/test/cases/mixins.return.styl +0 -8
- data/vendor/test/cases/mixins.root.css +0 -3
- data/vendor/test/cases/mixins.root.styl +0 -5
- data/vendor/test/cases/operator.range.css +0 -15
- data/vendor/test/cases/operator.range.styl +0 -23
- data/vendor/test/cases/operators.assignment.function.css +0 -15
- data/vendor/test/cases/operators.assignment.function.styl +0 -34
- data/vendor/test/cases/operators.assignment.mixin.css +0 -15
- data/vendor/test/cases/operators.assignment.mixin.styl +0 -39
- data/vendor/test/cases/operators.assignment.root.css +0 -25
- data/vendor/test/cases/operators.assignment.root.styl +0 -55
- data/vendor/test/cases/operators.complex.css +0 -9
- data/vendor/test/cases/operators.complex.styl +0 -32
- data/vendor/test/cases/operators.css +0 -40
- data/vendor/test/cases/operators.equality.css +0 -55
- data/vendor/test/cases/operators.equality.styl +0 -55
- data/vendor/test/cases/operators.in.css +0 -37
- data/vendor/test/cases/operators.in.styl +0 -51
- data/vendor/test/cases/operators.mixins.css +0 -10
- data/vendor/test/cases/operators.mixins.styl +0 -25
- data/vendor/test/cases/operators.precedence.css +0 -51
- data/vendor/test/cases/operators.precedence.styl +0 -82
- data/vendor/test/cases/operators.styl +0 -96
- data/vendor/test/cases/operators.subscript.assign.css +0 -21
- data/vendor/test/cases/operators.subscript.assign.styl +0 -45
- data/vendor/test/cases/operators.subscript.css +0 -59
- data/vendor/test/cases/operators.subscript.range.css +0 -14
- data/vendor/test/cases/operators.subscript.range.styl +0 -15
- data/vendor/test/cases/operators.subscript.styl +0 -81
- data/vendor/test/cases/page.css +0 -16
- data/vendor/test/cases/page.styl +0 -17
- data/vendor/test/cases/parent.css +0 -32
- data/vendor/test/cases/parent.styl +0 -33
- data/vendor/test/cases/properties.colons.css +0 -8
- data/vendor/test/cases/properties.colons.styl +0 -10
- data/vendor/test/cases/properties.css +0 -4
- data/vendor/test/cases/properties.one-line.css +0 -10
- data/vendor/test/cases/properties.one-line.styl +0 -11
- data/vendor/test/cases/properties.styl +0 -4
- data/vendor/test/cases/property-access.bubble.css +0 -38
- data/vendor/test/cases/property-access.bubble.styl +0 -46
- data/vendor/test/cases/property-access.css +0 -48
- data/vendor/test/cases/property-access.siblings.css +0 -19
- data/vendor/test/cases/property-access.siblings.styl +0 -20
- data/vendor/test/cases/property-access.styl +0 -62
- data/vendor/test/cases/regression.107.lookup-failure.css +0 -12
- data/vendor/test/cases/regression.107.lookup-failure.styl +0 -13
- data/vendor/test/cases/regression.127.css +0 -3
- data/vendor/test/cases/regression.127.styl +0 -2
- data/vendor/test/cases/regression.130.css +0 -16
- data/vendor/test/cases/regression.130.styl +0 -6
- data/vendor/test/cases/regression.131.css +0 -7
- data/vendor/test/cases/regression.131.styl +0 -2
- data/vendor/test/cases/regression.137.css +0 -7
- data/vendor/test/cases/regression.137.styl +0 -7
- data/vendor/test/cases/regression.139.css +0 -5
- data/vendor/test/cases/regression.139.styl +0 -21
- data/vendor/test/cases/regression.142.css +0 -39
- data/vendor/test/cases/regression.142.styl +0 -54
- data/vendor/test/cases/regression.146.css +0 -30
- data/vendor/test/cases/regression.146.styl +0 -31
- data/vendor/test/cases/regression.153.css +0 -8
- data/vendor/test/cases/regression.153.styl +0 -9
- data/vendor/test/cases/regression.154.css +0 -8
- data/vendor/test/cases/regression.154.styl +0 -14
- data/vendor/test/cases/regression.156.css +0 -4
- data/vendor/test/cases/regression.156.styl +0 -6
- data/vendor/test/cases/regression.212.css +0 -15
- data/vendor/test/cases/regression.212.styl +0 -14
- data/vendor/test/cases/regression.216.css +0 -10
- data/vendor/test/cases/regression.216.styl +0 -8
- data/vendor/test/cases/regression.220.css +0 -5
- data/vendor/test/cases/regression.220.styl +0 -5
- data/vendor/test/cases/regression.229.css +0 -12
- data/vendor/test/cases/regression.229.styl +0 -9
- data/vendor/test/cases/regression.233.css +0 -6
- data/vendor/test/cases/regression.233.styl +0 -7
- data/vendor/test/cases/regression.235.css +0 -11
- data/vendor/test/cases/regression.235.styl +0 -13
- data/vendor/test/cases/regression.243.css +0 -3
- data/vendor/test/cases/regression.243.styl +0 -4
- data/vendor/test/cases/regression.244.css +0 -3
- data/vendor/test/cases/regression.244.styl +0 -3
- data/vendor/test/cases/regression.247.css +0 -6
- data/vendor/test/cases/regression.247.styl +0 -6
- data/vendor/test/cases/regression.248.compressed.css +0 -4
- data/vendor/test/cases/regression.248.compressed.styl +0 -10
- data/vendor/test/cases/regression.252.css +0 -13
- data/vendor/test/cases/regression.252.styl +0 -13
- data/vendor/test/cases/regression.260.css +0 -6
- data/vendor/test/cases/regression.260.styl +0 -6
- data/vendor/test/cases/regression.267.css +0 -3
- data/vendor/test/cases/regression.267.styl +0 -3
- data/vendor/test/cases/regression.270.css +0 -5
- data/vendor/test/cases/regression.270.styl +0 -7
- data/vendor/test/cases/regression.272.css +0 -11
- data/vendor/test/cases/regression.272.styl +0 -17
- data/vendor/test/cases/regression.274.css +0 -14
- data/vendor/test/cases/regression.274.styl +0 -16
- data/vendor/test/cases/regression.292.css +0 -3
- data/vendor/test/cases/regression.292.styl +0 -3
- data/vendor/test/cases/regression.360.css +0 -19
- data/vendor/test/cases/regression.360.styl +0 -1
- data/vendor/test/cases/regression.368.css +0 -4
- data/vendor/test/cases/regression.368.styl +0 -3
- data/vendor/test/cases/regression.379.css +0 -6
- data/vendor/test/cases/regression.379.styl +0 -10
- data/vendor/test/cases/regression.380.css +0 -8
- data/vendor/test/cases/regression.380.styl +0 -14
- data/vendor/test/cases/regression.388.css +0 -2
- data/vendor/test/cases/regression.388.styl +0 -6
- data/vendor/test/cases/regression.415.css +0 -5
- data/vendor/test/cases/regression.415.styl +0 -3
- data/vendor/test/cases/regression.420.css +0 -21
- data/vendor/test/cases/regression.420.styl +0 -29
- data/vendor/test/cases/regression.432.css +0 -5
- data/vendor/test/cases/regression.432.styl +0 -4
- data/vendor/test/cases/regression.440.css +0 -5
- data/vendor/test/cases/regression.440.styl +0 -7
- data/vendor/test/cases/regression.449.css +0 -9
- data/vendor/test/cases/regression.449.styl +0 -10
- data/vendor/test/cases/regression.458.css +0 -3
- data/vendor/test/cases/regression.458.styl +0 -3
- data/vendor/test/cases/regression.460.css +0 -13
- data/vendor/test/cases/regression.460.styl +0 -18
- data/vendor/test/cases/regression.469.css +0 -4
- data/vendor/test/cases/regression.469.styl +0 -6
- data/vendor/test/cases/regression.472.css +0 -10
- data/vendor/test/cases/regression.472.styl +0 -23
- data/vendor/test/cases/regression.475.css +0 -6
- data/vendor/test/cases/regression.475.styl +0 -7
- data/vendor/test/cases/regression.480.css +0 -9
- data/vendor/test/cases/regression.480.styl +0 -12
- data/vendor/test/cases/regression.484.css +0 -9
- data/vendor/test/cases/regression.484.styl +0 -8
- data/vendor/test/cases/regression.498.css +0 -8
- data/vendor/test/cases/regression.498.styl +0 -11
- data/vendor/test/cases/regression.499.css +0 -14
- data/vendor/test/cases/regression.499.styl +0 -20
- data/vendor/test/cases/regression.503.css +0 -65
- data/vendor/test/cases/regression.503.styl +0 -7
- data/vendor/test/cases/regression.504.css +0 -65
- data/vendor/test/cases/regression.504.styl +0 -12
- data/vendor/test/cases/regression.524.css +0 -4
- data/vendor/test/cases/regression.524.styl +0 -7
- data/vendor/test/cases/regression.535.css +0 -3
- data/vendor/test/cases/regression.535.styl +0 -9
- data/vendor/test/cases/regression.536.css +0 -3
- data/vendor/test/cases/regression.536.styl +0 -5
- data/vendor/test/cases/reset.css +0 -70
- data/vendor/test/cases/reset.styl +0 -16
- data/vendor/test/cases/rule.charset.css +0 -1
- data/vendor/test/cases/rule.charset.styl +0 -2
- data/vendor/test/cases/rulset.css +0 -4
- data/vendor/test/cases/rulset.newline.css +0 -5
- data/vendor/test/cases/rulset.newline.styl +0 -5
- data/vendor/test/cases/rulset.styl +0 -3
- data/vendor/test/cases/scope.complex.css +0 -10
- data/vendor/test/cases/scope.complex.styl +0 -16
- data/vendor/test/cases/scope.css +0 -5
- data/vendor/test/cases/scope.nested.css +0 -9
- data/vendor/test/cases/scope.nested.styl +0 -10
- data/vendor/test/cases/scope.styl +0 -12
- data/vendor/test/cases/selector.interpolation.css +0 -57
- data/vendor/test/cases/selector.interpolation.styl +0 -45
- data/vendor/test/cases/selectors.complex.css +0 -28
- data/vendor/test/cases/selectors.complex.styl +0 -27
- data/vendor/test/cases/selectors.css +0 -50
- data/vendor/test/cases/selectors.nested.comma.css +0 -9
- data/vendor/test/cases/selectors.nested.comma.styl +0 -8
- data/vendor/test/cases/selectors.nested.css +0 -34
- data/vendor/test/cases/selectors.nested.styl +0 -33
- data/vendor/test/cases/selectors.pseudo.css +0 -27
- data/vendor/test/cases/selectors.pseudo.elements.css +0 -26
- data/vendor/test/cases/selectors.pseudo.elements.styl +0 -29
- data/vendor/test/cases/selectors.pseudo.styl +0 -24
- data/vendor/test/cases/selectors.styl +0 -46
- data/vendor/test/cases/self-assignment.css +0 -3
- data/vendor/test/cases/self-assignment.styl +0 -4
- data/vendor/test/cases/vargs.call.css +0 -24
- data/vendor/test/cases/vargs.call.styl +0 -40
- data/vendor/test/cases/vargs.css +0 -30
- data/vendor/test/cases/vargs.styl +0 -49
- data/vendor/test/cases/variable.css +0 -3
- data/vendor/test/cases/variable.styl +0 -4
- data/vendor/test/cases/variables.css +0 -12
- data/vendor/test/cases/variables.styl +0 -17
- 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 +0 -169
data/vendor/docs/bifs.md
DELETED
@@ -1,598 +0,0 @@
|
|
1
|
-
|
2
|
-
## Built-in Functions
|
3
|
-
|
4
|
-
### red(color)
|
5
|
-
|
6
|
-
Return the red component of the given `color`.
|
7
|
-
|
8
|
-
red(#c00)
|
9
|
-
// => 204
|
10
|
-
|
11
|
-
### green(color)
|
12
|
-
|
13
|
-
Return the green component of the given `color`.
|
14
|
-
|
15
|
-
green(#0c0)
|
16
|
-
// => 204
|
17
|
-
|
18
|
-
### blue(color)
|
19
|
-
|
20
|
-
Return the blue component of the given `color`.
|
21
|
-
|
22
|
-
red(#00c)
|
23
|
-
// => 204
|
24
|
-
|
25
|
-
### alpha(color)
|
26
|
-
|
27
|
-
Return the alpha component of the given `color`.
|
28
|
-
|
29
|
-
alpha(#fff)
|
30
|
-
// => 1
|
31
|
-
|
32
|
-
alpha(rgba(0,0,0,0.3))
|
33
|
-
// => 0.3
|
34
|
-
|
35
|
-
### dark(color)
|
36
|
-
|
37
|
-
Check if `color` is dark:
|
38
|
-
|
39
|
-
dark(black)
|
40
|
-
// => true
|
41
|
-
|
42
|
-
dark(#005716)
|
43
|
-
// => true
|
44
|
-
|
45
|
-
dark(white)
|
46
|
-
// => false
|
47
|
-
|
48
|
-
|
49
|
-
### light(color)
|
50
|
-
|
51
|
-
Check if `color` is light:
|
52
|
-
|
53
|
-
light(black)
|
54
|
-
// => false
|
55
|
-
|
56
|
-
light(white)
|
57
|
-
// => true
|
58
|
-
|
59
|
-
light(#00FF40)
|
60
|
-
// => true
|
61
|
-
|
62
|
-
### hue(color)
|
63
|
-
|
64
|
-
Return the hue of the given `color`.
|
65
|
-
|
66
|
-
hue(hsla(50deg, 100%, 80%))
|
67
|
-
// => 50deg
|
68
|
-
|
69
|
-
### saturation(color)
|
70
|
-
|
71
|
-
Return the saturation of the given `color`.
|
72
|
-
|
73
|
-
saturation(hsla(50deg, 100%, 80%))
|
74
|
-
// => 100%
|
75
|
-
|
76
|
-
### lightness(color)
|
77
|
-
|
78
|
-
Return the lightness of the given `color`.
|
79
|
-
|
80
|
-
lightness(hsla(50deg, 100%, 80%))
|
81
|
-
// => 80%
|
82
|
-
|
83
|
-
### push(expr, args...)
|
84
|
-
|
85
|
-
Push the given `args` to `expr`.
|
86
|
-
|
87
|
-
nums = 1 2
|
88
|
-
push(nums, 3, 4, 5)
|
89
|
-
|
90
|
-
nums
|
91
|
-
// => 1 2 3 4 5
|
92
|
-
|
93
|
-
Aliased as `append()`
|
94
|
-
|
95
|
-
### unshift(expr, args...)
|
96
|
-
|
97
|
-
Unshift the given `args` to `expr`.
|
98
|
-
|
99
|
-
nums = 4 5
|
100
|
-
unshift(nums, 3, 2, 1)
|
101
|
-
|
102
|
-
nums
|
103
|
-
// => 1 2 3 4 5
|
104
|
-
|
105
|
-
Aliased as `prepend()`
|
106
|
-
|
107
|
-
### keys(pairs)
|
108
|
-
|
109
|
-
Return keys in the given `pairs`:
|
110
|
-
|
111
|
-
pairs = (one 1) (two 2) (three 3)
|
112
|
-
keys(pairs)
|
113
|
-
// => one two three
|
114
|
-
|
115
|
-
### values(pairs)
|
116
|
-
|
117
|
-
Return values in the given `pairs`:
|
118
|
-
|
119
|
-
pairs = (one 1) (two 2) (three 3)
|
120
|
-
values(pairs)
|
121
|
-
// => 1 2 3
|
122
|
-
|
123
|
-
### typeof(node)
|
124
|
-
|
125
|
-
Return type of `node` as a string.
|
126
|
-
|
127
|
-
type(12)
|
128
|
-
// => 'unit'
|
129
|
-
|
130
|
-
typeof(12)
|
131
|
-
// => 'unit'
|
132
|
-
|
133
|
-
typeof(#fff)
|
134
|
-
// => 'rgba'
|
135
|
-
|
136
|
-
type-of(#fff)
|
137
|
-
// => 'rgba'
|
138
|
-
|
139
|
-
Aliased as `type-of` and `type`.
|
140
|
-
|
141
|
-
### unit(unit[, type])
|
142
|
-
|
143
|
-
Return a string for the type of `unit` or an empty string,
|
144
|
-
or assign the given `type` without unit conversion.
|
145
|
-
|
146
|
-
unit(10)
|
147
|
-
// => ''
|
148
|
-
|
149
|
-
unit(15in)
|
150
|
-
// => 'in'
|
151
|
-
|
152
|
-
unit(15%, 'px')
|
153
|
-
// => 15px
|
154
|
-
|
155
|
-
unit(15%, px)
|
156
|
-
// => 15px
|
157
|
-
|
158
|
-
### match(pattern, string)
|
159
|
-
|
160
|
-
Test if `string` matches the given `pattern`.
|
161
|
-
|
162
|
-
match('^foo(bar)?', foo)
|
163
|
-
match('^foo(bar)?', foobar)
|
164
|
-
// => true
|
165
|
-
|
166
|
-
match('^foo(bar)?', 'foo')
|
167
|
-
match('^foo(bar)?', 'foobar')
|
168
|
-
// => true
|
169
|
-
|
170
|
-
match('^foo(bar)?', 'bar')
|
171
|
-
// => false
|
172
|
-
|
173
|
-
### abs(unit)
|
174
|
-
|
175
|
-
abs(-5px)
|
176
|
-
// => 5px
|
177
|
-
|
178
|
-
abs(5px)
|
179
|
-
// => 5px
|
180
|
-
|
181
|
-
### ceil(unit)
|
182
|
-
|
183
|
-
ceil(5.5in)
|
184
|
-
// => 6in
|
185
|
-
|
186
|
-
### floor(unit)
|
187
|
-
|
188
|
-
floor(5.6px)
|
189
|
-
// => 5px
|
190
|
-
|
191
|
-
### round(unit)
|
192
|
-
|
193
|
-
round(5.5px)
|
194
|
-
// => 6px
|
195
|
-
|
196
|
-
round(5.4px)
|
197
|
-
// => 5px
|
198
|
-
|
199
|
-
### min(a, b)
|
200
|
-
|
201
|
-
min(1, 5)
|
202
|
-
// => 1
|
203
|
-
|
204
|
-
### max(a, b)
|
205
|
-
|
206
|
-
max(1, 5)
|
207
|
-
// => 5
|
208
|
-
|
209
|
-
### even(unit)
|
210
|
-
|
211
|
-
even(6px)
|
212
|
-
// => true
|
213
|
-
|
214
|
-
### odd(unit)
|
215
|
-
|
216
|
-
odd(5mm)
|
217
|
-
// => true
|
218
|
-
|
219
|
-
### sum(nums)
|
220
|
-
|
221
|
-
sum(1 2 3)
|
222
|
-
// => 6
|
223
|
-
|
224
|
-
### avg(nums)
|
225
|
-
|
226
|
-
avg(1 2 3)
|
227
|
-
// => 2
|
228
|
-
|
229
|
-
### join(delim, vals...)
|
230
|
-
|
231
|
-
Join the given `vals` with `delim`.
|
232
|
-
|
233
|
-
join(' ', 1 2 3)
|
234
|
-
// => "1 2 3"
|
235
|
-
|
236
|
-
join(',', 1 2 3)
|
237
|
-
// => "1,2,3"
|
238
|
-
|
239
|
-
join(', ', foo bar baz)
|
240
|
-
// => "foo, bar, baz"
|
241
|
-
|
242
|
-
join(', ', foo, bar, baz)
|
243
|
-
// => "foo, bar, baz"
|
244
|
-
|
245
|
-
join(', ', 1 2, 3 4, 5 6)
|
246
|
-
// => "1 2, 3 4, 5 6"
|
247
|
-
|
248
|
-
### hsla(color | h,s,l,a)
|
249
|
-
|
250
|
-
Convert the given `color` to an `HSLA` node,
|
251
|
-
or h,s,l,a component values.
|
252
|
-
|
253
|
-
hslaa(10deg, 50%, 30%, 0.5)
|
254
|
-
// => HSLA
|
255
|
-
|
256
|
-
hslaa(#ffcc00)
|
257
|
-
// => HSLA
|
258
|
-
|
259
|
-
### hsla(color | h,s,l)
|
260
|
-
|
261
|
-
Convert the given `color` to an `HSLA` node,
|
262
|
-
or h,s,l component values.
|
263
|
-
|
264
|
-
hsla(10, 50, 30)
|
265
|
-
// => HSLA
|
266
|
-
|
267
|
-
hsla(#ffcc00)
|
268
|
-
// => HSLA
|
269
|
-
|
270
|
-
### rgba(color | r,g,b,a)
|
271
|
-
|
272
|
-
Return `RGBA` from the r,g,b,a channels or provide a `color` to tweak the alpha.
|
273
|
-
|
274
|
-
rgba(255,0,0,0.5)
|
275
|
-
// => rgba(255,0,0,0.5)
|
276
|
-
|
277
|
-
rgba(255,0,0,1)
|
278
|
-
// => #ff0000
|
279
|
-
|
280
|
-
rgba(#ffcc00, 0.5)
|
281
|
-
// rgba(255,204,0,0.5)
|
282
|
-
|
283
|
-
Alternatively stylus supports the `#rgba` and `#rrggbbaa` notations as well:
|
284
|
-
|
285
|
-
#fc08
|
286
|
-
// => rgba(255,204,0,0.5)
|
287
|
-
|
288
|
-
#ffcc00ee
|
289
|
-
// => rgba(255,204,0,0.9)
|
290
|
-
|
291
|
-
### rgb(color | r,g,b)
|
292
|
-
|
293
|
-
Return a `RGBA` from the r,g,b channels or cast to an `RGBA` node.
|
294
|
-
|
295
|
-
rgb(255,204,0)
|
296
|
-
// => #ffcc00
|
297
|
-
|
298
|
-
rgb(#fff)
|
299
|
-
// => #fff
|
300
|
-
|
301
|
-
### lighten(color, amount)
|
302
|
-
|
303
|
-
Lighten the given `color` by `amount`. This function is
|
304
|
-
unit-sensitive, for example supporting percentages as shown
|
305
|
-
below.
|
306
|
-
|
307
|
-
lighten(#2c2c2c, 30)
|
308
|
-
// => #787878
|
309
|
-
|
310
|
-
lighten(#2c2c2c, 30%)
|
311
|
-
// => #393939
|
312
|
-
|
313
|
-
### darken(color, amount)
|
314
|
-
|
315
|
-
Darken the given `color` by `amount`.This function is
|
316
|
-
unit-sensitive, for example supporting percentages as shown
|
317
|
-
below.
|
318
|
-
|
319
|
-
darken(#D62828, 30)
|
320
|
-
// => #551010
|
321
|
-
|
322
|
-
darken(#D62828, 30%)
|
323
|
-
// => #961c1c
|
324
|
-
|
325
|
-
### desaturate(color, amount)
|
326
|
-
|
327
|
-
Desaturate the given `color` by `amount`.
|
328
|
-
|
329
|
-
desaturate(#f00, 40%)
|
330
|
-
// => #c33
|
331
|
-
|
332
|
-
### saturate(color, amount)
|
333
|
-
|
334
|
-
Saturate the given `color` by `amount`.
|
335
|
-
|
336
|
-
saturate(#c33, 40%)
|
337
|
-
// => #f00
|
338
|
-
|
339
|
-
### unquote(str | ident)
|
340
|
-
|
341
|
-
Unquote the given `str` and returned as a `Literal` node.
|
342
|
-
|
343
|
-
unquote("sans-serif")
|
344
|
-
// => sans-serif
|
345
|
-
|
346
|
-
unquote(sans-serif)
|
347
|
-
// => sans-serif
|
348
|
-
|
349
|
-
unquote('1px / 2px')
|
350
|
-
// => 1px / 2px
|
351
|
-
|
352
|
-
### s(fmt, ...)
|
353
|
-
|
354
|
-
The `s()` function is similar to `unquote()`, in that it returns
|
355
|
-
a `Literal` node, however it accepts a format string much like C's `sprintf()`. Currently the only specifier is `%s`.
|
356
|
-
|
357
|
-
s('bar()');
|
358
|
-
// => bar()
|
359
|
-
|
360
|
-
s('bar(%s)', 'baz');
|
361
|
-
// => bar("baz")
|
362
|
-
|
363
|
-
s('bar(%s)', baz);
|
364
|
-
// => bar(baz)
|
365
|
-
|
366
|
-
s('bar(%s)', 15px);
|
367
|
-
// => bar(15px)
|
368
|
-
|
369
|
-
s('rgba(%s, %s, %s, 0.5)', 255, 100, 50);
|
370
|
-
// => rgba(255, 100, 50, 0.5)
|
371
|
-
|
372
|
-
s('bar(%Z)', 15px);
|
373
|
-
// => bar(%Z)
|
374
|
-
|
375
|
-
s('bar(%s, %s)', 15px);
|
376
|
-
// => bar(15px, null)
|
377
|
-
|
378
|
-
Check out the `%` string operator for equivalent behaviour.
|
379
|
-
|
380
|
-
### operate(op, left, right)
|
381
|
-
|
382
|
-
Perform the given `op` on the `left` and `right` operands:
|
383
|
-
|
384
|
-
op = '+'
|
385
|
-
operate(op, 15, 5)
|
386
|
-
// => 20
|
387
|
-
|
388
|
-
### length([expr])
|
389
|
-
|
390
|
-
Parenthesized expressions may act as tuples, the `length()` function returns the length of such expressions.
|
391
|
-
|
392
|
-
length((1 2 3 4))
|
393
|
-
// => 4
|
394
|
-
|
395
|
-
length((1 2))
|
396
|
-
// => 2
|
397
|
-
|
398
|
-
length((1))
|
399
|
-
// => 1
|
400
|
-
|
401
|
-
length(())
|
402
|
-
// => 0
|
403
|
-
|
404
|
-
length(1 2 3)
|
405
|
-
// => 3
|
406
|
-
|
407
|
-
length(1)
|
408
|
-
// => 1
|
409
|
-
|
410
|
-
length()
|
411
|
-
// => 0
|
412
|
-
|
413
|
-
### warn(msg)
|
414
|
-
|
415
|
-
Warn with the given error `msg`, does not exit.
|
416
|
-
|
417
|
-
warn("oh noes!")
|
418
|
-
|
419
|
-
### error(msg)
|
420
|
-
|
421
|
-
Exits with the given error `msg`.
|
422
|
-
|
423
|
-
add(a, b)
|
424
|
-
unless a is a 'unit' and b is a 'unit'
|
425
|
-
error('add() expects units')
|
426
|
-
a + b
|
427
|
-
|
428
|
-
### last(expr)
|
429
|
-
|
430
|
-
Return the _last_ value in the given `expr`:
|
431
|
-
|
432
|
-
nums = 1 2 3
|
433
|
-
last(nums)
|
434
|
-
last(1 2 3)
|
435
|
-
// => 3
|
436
|
-
|
437
|
-
list = (one 1) (two 2) (three 3)
|
438
|
-
last(list)
|
439
|
-
// => (three 3)
|
440
|
-
|
441
|
-
### p(expr)
|
442
|
-
|
443
|
-
Inspect the given `expr`:
|
444
|
-
|
445
|
-
fonts = Arial, sans-serif
|
446
|
-
p('test')
|
447
|
-
p(123)
|
448
|
-
p((1 2 3))
|
449
|
-
p(fonts)
|
450
|
-
p(#fff)
|
451
|
-
p(rgba(0,0,0,0.2))
|
452
|
-
|
453
|
-
add(a, b)
|
454
|
-
a + b
|
455
|
-
|
456
|
-
p(add)
|
457
|
-
|
458
|
-
stdout:
|
459
|
-
|
460
|
-
inspect: "test"
|
461
|
-
inspect: 123
|
462
|
-
inspect: 1 2 3
|
463
|
-
inspect: Arial, sans-serif
|
464
|
-
inspect: #fff
|
465
|
-
inspect: rgba(0,0,0,0.2)
|
466
|
-
inspect: add(a, b)
|
467
|
-
|
468
|
-
### opposite-position(positions)
|
469
|
-
|
470
|
-
Return the opposites of the given `positions`.
|
471
|
-
|
472
|
-
opposite-position(right)
|
473
|
-
// => left
|
474
|
-
|
475
|
-
opposite-position(top left)
|
476
|
-
// => bottom right
|
477
|
-
|
478
|
-
opposite-position('top' 'left')
|
479
|
-
// => bottom right
|
480
|
-
|
481
|
-
### image-size(path)
|
482
|
-
|
483
|
-
Returns the `width` and `height` of the image found at `path`. Lookups are performed in the same manner as `@import`, altered by the `paths` setting.
|
484
|
-
|
485
|
-
width(img)
|
486
|
-
return image-size(img)[0]
|
487
|
-
|
488
|
-
height(img)
|
489
|
-
return image-size(img)[1]
|
490
|
-
|
491
|
-
image-size('tux.png')
|
492
|
-
// => 405px 250px
|
493
|
-
|
494
|
-
image-size('tux.png')[0] == width('tux.png')
|
495
|
-
// => true
|
496
|
-
|
497
|
-
### add-property(name, expr)
|
498
|
-
|
499
|
-
Adds property `name`, with the given `expr` to the closest block.
|
500
|
-
|
501
|
-
For example:
|
502
|
-
|
503
|
-
something()
|
504
|
-
add-property('bar', 1 2 3)
|
505
|
-
s('bar')
|
506
|
-
|
507
|
-
body
|
508
|
-
foo: something()
|
509
|
-
|
510
|
-
yields:
|
511
|
-
|
512
|
-
body {
|
513
|
-
bar: 1 2 3;
|
514
|
-
foo: bar;
|
515
|
-
}
|
516
|
-
|
517
|
-
Next the "magic" `current-property` local variable comes into play. This variable is automatically available to function bodies, and contains an expression with the current property's name, and value.
|
518
|
-
|
519
|
-
For example if we were to inspect this local variable using `p()`, we
|
520
|
-
get the following:
|
521
|
-
|
522
|
-
p(current-property)
|
523
|
-
// => "foo" (foo __CALL__ bar baz)
|
524
|
-
|
525
|
-
p(current-property[0])
|
526
|
-
// => "foo"
|
527
|
-
|
528
|
-
p(current-property[1])
|
529
|
-
// => foo __CALL__ bar baz
|
530
|
-
|
531
|
-
Using `current-property` we can take our example a bit further, and duplicate the property with new values, and a conditional to ensure the function is only used within a property value.
|
532
|
-
|
533
|
-
something(n)
|
534
|
-
if current-property
|
535
|
-
add-property(current-property[0], s('-webkit-something(%s)', n))
|
536
|
-
add-property(current-property[0], s('-moz-something(%s)', n))
|
537
|
-
s('something(%s)', n)
|
538
|
-
else
|
539
|
-
error('something() must be used within a property')
|
540
|
-
|
541
|
-
body {
|
542
|
-
foo: something(15px) bar;
|
543
|
-
}
|
544
|
-
|
545
|
-
yields:
|
546
|
-
|
547
|
-
body {
|
548
|
-
foo: -webkit-something(15px);
|
549
|
-
foo: -moz-something(15px);
|
550
|
-
foo: something(15px) bar;
|
551
|
-
}
|
552
|
-
|
553
|
-
If you noticed in the example above, `bar` is only present for the initial call, since we returned `something(15px)`, it remained in-place within the expression, however the others do not take the rest of the expression into account.
|
554
|
-
|
555
|
-
Our more robust solution below, defines a function named `replace()` which clones the expression to prevent mutation, replaces the string value of an expression with another, and returns the cloned expression. We then move on to replace `__CALL__` within the expressions, which represents the cyclic call to `something()`.
|
556
|
-
|
557
|
-
replace(expr, str, val)
|
558
|
-
expr = clone(expr)
|
559
|
-
for e, i in expr
|
560
|
-
if str == e
|
561
|
-
expr[i] = val
|
562
|
-
expr
|
563
|
-
|
564
|
-
something(n)
|
565
|
-
if current-property
|
566
|
-
val = current-property[1]
|
567
|
-
webkit = replace(val, '__CALL__', s('-webkit-something(%s)', n))
|
568
|
-
moz = replace(val, '__CALL__', s('-moz-something(%s)', n))
|
569
|
-
add-property(current-property[0], webkit)
|
570
|
-
add-property(current-property[0], moz)
|
571
|
-
s('something(%s)', n)
|
572
|
-
else
|
573
|
-
error('something() must be used within a property')
|
574
|
-
|
575
|
-
yields:
|
576
|
-
|
577
|
-
body {
|
578
|
-
foo: foo -webkit-something(5px) bar baz;
|
579
|
-
foo: foo -moz-something(5px) bar baz;
|
580
|
-
foo: foo something(5px) bar baz;
|
581
|
-
}
|
582
|
-
|
583
|
-
Our implementation is now fully transparent both in regards to the property it is called within, and the position of the call. This powerful concept aids in transparent vendor support for function calls, such as gradients.
|
584
|
-
|
585
|
-
### Undefined Functions
|
586
|
-
|
587
|
-
Undefined functions will output as literals, so for example
|
588
|
-
we may call `rgba-stop(50%, #fff)` within our css, and it will
|
589
|
-
output as you would expect. We can use this within helpers as well.
|
590
|
-
|
591
|
-
In the example below we simply define the function `stop()` which
|
592
|
-
returns the literal `rgba-stop()` call.
|
593
|
-
|
594
|
-
stop(pos, rgba)
|
595
|
-
rgba-stop(pos, rgba)
|
596
|
-
|
597
|
-
stop(50%, orange)
|
598
|
-
// => rgba-stop(50%, #ffa500)
|
data/vendor/docs/comments.md
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
|
2
|
-
## Comments
|
3
|
-
|
4
|
-
Stylus supports three kinds of comments: single-line, and multi-line comments, and multi-line buffered comments.
|
5
|
-
|
6
|
-
## Single-line
|
7
|
-
|
8
|
-
Single-line comments look like JavaScript comments, and do not output in the resulting CSS:
|
9
|
-
|
10
|
-
// I'm a comment!
|
11
|
-
body
|
12
|
-
padding 5px // some awesome padding
|
13
|
-
|
14
|
-
## Multi-line
|
15
|
-
|
16
|
-
Multi-line comments look identical to regular CSS comments. However, they only output when the `compress` option is not enabled.
|
17
|
-
|
18
|
-
/*
|
19
|
-
* Adds the given numbers together.
|
20
|
-
*/
|
21
|
-
|
22
|
-
add(a, b)
|
23
|
-
a + b
|
24
|
-
|
25
|
-
## Multi-line buffered
|
26
|
-
|
27
|
-
Multi-line comments which are not suppressed start with `/*!`. This tells Stylus to output the comment regardless of compression.
|
28
|
-
|
29
|
-
/*!
|
30
|
-
* Adds the given numbers together.
|
31
|
-
*/
|
32
|
-
|
33
|
-
add(a, b)
|
34
|
-
a + b
|
35
|
-
|
data/vendor/docs/compare.md
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
## Implementation Comparisons
|
2
|
-
|
3
|
-
Below we go head to head with other implementations.
|
4
|
-
|
5
|
-
### Variables
|
6
|
-
|
7
|
-
SCSS:
|
8
|
-
|
9
|
-
$main-color: #006;
|
10
|
-
color: $main-color;
|
11
|
-
|
12
|
-
Less:
|
13
|
-
|
14
|
-
@main-color: #006;
|
15
|
-
color: @main-color;
|
16
|
-
|
17
|
-
Stylus:
|
18
|
-
|
19
|
-
main-color = #006
|
20
|
-
color main-color
|
21
|
-
|
22
|
-
### Mixins
|
23
|
-
|
24
|
-
SCSS:
|
25
|
-
|
26
|
-
@mixin pad($x, $y) {
|
27
|
-
padding: $y $x;
|
28
|
-
}
|
29
|
-
|
30
|
-
.msg {
|
31
|
-
@include pad(5px, 10px);
|
32
|
-
}
|
33
|
-
|
34
|
-
Less:
|
35
|
-
|
36
|
-
.pad(@x, @y) {
|
37
|
-
padding: @y @x;
|
38
|
-
}
|
39
|
-
|
40
|
-
.msg {
|
41
|
-
.pad(5px, 10px);
|
42
|
-
}
|
43
|
-
|
44
|
-
Stylus:
|
45
|
-
|
46
|
-
pad(x, y)
|
47
|
-
padding y x
|
48
|
-
|
49
|
-
.msg
|
50
|
-
pad(5px, 10px)
|
51
|
-
|
52
|
-
### Larger Example
|
53
|
-
|
54
|
-
Less:
|
55
|
-
|
56
|
-
.box-shadow (@x: 0, @y: 0, @blur: 1px, @alpha) {
|
57
|
-
@val: @x @y @blur rgba(0, 0, 0, @alpha);
|
58
|
-
box-shadow: @val;
|
59
|
-
-webkit-box-shadow: @val;
|
60
|
-
-moz-box-shadow: @val;
|
61
|
-
}
|
62
|
-
.box {
|
63
|
-
@base: #f938ab;
|
64
|
-
color: saturate(@base, 5%);
|
65
|
-
border-color: lighten(@base, 30%);
|
66
|
-
div { .box-shadow(0, 0, 5px, 0.4) }
|
67
|
-
}
|
68
|
-
|
69
|
-
Stylus:
|
70
|
-
|
71
|
-
box-shadow()
|
72
|
-
-webkit-box-shadow arguments
|
73
|
-
-moz-box-shadow arguments
|
74
|
-
box-shadow arguments
|
75
|
-
|
76
|
-
.box
|
77
|
-
base = #f938ab
|
78
|
-
color saturate(base, 5%)
|
79
|
-
border-color lighten(base, 30%)
|
80
|
-
div
|
81
|
-
box-shadow 0 0 5px 0.4
|