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
@@ -1,34 +0,0 @@
|
|
1
|
-
|
2
|
-
seconds(n)
|
3
|
-
0s + n
|
4
|
-
|
5
|
-
body
|
6
|
-
foo 15px - 5px
|
7
|
-
foo 15px - 5
|
8
|
-
|
9
|
-
// 60.8mm
|
10
|
-
foo 5cm - 2mm
|
11
|
-
foo 10mm + 2in
|
12
|
-
|
13
|
-
// 3.54cm
|
14
|
-
foo 1cm + 1in
|
15
|
-
|
16
|
-
// 3in
|
17
|
-
foo 5in - 5.08cm
|
18
|
-
|
19
|
-
// 0.8s
|
20
|
-
foo 1s - 200ms
|
21
|
-
|
22
|
-
// 3500ms
|
23
|
-
foo 1500ms + 2s
|
24
|
-
|
25
|
-
// 3000Hz
|
26
|
-
foo 1000Hz + 2kHz
|
27
|
-
|
28
|
-
// 1kHz
|
29
|
-
foo 3kHz - (1000Hz * 2)
|
30
|
-
|
31
|
-
n = 30%
|
32
|
-
foo unit(n, 'px')
|
33
|
-
|
34
|
-
foo seconds(1500ms)
|
@@ -1,12 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var css = require('../')
|
7
|
-
, str = require('fs').readFileSync(__dirname + '/functions.styl', 'utf8');
|
8
|
-
|
9
|
-
css.render(str, { filename: 'functions.styl' }, function(err, css){
|
10
|
-
if (err) throw err;
|
11
|
-
console.log(css);
|
12
|
-
});
|
@@ -1,30 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
// ?= would allow us to define the images global before @importing
|
4
|
-
// the file if we were to distribute this
|
5
|
-
|
6
|
-
images ?= '/images'
|
7
|
-
|
8
|
-
image(path)
|
9
|
-
url(join('/', images path))
|
10
|
-
|
11
|
-
// or
|
12
|
-
|
13
|
-
image(path)
|
14
|
-
url(images + '/' + path)
|
15
|
-
|
16
|
-
body
|
17
|
-
background image('foo.png')
|
18
|
-
|
19
|
-
// functions can act as both mixins
|
20
|
-
// or have a return value
|
21
|
-
|
22
|
-
image(path)
|
23
|
-
if mixin
|
24
|
-
background image(path)
|
25
|
-
else
|
26
|
-
url(images + '/' + path)
|
27
|
-
|
28
|
-
body
|
29
|
-
image('something.png')
|
30
|
-
background image('something.png')
|
@@ -1,13 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var css = require('../')
|
7
|
-
, path = __dirname + '/gradients.styl'
|
8
|
-
, str = require('fs').readFileSync(path, 'utf8');
|
9
|
-
|
10
|
-
css.render(str, { filename: path }, function(err, css){
|
11
|
-
if (err) throw err;
|
12
|
-
console.log(css);
|
13
|
-
});
|
Binary file
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1" preserveAspectRatio="none" version="1.1" >
|
2
|
-
<defs>
|
3
|
-
<linearGradient id="g" x1="0%" y1="0%" x2="0%" y2="100%">
|
4
|
-
<stop offset="0%" stop-color="#000"/>
|
5
|
-
<stop offset="100%" stop-color="#45484d"/>
|
6
|
-
</linearGradient>
|
7
|
-
</defs>
|
8
|
-
<rect fill="url(#g)" width="1" height="1" />
|
9
|
-
</svg>
|
Binary file
|
Binary file
|
data/vendor/examples/images.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var stylus = require('../')
|
7
|
-
, nodes = stylus.nodes
|
8
|
-
, path = __dirname + '/images.styl'
|
9
|
-
, str = require('fs').readFileSync(path, 'utf8');
|
10
|
-
|
11
|
-
// the paths option is merged with the general options
|
12
|
-
// so it is completely optional, however this now allows us to use
|
13
|
-
// url(sprite.gif) instead of url(images/sprite.gif)
|
14
|
-
stylus(str)
|
15
|
-
.set('filename', path)
|
16
|
-
.define('url', stylus.url({ paths: [__dirname + '/images'] }))
|
17
|
-
.render(function(err, css){
|
18
|
-
if (err) throw err;
|
19
|
-
console.log(css);
|
20
|
-
});
|
data/vendor/examples/images.styl
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
|
2
|
-
body
|
3
|
-
background url("http://foo.com/bar.png")
|
4
|
-
|
5
|
-
#wrapper
|
6
|
-
background url(/images/gopher.jpg)
|
7
|
-
|
8
|
-
#footer
|
9
|
-
background url(/images/gradient.svg)
|
10
|
-
|
11
|
-
.sprite
|
12
|
-
// both work due to the additional paths option
|
13
|
-
// passed to stylus.url()
|
14
|
-
background url(/images/sprite.gif)
|
15
|
-
background url(sprite.gif)
|
@@ -1,12 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var css = require('../')
|
7
|
-
, str = require('fs').readFileSync(__dirname + '/implicit-functions.styl', 'utf8');
|
8
|
-
|
9
|
-
css.render(str, { filename: 'implicit-functions.styl' }, function(err, css){
|
10
|
-
if (err) throw err;
|
11
|
-
console.log(css);
|
12
|
-
});
|
@@ -1,23 +0,0 @@
|
|
1
|
-
|
2
|
-
border-radius()
|
3
|
-
-webkit-border-radius arguments
|
4
|
-
-moz-border-radius arguments
|
5
|
-
border-radius arguments
|
6
|
-
|
7
|
-
form
|
8
|
-
border-radius 5px
|
9
|
-
|
10
|
-
a.button
|
11
|
-
border-radius 10px
|
12
|
-
|
13
|
-
|
14
|
-
support-for-ie ?= true
|
15
|
-
|
16
|
-
opacity(n)
|
17
|
-
opacity n
|
18
|
-
if support-for-ie
|
19
|
-
filter unquote('progid:DXImageTransform.Microsoft.Alpha(Opacity=' + round(n * 100) + ')')
|
20
|
-
|
21
|
-
#logo
|
22
|
-
&:hover
|
23
|
-
opacity 0.5
|
data/vendor/examples/import.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var css = require('../')
|
7
|
-
, str = require('fs').readFileSync(__dirname + '/import.styl', 'utf8');
|
8
|
-
|
9
|
-
css.render(str, { filename: __dirname + '/import.styl' }, function(err, css){
|
10
|
-
if (err) throw err;
|
11
|
-
console.log(css);
|
12
|
-
});
|
data/vendor/examples/import.styl
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var css = require('../')
|
7
|
-
, nodes = css.nodes
|
8
|
-
, str = require('fs').readFileSync(__dirname + '/js-functions.styl', 'utf8')
|
9
|
-
, fs = require('fs');
|
10
|
-
|
11
|
-
function add(a, b) {
|
12
|
-
return a.operate('+', b);
|
13
|
-
}
|
14
|
-
|
15
|
-
function sub(a, b) {
|
16
|
-
return a.operate('-', b);
|
17
|
-
}
|
18
|
-
|
19
|
-
function imageSize(img) {
|
20
|
-
// assert that the node (img) is a String node, passing
|
21
|
-
// the param name for error reporting
|
22
|
-
css.utils.assertType(img, 'string', 'img');
|
23
|
-
var path = img.val;
|
24
|
-
|
25
|
-
// Grab bytes necessary to retrieve dimensions.
|
26
|
-
// if this was real you would do this per format,
|
27
|
-
// instead of reading the entire image :)
|
28
|
-
var data = fs.readFileSync(__dirname + '/' + path);
|
29
|
-
|
30
|
-
// GIF
|
31
|
-
// of course you would support.. more :)
|
32
|
-
if ('GIF' == data.slice(0, 3).toString()) {
|
33
|
-
var w = data.slice(6, 8)
|
34
|
-
, h = data.slice(8, 10);
|
35
|
-
w = w[1] << 8 | w[0];
|
36
|
-
h = h[1] << 8 | h[0];
|
37
|
-
}
|
38
|
-
|
39
|
-
// Return (w h)
|
40
|
-
var expr = new nodes.Expression;
|
41
|
-
expr.push(new nodes.Unit(w));
|
42
|
-
expr.push(new nodes.Unit(h));
|
43
|
-
|
44
|
-
return expr;
|
45
|
-
}
|
46
|
-
|
47
|
-
css(str)
|
48
|
-
.set('filename', 'js-functions.styl')
|
49
|
-
.define('add', add)
|
50
|
-
.define('sub', sub)
|
51
|
-
.define('image-size', imageSize)
|
52
|
-
.render(function(err, css){
|
53
|
-
if (err) throw err;
|
54
|
-
console.log(css);
|
55
|
-
});
|
@@ -1,23 +0,0 @@
|
|
1
|
-
|
2
|
-
image-width(path)
|
3
|
-
return image-size(path)[0]
|
4
|
-
|
5
|
-
image-height(path)
|
6
|
-
return image-size(path)[1]
|
7
|
-
|
8
|
-
body
|
9
|
-
font add(5px, 10px)
|
10
|
-
font sub(5px, 10px)
|
11
|
-
|
12
|
-
#jesus
|
13
|
-
width image-width('images/jesus.gif')
|
14
|
-
height image-height('images/jesus.gif')
|
15
|
-
|
16
|
-
#jesus-2
|
17
|
-
width image-size('images/jesus.gif')[0]
|
18
|
-
height image-size('images/jesus.gif')[1]
|
19
|
-
|
20
|
-
#jesus-3
|
21
|
-
size = image-size('images/jesus.gif')
|
22
|
-
width size[0]
|
23
|
-
height size[1]
|
data/vendor/examples/literal.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var css = require('../')
|
7
|
-
, str = require('fs').readFileSync(__dirname + '/literal.styl', 'utf8');
|
8
|
-
|
9
|
-
css.render(str, { filename: 'literal.styl' }, function(err, css){
|
10
|
-
if (err) throw err;
|
11
|
-
console.log(css);
|
12
|
-
});
|
@@ -1,23 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var connect = require('connect')
|
7
|
-
, stylus = require('../');
|
8
|
-
|
9
|
-
// Setup server
|
10
|
-
// $ curl http://localhost:3000/functions.css
|
11
|
-
|
12
|
-
var server = connect.createServer(
|
13
|
-
stylus.middleware({
|
14
|
-
src: __dirname
|
15
|
-
, dest: __dirname + '/public'
|
16
|
-
, compress: true
|
17
|
-
, debug: true
|
18
|
-
}),
|
19
|
-
connect.static(__dirname + '/public')
|
20
|
-
);
|
21
|
-
|
22
|
-
server.listen(3000);
|
23
|
-
console.log('server listening on port 3000');
|
@@ -1,92 +0,0 @@
|
|
1
|
-
|
2
|
-
// replace str with val
|
3
|
-
|
4
|
-
replace(expr, str, val)
|
5
|
-
expr = clone(expr)
|
6
|
-
for e, i in expr
|
7
|
-
if str == e
|
8
|
-
expr[i] = val
|
9
|
-
expr
|
10
|
-
|
11
|
-
// normalize gradient point (webkit)
|
12
|
-
|
13
|
-
grad-point(pos)
|
14
|
-
if length(pos) == 1
|
15
|
-
return left pos if pos in (top bottom)
|
16
|
-
return pos top if pos in (left right)
|
17
|
-
else if pos[0] in (top bottom)
|
18
|
-
pos[1] pos[0]
|
19
|
-
else
|
20
|
-
pos
|
21
|
-
|
22
|
-
// implicit color stop position
|
23
|
-
|
24
|
-
pos-in-stops(i, stops)
|
25
|
-
len = length(stops)
|
26
|
-
if len - 1 == i
|
27
|
-
100%
|
28
|
-
else if i
|
29
|
-
unit(i / len * 100, '%')
|
30
|
-
else
|
31
|
-
0%
|
32
|
-
|
33
|
-
// normalize color stops
|
34
|
-
// - (color pos) -> (pos color)
|
35
|
-
// - (color) -> (implied-pos color)
|
36
|
-
|
37
|
-
normalize-stops(stops)
|
38
|
-
stops = clone(stops)
|
39
|
-
for stop, i in stops
|
40
|
-
if length(stop) == 1
|
41
|
-
color = stop[0]
|
42
|
-
stop[0] = pos-in-stops(i, stops)
|
43
|
-
stop[1] = color
|
44
|
-
else if typeof(stop[1]) == 'unit'
|
45
|
-
pos = stop[1]
|
46
|
-
stop[1] = stop[0]
|
47
|
-
stop[0] = pos
|
48
|
-
stops
|
49
|
-
|
50
|
-
// join color stops with the given translation function
|
51
|
-
|
52
|
-
join-stops(stops, translate)
|
53
|
-
str = ''
|
54
|
-
len = length(stops)
|
55
|
-
for stop, i in stops
|
56
|
-
str += ', ' if i
|
57
|
-
pos = stop[0]
|
58
|
-
color = stop[1]
|
59
|
-
str += translate(color, pos)
|
60
|
-
unquote(str)
|
61
|
-
|
62
|
-
// webkit translation function
|
63
|
-
|
64
|
-
webkit-stop(color, pos)
|
65
|
-
s('color-stop(%d, %s)', pos / 100, color)
|
66
|
-
|
67
|
-
// mozilla translation function
|
68
|
-
|
69
|
-
moz-stop(color, pos)
|
70
|
-
s('%s %s', color, pos)
|
71
|
-
|
72
|
-
// create a linear gradient with the given start
|
73
|
-
// position, followed by color stops
|
74
|
-
|
75
|
-
linear-gradient(start, stops...)
|
76
|
-
error('color stops required') unless length(stops)
|
77
|
-
prop = current-property[0]
|
78
|
-
val = current-property[1]
|
79
|
-
stops = normalize-stops(stops)
|
80
|
-
|
81
|
-
// webkit
|
82
|
-
end = grad-point(opposite-position(start))
|
83
|
-
webkit = s('-webkit-gradient(linear, %s, %s, %s)', grad-point(start), end, join-stops(stops, webkit-stop))
|
84
|
-
add-property(prop, replace(val, '__CALL__', webkit))
|
85
|
-
|
86
|
-
// moz
|
87
|
-
stops = join-stops(stops, moz-stop)
|
88
|
-
moz = s('-moz-linear-gradient(%s, %s)', start, stops)
|
89
|
-
add-property(prop, replace(val, '__CALL__', moz))
|
90
|
-
|
91
|
-
// literal
|
92
|
-
s('linear-gradient(%s, %s)', start, stops)
|
data/vendor/examples/nesting.js
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var css = require('../')
|
7
|
-
, str = require('fs').readFileSync(__dirname + '/nesting.styl', 'utf8');
|
8
|
-
|
9
|
-
css.render(str, { filename: 'nesting.styl' }, function(err, css){
|
10
|
-
if (err) throw err;
|
11
|
-
console.log(css);
|
12
|
-
});
|
@@ -1,12 +0,0 @@
|
|
1
|
-
|
2
|
-
/**
|
3
|
-
* Module dependencies.
|
4
|
-
*/
|
5
|
-
|
6
|
-
var css = require('../')
|
7
|
-
, str = require('fs').readFileSync(__dirname + '/variables.styl', 'utf8');
|
8
|
-
|
9
|
-
css.render(str, { filename: 'variables.styl' }, function(err, css){
|
10
|
-
if (err) throw err;
|
11
|
-
console.log(css);
|
12
|
-
});
|
@@ -1,24 +0,0 @@
|
|
1
|
-
|
2
|
-
font-families = "Lucida Grande", Arial
|
3
|
-
main-width = 80%
|
4
|
-
main-color = #fff
|
5
|
-
sidebar-width = main-width / 2
|
6
|
-
|
7
|
-
// Mixins can use conditionals
|
8
|
-
// to supply defaults
|
9
|
-
unless font-families is defined
|
10
|
-
font-families = 'WAHOO'
|
11
|
-
|
12
|
-
// Alternatively we may use ?=
|
13
|
-
font-families ?= 'WAHOO'
|
14
|
-
|
15
|
-
body
|
16
|
-
size = 12px
|
17
|
-
font size font-families, sans-serif
|
18
|
-
color main-color
|
19
|
-
|
20
|
-
#wrapper
|
21
|
-
width main-width
|
22
|
-
|
23
|
-
.sidebar
|
24
|
-
width sidebar-width
|
@@ -1,37 +0,0 @@
|
|
1
|
-
var PATH = require("path");
|
2
|
-
var FS = require("fs");
|
3
|
-
|
4
|
-
function readFile(path) {
|
5
|
-
var abs_path = PATH.join(__dirname, "lib", path);
|
6
|
-
return FS.readFileSync(abs_path, "utf8");
|
7
|
-
}
|
8
|
-
|
9
|
-
function stripCommonJS(text) {
|
10
|
-
return text.replace(/\/\/\.CommonJS(?:.|\n)*?\/\/\/CommonJS/g, "");
|
11
|
-
}
|
12
|
-
|
13
|
-
desc("Packages lib files into the one huge");
|
14
|
-
task("default", [], function(){
|
15
|
-
var files = [readFile("CSSOM.js")];
|
16
|
-
var index_file = readFile("index.js");
|
17
|
-
|
18
|
-
(function(){
|
19
|
-
var exports = {};
|
20
|
-
function require(path) {
|
21
|
-
var text = readFile(path + ".js");
|
22
|
-
files.push(stripCommonJS(text).trimLeft());
|
23
|
-
return {};
|
24
|
-
}
|
25
|
-
eval(index_file);
|
26
|
-
})();
|
27
|
-
|
28
|
-
var build_dir = PATH.join(__dirname, "build");
|
29
|
-
try {
|
30
|
-
FS.statSync(build_dir);
|
31
|
-
} catch(e) {
|
32
|
-
FS.mkdirSync(build_dir, 0755);
|
33
|
-
}
|
34
|
-
var build_path = PATH.join(build_dir, "CSSOM.js");
|
35
|
-
FS.writeFileSync(build_path, files.join(""));
|
36
|
-
process.stdout.write("build/CSSOM.js is done\n");
|
37
|
-
});
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) Nikita Vasilyev
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# CSSOM
|
2
|
-
|
3
|
-
CSSOM.js is a CSS parser written in pure JavaScript. It also a partial implementation of [CSS Object Model](http://dev.w3.org/csswg/cssom/).
|
4
|
-
|
5
|
-
CSSOM.parse("body {color: black}")
|
6
|
-
-> {
|
7
|
-
cssRules: [
|
8
|
-
{
|
9
|
-
selectorText: "body",
|
10
|
-
style: {
|
11
|
-
0: "color",
|
12
|
-
color: "black",
|
13
|
-
length: 1
|
14
|
-
}
|
15
|
-
}
|
16
|
-
]
|
17
|
-
}
|
18
|
-
|
19
|
-
|
20
|
-
## [Parser demo](http://nv.github.com/CSSOM/docs/parse.html)
|
21
|
-
|
22
|
-
Works well in Google Chrome 6+, Safari 5+, Firefox 3.6+, Opera 10.63+.
|
23
|
-
Doesn't work in IE < 9 because of unsupported getters/setters.
|
24
|
-
|
25
|
-
To use CSSOM.js in the browser you might want to build a one-file version with [Jake](http://github.com/mde/node-jake):
|
26
|
-
|
27
|
-
➤ jake
|
28
|
-
build/CSSOM.js is done
|
29
|
-
|
30
|
-
To use it with Node.js:
|
31
|
-
|
32
|
-
npm install cssom
|
33
|
-
|
34
|
-
## [Tests](http://nv.github.com/CSSOM/test/)
|
@@ -1,23 +0,0 @@
|
|
1
|
-
def version
|
2
|
-
git_describe_tags = `git describe --tags`
|
3
|
-
tag = git_describe_tags.split('-').first || git_describe_tags
|
4
|
-
tag.strip!
|
5
|
-
commit = `git rev-list --full-history #{tag}.. -- src/ | wc -l`.strip
|
6
|
-
tag.slice! 0
|
7
|
-
"#{tag}.#{commit}"
|
8
|
-
end
|
9
|
-
|
10
|
-
task :upload do
|
11
|
-
require 'net/github-upload'
|
12
|
-
gh = Net::GitHub::Upload.new(
|
13
|
-
:login => `git config github.user`.chomp,
|
14
|
-
:token => `git config github.token`.chomp
|
15
|
-
)
|
16
|
-
puts gh.upload(
|
17
|
-
:repos => 'CSSOM',
|
18
|
-
:file => 'build/CSSOM.js',
|
19
|
-
:name => "CSSOM.v#{version}.js",
|
20
|
-
:content_type => 'text/javascript',
|
21
|
-
:description => "CSS Object Model implemented in pure JavaScript"
|
22
|
-
)
|
23
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<style>
|
2
|
-
div {
|
3
|
-
position: relative;
|
4
|
-
width: 100px;
|
5
|
-
height: 100px;
|
6
|
-
background: black;
|
7
|
-
-webkit-animation-name: 'diagonal-slide';
|
8
|
-
-webkit-animation-duration: 5s;
|
9
|
-
-webkit-animation-iteration-count: 10;
|
10
|
-
}
|
11
|
-
|
12
|
-
@-webkit-keyframes 'diagonal-slide' {
|
13
|
-
|
14
|
-
from {
|
15
|
-
left: 0;
|
16
|
-
top: 0;
|
17
|
-
}
|
18
|
-
|
19
|
-
to {
|
20
|
-
left: 100px;
|
21
|
-
top: 100px;
|
22
|
-
}
|
23
|
-
|
24
|
-
}
|
25
|
-
</style>
|
26
|
-
|
27
|
-
<div>1</div>
|