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/conditionals.md
DELETED
@@ -1,107 +0,0 @@
|
|
1
|
-
|
2
|
-
## Conditionals
|
3
|
-
|
4
|
-
Conditionals provide control flow to a language which is otherwise static, providing conditional imports, mixins, functions, and more. The examples below are simply examples, and not recommended :)
|
5
|
-
|
6
|
-
### if / else if / else
|
7
|
-
|
8
|
-
The `if` conditional works as you would expect, simply accepting an expression, evaluating the following block when `true`. Along with `if` are the typical `else if` and `else` tokens, acting as fallbacks.
|
9
|
-
|
10
|
-
The example below would conditionally overload the `padding` property, swapping it for `margin`.
|
11
|
-
|
12
|
-
overload-padding = true
|
13
|
-
|
14
|
-
if overload-padding
|
15
|
-
padding(y, x)
|
16
|
-
margin y x
|
17
|
-
|
18
|
-
body
|
19
|
-
padding 5px 10px
|
20
|
-
|
21
|
-
Another example:
|
22
|
-
|
23
|
-
box(x, y, margin = false)
|
24
|
-
padding y x
|
25
|
-
if margin
|
26
|
-
margin y x
|
27
|
-
|
28
|
-
body
|
29
|
-
box(5px, 10px, true)
|
30
|
-
|
31
|
-
Another `box()` helper:
|
32
|
-
|
33
|
-
box(x, y, margin-only = false)
|
34
|
-
if margin-only
|
35
|
-
margin y x
|
36
|
-
else
|
37
|
-
padding y x
|
38
|
-
|
39
|
-
### unless
|
40
|
-
|
41
|
-
For users familiar with the Ruby programming language, we have the `unless` conditional. It’s basically the opposite of `if`—essentially `if (!(expr))`.
|
42
|
-
|
43
|
-
In the example below, if `disable-padding-override` is `undefined` or `false`, `padding` will be overridden, displaying `margin` instead. But if it’s `true`, `padding` will continue outputting `padding 5px 10px` as expected.
|
44
|
-
|
45
|
-
disable-padding-override = true
|
46
|
-
|
47
|
-
unless disable-padding-override is defined and disable-padding-override
|
48
|
-
padding(x, y)
|
49
|
-
margin y x
|
50
|
-
|
51
|
-
body
|
52
|
-
padding 5px 10px
|
53
|
-
|
54
|
-
### Postfix Conditionals
|
55
|
-
|
56
|
-
Stylus supports postfix conditionals. This means that `if` and `unless` act as operators; they evaluate the left-hand operand when the right-hand expression is truthy.
|
57
|
-
|
58
|
-
|
59
|
-
For example let's define `negative()` to perform some basic type checking. Below we use block-style conditionals:
|
60
|
-
|
61
|
-
negative(n)
|
62
|
-
unless n is a 'unit'
|
63
|
-
error('invalid number')
|
64
|
-
if n < 0
|
65
|
-
yes
|
66
|
-
else
|
67
|
-
no
|
68
|
-
|
69
|
-
Next, we utilize postfix conditionals to keep our function terse.
|
70
|
-
|
71
|
-
negative(n)
|
72
|
-
error('invalid number') unless n is a 'unit'
|
73
|
-
return yes if n < 0
|
74
|
-
no
|
75
|
-
|
76
|
-
Of course, we could take this further. For example, we could write `n < 0 ? yes : no`, or simply stick with booleans: `n < 0`.
|
77
|
-
|
78
|
-
Postfix conditionals may be applied to most single-line statements. For example, `@import`, `@charset`, mixins—and of course, properties as shown below:
|
79
|
-
|
80
|
-
|
81
|
-
pad(types = margin padding, n = 5px)
|
82
|
-
padding unit(n, px) if padding in types
|
83
|
-
margin unit(n, px) if margin in types
|
84
|
-
|
85
|
-
body
|
86
|
-
pad()
|
87
|
-
|
88
|
-
body
|
89
|
-
pad(margin)
|
90
|
-
|
91
|
-
body
|
92
|
-
apply-mixins = true
|
93
|
-
pad(padding, 10) if apply-mixins
|
94
|
-
|
95
|
-
yielding:
|
96
|
-
|
97
|
-
body {
|
98
|
-
padding: 5px;
|
99
|
-
margin: 5px;
|
100
|
-
}
|
101
|
-
body {
|
102
|
-
margin: 5px;
|
103
|
-
}
|
104
|
-
body {
|
105
|
-
padding: 10px;
|
106
|
-
}
|
107
|
-
|
data/vendor/docs/css-style.md
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
|
2
|
-
## CSS Style
|
3
|
-
|
4
|
-
Stylus transparently supports a regular CSS-style syntax. This means you don't need an alternative parser, or specify that a certain file uses a specific style.
|
5
|
-
|
6
|
-
### Example
|
7
|
-
|
8
|
-
Below is a small style using the indented approach:
|
9
|
-
|
10
|
-
border-radius()
|
11
|
-
-webkit-border-radius arguments
|
12
|
-
-moz-border-radius arguments
|
13
|
-
border-radius arguments
|
14
|
-
|
15
|
-
body a
|
16
|
-
font 12px/1.4 "Lucida Grande", Arial, sans-serif
|
17
|
-
background black
|
18
|
-
color #ccc
|
19
|
-
|
20
|
-
form input
|
21
|
-
padding 5px
|
22
|
-
border 1px solid
|
23
|
-
border-radius 5px
|
24
|
-
|
25
|
-
Since braces, colons, and semi-colons are optional, we could write this example just as we would with normal CSS:
|
26
|
-
|
27
|
-
border-radius() {
|
28
|
-
-webkit-border-radius: arguments;
|
29
|
-
-moz-border-radius: arguments;
|
30
|
-
border-radius: arguments;
|
31
|
-
}
|
32
|
-
|
33
|
-
body a {
|
34
|
-
font: 12px/1.4 "Lucida Grande", Arial, sans-serif;
|
35
|
-
background: black;
|
36
|
-
color: #ccc;
|
37
|
-
}
|
38
|
-
|
39
|
-
form input {
|
40
|
-
padding: 5px;
|
41
|
-
border: 1px solid;
|
42
|
-
border-radius: 5px;
|
43
|
-
}
|
44
|
-
|
45
|
-
Since we may mix and match the two variants, the following is valid as well:
|
46
|
-
|
47
|
-
border-radius()
|
48
|
-
-webkit-border-radius: arguments;
|
49
|
-
-moz-border-radius: arguments;
|
50
|
-
border-radius: arguments;
|
51
|
-
|
52
|
-
body a {
|
53
|
-
font: 12px/1.4 "Lucida Grande", Arial, sans-serif;
|
54
|
-
background: black;
|
55
|
-
color: #ccc;
|
56
|
-
}
|
57
|
-
|
58
|
-
form input
|
59
|
-
padding: 5px;
|
60
|
-
border: 1px solid;
|
61
|
-
border-radius: 5px;
|
62
|
-
|
63
|
-
Variables, functions, mixins, and all the other features provided by Stylus still work as expected:
|
64
|
-
|
65
|
-
main-color = white
|
66
|
-
main-hover-color = black
|
67
|
-
|
68
|
-
body a {
|
69
|
-
color: main-color;
|
70
|
-
&:hover { color: main-hover-color; }
|
71
|
-
}
|
72
|
-
|
73
|
-
body a { color: main-color; &:hover { color: main-hover-color; }}
|
74
|
-
|
75
|
-
There are a few caveats to this rule: since the two styles may be mixed and matched, some indentation rules still apply. So although not _every_ plain-CSS stylesheet will work with zero modification, this feature allows those who prefer CSS syntax to continue doing so while leveraging Stylus' other powerful features.
|
76
|
-
|
77
|
-
|
@@ -1,50 +0,0 @@
|
|
1
|
-
|
2
|
-
## Error Reporting
|
3
|
-
|
4
|
-
Stylus has fantastic error reporting built-in for syntax, parse, and evaluation errors—complete with stack traces, line numbers, and filenames.
|
5
|
-
|
6
|
-
### Parse Error
|
7
|
-
|
8
|
-
Parse error example:
|
9
|
-
|
10
|
-
body
|
11
|
-
form input
|
12
|
-
== padding 5px
|
13
|
-
|
14
|
-
Yielding:
|
15
|
-
|
16
|
-
Error: /Users/tj/Projects/stylus/testing/test.styl:4
|
17
|
-
3: ' form input'
|
18
|
-
4: ' == padding 5px'
|
19
|
-
|
20
|
-
illegal unary ==
|
21
|
-
|
22
|
-
### Evaluation Error
|
23
|
-
|
24
|
-
This "runtime" or evaluation error is caused by passing a string to `border-radius()`, instead of the expected `Unit` (by using our helper `ensure(n, 'unit')`).
|
25
|
-
|
26
|
-
ensure(val, type)
|
27
|
-
unless val is a type
|
28
|
-
error('expected a ' + type + ', but got ' + typeof(val))
|
29
|
-
|
30
|
-
border-radius(n)
|
31
|
-
ensure(n, 'unit')
|
32
|
-
-webkit-border-radius n
|
33
|
-
-moz-border-radius n
|
34
|
-
border-radius n
|
35
|
-
|
36
|
-
body
|
37
|
-
border-radius '5px'
|
38
|
-
|
39
|
-
Yielding:
|
40
|
-
|
41
|
-
Error: /Users/tj/Projects/stylus/examples/error.styl:12
|
42
|
-
11: ''
|
43
|
-
12: 'body'
|
44
|
-
13: ' border-radius \'5px\''
|
45
|
-
14: ''
|
46
|
-
|
47
|
-
expected a unit, but got string
|
48
|
-
at ensure() (/Users/tj/Projects/stylus/examples/error.styl:2)
|
49
|
-
at border-radius() (/Users/tj/Projects/stylus/examples/error.styl:5)
|
50
|
-
at "body" (/Users/tj/Projects/stylus/examples/error.styl:10)
|
data/vendor/docs/escape.md
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
## Escaping
|
2
|
-
|
3
|
-
Stylus lets you escape characters. This effectively turns them into identifiers, allowing them to be rendered as literals.
|
4
|
-
|
5
|
-
For example:
|
6
|
-
|
7
|
-
body
|
8
|
-
padding 1 \+ 2
|
9
|
-
|
10
|
-
Compiles to:
|
11
|
-
|
12
|
-
body {
|
13
|
-
padding: 1 + 2;
|
14
|
-
}
|
15
|
-
|
16
|
-
|
17
|
-
Note that Stylus requires that `/` is parenthesized when used in a property:
|
18
|
-
|
19
|
-
body
|
20
|
-
font 14px/1.4
|
21
|
-
font (14px/1.4)
|
22
|
-
|
23
|
-
yields:
|
24
|
-
|
25
|
-
body {
|
26
|
-
font: 14px/1.4;
|
27
|
-
font: 10px;
|
28
|
-
}
|
data/vendor/docs/executable.md
DELETED
@@ -1,163 +0,0 @@
|
|
1
|
-
|
2
|
-
## Stylus Executable
|
3
|
-
|
4
|
-
Stylus ships with the `stylus` executable for converting Stylus to CSS.
|
5
|
-
|
6
|
-
Usage: stylus [options] [command] [< in [> out]]
|
7
|
-
[file|dir ...]
|
8
|
-
|
9
|
-
Commands:
|
10
|
-
|
11
|
-
help <prop> Opens help info for <prop> in
|
12
|
-
your default browser. (OS X only)
|
13
|
-
|
14
|
-
Options:
|
15
|
-
|
16
|
-
-u, --use <path> Utilize the stylus plugin at <path>
|
17
|
-
-i, --interactive Start interactive REPL
|
18
|
-
-w, --watch Watch file(s) for changes and re-compile
|
19
|
-
-o, --out <dir> Output to <dir> when passing files
|
20
|
-
-C, --css <src> [dest] Convert CSS input to Stylus
|
21
|
-
-I, --include <path> Add <path> to lookup paths
|
22
|
-
-c, --compress Compress CSS output
|
23
|
-
-d, --compare Display input along with output
|
24
|
-
-f, --firebug Emits debug infos in the generated css that
|
25
|
-
can be used by the FireStylus Firebug plugin
|
26
|
-
-l, --line-numbers Emits comments in the generated CSS
|
27
|
-
indicating the corresponding Stylus line
|
28
|
-
-V, --version Display the version of Stylus
|
29
|
-
-h, --help Display help information
|
30
|
-
|
31
|
-
### STDIO Compilation Example
|
32
|
-
|
33
|
-
`stylus` reads from _stdin_ and outputs to _stdout_, so for example:
|
34
|
-
|
35
|
-
$ stylus --compress < some.styl > some.css
|
36
|
-
|
37
|
-
Try Stylus some in the terminal! Type below and press `CTRL-D` for `__EOF__`:
|
38
|
-
|
39
|
-
$ stylus
|
40
|
-
body
|
41
|
-
color red
|
42
|
-
font 14px Arial, sans-serif
|
43
|
-
|
44
|
-
### Compiling Files Example
|
45
|
-
|
46
|
-
`stylus` also accepts files and directories. For example, a directory named `css` will compile and output `.css` files in the same directory.
|
47
|
-
|
48
|
-
$ stylus css
|
49
|
-
|
50
|
-
The following will output to `./public/stylesheets`:
|
51
|
-
|
52
|
-
$ stylus css --out public/stylesheets
|
53
|
-
|
54
|
-
Or a few files:
|
55
|
-
|
56
|
-
$ stylus one.styl two.styl
|
57
|
-
|
58
|
-
For development purposes, you can use the `linenos` option to emit comments indicating
|
59
|
-
the Stylus filename and line number in the generated CSS:
|
60
|
-
|
61
|
-
$ stylus --line-numbers <path>
|
62
|
-
|
63
|
-
Or the `firebug` option if you want to use
|
64
|
-
the [FireStylus extension for Firebug](//github.com/LearnBoost/stylus/blob/master/docs/firebug.md):
|
65
|
-
|
66
|
-
$ stylus --firebug <path>
|
67
|
-
|
68
|
-
### Converting CSS
|
69
|
-
|
70
|
-
If you wish to convert CSS to the terse Stylus syntax, use the `--css` flag.
|
71
|
-
|
72
|
-
Via stdio:
|
73
|
-
|
74
|
-
$ stylus --css < test.css > test.styl
|
75
|
-
|
76
|
-
Output a `.styl` file of the same basename:
|
77
|
-
|
78
|
-
$ stylus --css test.css
|
79
|
-
|
80
|
-
Output to a specific destination:
|
81
|
-
|
82
|
-
$ stylus --css test.css /tmp/out.styl
|
83
|
-
|
84
|
-
### CSS Property Help
|
85
|
-
|
86
|
-
On OS X, `stylus help <prop>` will open your default browser and display help documentation for the given `<prop>`.
|
87
|
-
|
88
|
-
$ stylus help box-shadow
|
89
|
-
|
90
|
-
### Interactive Shell
|
91
|
-
|
92
|
-
The Stylus REPL (Read-Eval-Print-Loop) or "interactive shell" allows you to
|
93
|
-
play around with Stylus expressions directly from your terminal.
|
94
|
-
|
95
|
-
**Note that this works only for expressions**—not selectors, etc. To use simple add the `-i`, or `--interactive` flag:
|
96
|
-
|
97
|
-
$ stylus -i
|
98
|
-
> color = white
|
99
|
-
=> #fff
|
100
|
-
> color - rgb(200,50,0)
|
101
|
-
=> #37cdff
|
102
|
-
> color
|
103
|
-
=> #fff
|
104
|
-
> color -= rgb(200,50,0)
|
105
|
-
=> #37cdff
|
106
|
-
> color
|
107
|
-
=> #37cdff
|
108
|
-
> rgba(color, 0.5)
|
109
|
-
=> rgba(55,205,255,0.5)
|
110
|
-
|
111
|
-
### Utilizing Plugins
|
112
|
-
|
113
|
-
For this example we'l use the [nib](https://github.com/visionmedia/nib) Stylus plugin to illustrate its CLI usage.
|
114
|
-
|
115
|
-
Suppose we have the following Stylus, which imports nib to use its `linear-gradient()` function.
|
116
|
-
|
117
|
-
@import 'nib'
|
118
|
-
|
119
|
-
body
|
120
|
-
background: linear-gradient(20px top, white, black)
|
121
|
-
|
122
|
-
Our first attempt to render using `stylus(1)` via stdio might look like this:
|
123
|
-
|
124
|
-
$ stylus < test.styl
|
125
|
-
|
126
|
-
Which would yield the following error (because Stylus doesn't know where to find nib).
|
127
|
-
|
128
|
-
Error: stdin:3
|
129
|
-
1|
|
130
|
-
2|
|
131
|
-
> 3| @import 'nib'
|
132
|
-
4|
|
133
|
-
5| body
|
134
|
-
6| background: linear-gradient(20px top, white, black)
|
135
|
-
|
136
|
-
For plugins that simply supply Stylus APIs, we could add the path to the Stylus lookup paths. We do so by using the `--include` or `-I` flag:
|
137
|
-
|
138
|
-
$ stylus < test.styl --include ../nib/lib
|
139
|
-
|
140
|
-
Now yielding the output below. (As you might notice, calls to `gradient-data-uri()` and `create-gradient-image()` output as literals. This is because exposing the library path isn't enough when a plugin provides a JavaScript API. However, if we only wanted to use pure-Stylus nib functions, we'd be fine.)
|
141
|
-
|
142
|
-
body {
|
143
|
-
background: url(gradient-data-uri(create-gradient-image(20px, top)));
|
144
|
-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #000));
|
145
|
-
background: -webkit-linear-gradient(top, #fff 0%, #000 100%);
|
146
|
-
background: -moz-linear-gradient(top, #fff 0%, #000 100%);
|
147
|
-
background: linear-gradient(top, #fff 0%, #000 100%);
|
148
|
-
}
|
149
|
-
|
150
|
-
So, what we need to do is use the `--use`, or `-u` flag. It expects a path to a node module (with or without the `.js` extension). This `require()`s the module, expecting a function to be exported as `module.exports`, which then calls `style.use(fn())` to expose the plugin (defining its js functions, etc.).
|
151
|
-
|
152
|
-
$ stylus < test.styl --use ../nib/lib/nib
|
153
|
-
|
154
|
-
Yielding the expected result:
|
155
|
-
|
156
|
-
body {
|
157
|
-
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAUCAYAAABMDlehAAAABmJLR0QA/wD/AP+gvaeTAAAAI0lEQVQImWP4+fPnf6bPnz8zMH358oUBwkIjKJBgYGNj+w8Aphk4blt0EcMAAAAASUVORK5CYII=");
|
158
|
-
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #000));
|
159
|
-
background: -webkit-linear-gradient(top, #fff 0%, #000 100%);
|
160
|
-
background: -moz-linear-gradient(top, #fff 0%, #000 100%);
|
161
|
-
background: linear-gradient(top, #fff 0%, #000 100%);
|
162
|
-
}
|
163
|
-
|
data/vendor/docs/extend.md
DELETED
@@ -1,123 +0,0 @@
|
|
1
|
-
|
2
|
-
## Extend
|
3
|
-
|
4
|
-
The Stylus __@extend__ directive is inspired by (and essentially the same as) the [SASS Implementation](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#extend), with few subtle differences. This feature significantly simplifies maintenance of semantic rulesets that inherit from other semantic rulesets.
|
5
|
-
|
6
|
-
|
7
|
-
### “Extending” with mixins
|
8
|
-
|
9
|
-
Although you can use mixins to achieve a similar effect, this can lead to duplicate CSS. A typical pattern is to define several classes as shown below, then combine them on the element such as "warning message".
|
10
|
-
|
11
|
-
While this technique works just fine, it's difficult to maintain.
|
12
|
-
|
13
|
-
.message,
|
14
|
-
.warning {
|
15
|
-
padding: 10px;
|
16
|
-
border: 1px solid #eee;
|
17
|
-
}
|
18
|
-
|
19
|
-
.warning {
|
20
|
-
color: #E2E21E;
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
### Using `__@extend__`
|
25
|
-
|
26
|
-
To produce this same output with `__@extend__`, simply pass it the desired selector. Stylus will then append the `.warning` selector to the existing `.message` ruleset. The `.warning` class then inherits properties from `.message`.
|
27
|
-
|
28
|
-
.message {
|
29
|
-
padding: 10px;
|
30
|
-
border: 1px solid #eee;
|
31
|
-
}
|
32
|
-
|
33
|
-
.warning {
|
34
|
-
@extend .message;
|
35
|
-
color: #E2E21E;
|
36
|
-
}
|
37
|
-
|
38
|
-
|
39
|
-
Here's a more complex example, demonstrating how `__@extend__` cascades:
|
40
|
-
|
41
|
-
red = #E33E1E
|
42
|
-
yellow = #E2E21E
|
43
|
-
|
44
|
-
.message
|
45
|
-
padding: 10px
|
46
|
-
font: 14px Helvetica
|
47
|
-
border: 1px solid #eee
|
48
|
-
|
49
|
-
.warning
|
50
|
-
@extends .message
|
51
|
-
border-color: yellow
|
52
|
-
background: yellow + 70%
|
53
|
-
|
54
|
-
.error
|
55
|
-
@extends .message
|
56
|
-
border-color: red
|
57
|
-
background: red + 70%
|
58
|
-
|
59
|
-
.fatal
|
60
|
-
@extends .error
|
61
|
-
font-weight: bold
|
62
|
-
color: red
|
63
|
-
|
64
|
-
Yielding the following CSS:
|
65
|
-
|
66
|
-
.message,
|
67
|
-
.warning,
|
68
|
-
.error,
|
69
|
-
.fatal {
|
70
|
-
padding: 10px;
|
71
|
-
font: 14px Helvetica;
|
72
|
-
border: 1px solid #eee;
|
73
|
-
}
|
74
|
-
.warning {
|
75
|
-
border-color: #e2e21e;
|
76
|
-
background: #f6f6bc;
|
77
|
-
}
|
78
|
-
.error,
|
79
|
-
.fatal {
|
80
|
-
border-color: #e33e1e;
|
81
|
-
background: #f7c5bc;
|
82
|
-
}
|
83
|
-
.fatal {
|
84
|
-
font-weight: bold;
|
85
|
-
color: #e33e1e;
|
86
|
-
}
|
87
|
-
|
88
|
-
Where Stylus currently differs from SASS is, SASS won't allow `__@extend__` nested selectors:
|
89
|
-
|
90
|
-
form
|
91
|
-
button
|
92
|
-
padding: 10px
|
93
|
-
|
94
|
-
a.button
|
95
|
-
@extend form button
|
96
|
-
Syntax error: Can't extend form button: can't extend nested selectors
|
97
|
-
on line 6 of standard input
|
98
|
-
Use --trace for backtrace.
|
99
|
-
|
100
|
-
With Stylus, as long as the selectors match, it works!
|
101
|
-
|
102
|
-
form
|
103
|
-
input[type=text]
|
104
|
-
padding: 5px
|
105
|
-
border: 1px solid #eee
|
106
|
-
color: #ddd
|
107
|
-
|
108
|
-
textarea
|
109
|
-
@extends form input[type=text]
|
110
|
-
padding: 10px
|
111
|
-
|
112
|
-
Yielding:
|
113
|
-
|
114
|
-
form input[type=text],
|
115
|
-
form textarea {
|
116
|
-
padding: 5px;
|
117
|
-
border: 1px solid #eee;
|
118
|
-
color: #ddd;
|
119
|
-
}
|
120
|
-
textarea {
|
121
|
-
padding: 10px;
|
122
|
-
}
|
123
|
-
|
data/vendor/docs/firebug.md
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
|
2
|
-
## FireStylus extension for Firebug
|
3
|
-
|
4
|
-
[FireStylus](//github.com/parallel/firestylus) is a Firebug extension
|
5
|
-
that makes Firebug display the Stylus filename and line numbers of
|
6
|
-
the Stylus-generated CSS styles rather than those of the generated CSS.
|
7
|
-
|
8
|
-
![Screenshot](//raw.github.com/parallel/firestylus/master/src/chrome/skin/screenshot.png)
|
9
|
-
|
10
|
-
### Usage
|
11
|
-
|
12
|
-
First, you need to install [Firebug](https://addons.mozilla.org/firefox/downloads/latest/1843/addon-1843-latest.xpi?src=addondetail)
|
13
|
-
and the [FireStylus extension](//github.com/parallel/firestylus)
|
14
|
-
|
15
|
-
Then simply enable the Stylus's `firebug` option when generating CSS.
|
16
|
-
|
17
|
-
Command line usage:
|
18
|
-
|
19
|
-
$ stylus -f <path>
|
20
|
-
$ stylus --firebug <path>
|
21
|
-
|
22
|
-
Javascript usage:
|
23
|
-
|
24
|
-
var stylus = require('stylus');
|
25
|
-
|
26
|
-
stylus(str)
|
27
|
-
.set('firebug', true)
|
28
|
-
.render(function(err, css){
|
29
|
-
// logic
|
30
|
-
});
|
31
|
-
|
32
|
-
Connect / Express:
|
33
|
-
|
34
|
-
var stylus = require('stylus');
|
35
|
-
|
36
|
-
var server = connect.createServer(
|
37
|
-
stylus.middleware({
|
38
|
-
src: __dirname
|
39
|
-
, dest: __dirname + '/public'
|
40
|
-
, firebug: true
|
41
|
-
})
|
42
|
-
, connect.static(__dirname + '/public')
|
43
|
-
);
|
44
|
-
|
45
|
-
### Compatibility
|
46
|
-
|
47
|
-
FireStylus should work with Firefox versions 3.0 and up, and with Firebug versions 1.4 and up.
|
48
|
-
|
49
|
-
- Firefox 3+ (also works with version 5)
|
50
|
-
- Firebug 1.4+
|
51
|
-
|
52
|
-
### Limitations
|
53
|
-
|
54
|
-
FireStylus and FireSass are incompatible. You cannot enable them
|
55
|
-
simultaneously.
|
56
|
-
|
57
|
-
FireStylus (like FireSass) only works in the HTML pane of Firebug. The others
|
58
|
-
(such as the CSS pane) won't work due to Firebug limitations.
|
59
|
-
|
data/vendor/docs/font-face.md
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
|
2
|
-
## @font-face
|
3
|
-
|
4
|
-
The `@font-face` at-rule expects as you would expect. Simply add a block of properties after it, like so:
|
5
|
-
|
6
|
-
|
7
|
-
@font-face
|
8
|
-
font-family Geo
|
9
|
-
font-style normal
|
10
|
-
src url(fonts/geo_sans_light/GensansLight.ttf)
|
11
|
-
|
12
|
-
.ingeo
|
13
|
-
font-family Geo
|
14
|
-
|
15
|
-
Yielding:
|
16
|
-
|
17
|
-
|
18
|
-
@font-face {
|
19
|
-
font-family: Geo;
|
20
|
-
font-style: normal;
|
21
|
-
src: url("fonts/geo_sans_light/GensansLight.ttf");
|
22
|
-
}
|
23
|
-
.ingeo {
|
24
|
-
font-family: Geo;
|
25
|
-
}
|
26
|
-
|