Permalink
Browse files

stylus css support

  • Loading branch information...
1 parent 8e2a8b2 commit ebc5b541e79550faaa79888f95d3f559643ab04d @glennyonemitsu committed Apr 11, 2013
Showing with 13,979 additions and 4 deletions.
  1. +22 −0 node/stylus/LICENSE
  2. +159 −0 node/stylus/Readme.md
  3. +620 −0 node/stylus/bin/stylus
  4. +63 −0 node/stylus/bm.js
  5. +4 −0 node/stylus/index.js
  6. +156 −0 node/stylus/lib/colors.js
  7. +130 −0 node/stylus/lib/convert/css.js
  8. +58 −0 node/stylus/lib/errors.js
  9. +121 −0 node/stylus/lib/functions/image.js
  10. +883 −0 node/stylus/lib/functions/index.js
  11. +238 −0 node/stylus/lib/functions/index.styl
  12. +97 −0 node/stylus/lib/functions/url.js
  13. +806 −0 node/stylus/lib/lexer.js
  14. +211 −0 node/stylus/lib/middleware.js
  15. +65 −0 node/stylus/lib/nodes/arguments.js
  16. +54 −0 node/stylus/lib/nodes/binop.js
  17. +99 −0 node/stylus/lib/nodes/block.js
  18. +103 −0 node/stylus/lib/nodes/boolean.js
  19. +57 −0 node/stylus/lib/nodes/call.js
  20. +42 −0 node/stylus/lib/nodes/charset.js
  21. +32 −0 node/stylus/lib/nodes/comment.js
  22. +56 −0 node/stylus/lib/nodes/each.js
  23. +193 −0 node/stylus/lib/nodes/expression.js
  24. +52 −0 node/stylus/lib/nodes/extend.js
  25. +55 −0 node/stylus/lib/nodes/fontface.js
  26. +104 −0 node/stylus/lib/nodes/function.js
  27. +80 −0 node/stylus/lib/nodes/group.js
  28. +256 −0 node/stylus/lib/nodes/hsla.js
  29. +127 −0 node/stylus/lib/nodes/ident.js
  30. +56 −0 node/stylus/lib/nodes/if.js
  31. +30 −0 node/stylus/lib/nodes/import.js
  32. +54 −0 node/stylus/lib/nodes/index.js
  33. +32 −0 node/stylus/lib/nodes/jsliteral.js
  34. +78 −0 node/stylus/lib/nodes/keyframes.js
  35. +92 −0 node/stylus/lib/nodes/literal.js
  36. +55 −0 node/stylus/lib/nodes/media.js
  37. +19 −0 node/stylus/lib/nodes/mozdocument.js
  38. +223 −0 node/stylus/lib/nodes/node.js
  39. +72 −0 node/stylus/lib/nodes/null.js
  40. +43 −0 node/stylus/lib/nodes/page.js
  41. +72 −0 node/stylus/lib/nodes/params.js
  42. +73 −0 node/stylus/lib/nodes/property.js
  43. +44 −0 node/stylus/lib/nodes/return.js
  44. +337 −0 node/stylus/lib/nodes/rgba.js
  45. +61 −0 node/stylus/lib/nodes/root.js
  46. +58 −0 node/stylus/lib/nodes/selector.js
  47. +122 −0 node/stylus/lib/nodes/string.js
  48. +51 −0 node/stylus/lib/nodes/ternary.js
  49. +46 −0 node/stylus/lib/nodes/unaryop.js
  50. +208 −0 node/stylus/lib/nodes/unit.js
  51. +1,609 −0 node/stylus/lib/parser.js
  52. +185 −0 node/stylus/lib/renderer.js
  53. +66 −0 node/stylus/lib/stack/frame.js
  54. +146 −0 node/stylus/lib/stack/index.js
  55. +53 −0 node/stylus/lib/stack/scope.js
  56. +103 −0 node/stylus/lib/stylus.js
  57. +53 −0 node/stylus/lib/token.js
  58. +20 −0 node/stylus/lib/units.js
  59. +304 −0 node/stylus/lib/utils.js
  60. +522 −0 node/stylus/lib/visitor/compiler.js
  61. +1,240 −0 node/stylus/lib/visitor/evaluator.js
  62. +31 −0 node/stylus/lib/visitor/index.js
  63. +281 −0 node/stylus/lib/visitor/normalizer.js
  64. +6 −0 node/stylus/node_modules/cssom/.gitmodules
  65. +7 −0 node/stylus/node_modules/cssom/.npmignore
  66. +34 −0 node/stylus/node_modules/cssom/README.mdown
  67. +34 −0 node/stylus/node_modules/cssom/lib/CSSFontFaceRule.js
  68. +131 −0 node/stylus/node_modules/cssom/lib/CSSImportRule.js
  69. +35 −0 node/stylus/node_modules/cssom/lib/CSSKeyframeRule.js
  70. +37 −0 node/stylus/node_modules/cssom/lib/CSSKeyframesRule.js
  71. +39 −0 node/stylus/node_modules/cssom/lib/CSSMediaRule.js
  72. +39 −0 node/stylus/node_modules/cssom/lib/CSSRule.js
  73. +148 −0 node/stylus/node_modules/cssom/lib/CSSStyleDeclaration.js
  74. +189 −0 node/stylus/node_modules/cssom/lib/CSSStyleRule.js
  75. +87 −0 node/stylus/node_modules/cssom/lib/CSSStyleSheet.js
  76. +61 −0 node/stylus/node_modules/cssom/lib/MediaList.js
  77. +17 −0 node/stylus/node_modules/cssom/lib/StyleSheet.js
  78. +76 −0 node/stylus/node_modules/cssom/lib/clone.js
  79. +15 −0 node/stylus/node_modules/cssom/lib/index.js
  80. +338 −0 node/stylus/node_modules/cssom/lib/parse.js
  81. +50 −0 node/stylus/node_modules/cssom/package.json
  82. +4 −0 node/stylus/node_modules/debug/.npmignore
  83. +62 −0 node/stylus/node_modules/debug/History.md
  84. +115 −0 node/stylus/node_modules/debug/Readme.md
  85. +9 −0 node/stylus/node_modules/debug/component.json
  86. +124 −0 node/stylus/node_modules/debug/debug.js
  87. +19 −0 node/stylus/node_modules/debug/example/app.js
  88. +24 −0 node/stylus/node_modules/debug/example/browser.html
  89. +10 −0 node/stylus/node_modules/debug/example/wildcards.js
  90. +22 −0 node/stylus/node_modules/debug/example/worker.js
  91. +5 −0 node/stylus/node_modules/debug/index.js
  92. +134 −0 node/stylus/node_modules/debug/lib/debug.js
  93. +37 −0 node/stylus/node_modules/debug/package.json
  94. +2 −0 node/stylus/node_modules/mkdirp/.npmignore
  95. +5 −0 node/stylus/node_modules/mkdirp/.travis.yml
  96. +21 −0 node/stylus/node_modules/mkdirp/LICENSE
  97. +6 −0 node/stylus/node_modules/mkdirp/examples/pow.js
  98. +82 −0 node/stylus/node_modules/mkdirp/index.js
  99. +34 −0 node/stylus/node_modules/mkdirp/package.json
  100. +63 −0 node/stylus/node_modules/mkdirp/readme.markdown
  101. +38 −0 node/stylus/node_modules/mkdirp/test/chmod.js
  102. +37 −0 node/stylus/node_modules/mkdirp/test/clobber.js
  103. +28 −0 node/stylus/node_modules/mkdirp/test/mkdirp.js
  104. +32 −0 node/stylus/node_modules/mkdirp/test/perm.js
  105. +39 −0 node/stylus/node_modules/mkdirp/test/perm_sync.js
  106. +41 −0 node/stylus/node_modules/mkdirp/test/race.js
  107. +32 −0 node/stylus/node_modules/mkdirp/test/rel.js
  108. +25 −0 node/stylus/node_modules/mkdirp/test/return.js
  109. +24 −0 node/stylus/node_modules/mkdirp/test/return_sync.js
  110. +18 −0 node/stylus/node_modules/mkdirp/test/root.js
  111. +32 −0 node/stylus/node_modules/mkdirp/test/sync.js
  112. +28 −0 node/stylus/node_modules/mkdirp/test/umask.js
  113. +32 −0 node/stylus/node_modules/mkdirp/test/umask_sync.js
  114. +49 −0 node/stylus/package.json
  115. +21 −4 sdklib/commands.py
View
@@ -0,0 +1,22 @@
+(The MIT License)
+
+Copyright (c) 2010 LearnBoost <dev@learnboost.com>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,159 @@
+# Stylus
+
+ Stylus is a revolutionary new language, providing an efficient, dynamic, and expressive way to generate CSS. Supporting both an indented syntax and regular CSS style.
+
+## Installation
+
+```bash
+$ npm install stylus
+```
+
+### Example
+
+```
+border-radius()
+ -webkit-border-radius: arguments
+ -moz-border-radius: arguments
+ border-radius: arguments
+
+body a
+ font: 12px/1.4 "Lucida Grande", Arial, sans-serif
+ background: black
+ color: #ccc
+
+form input
+ padding: 5px
+ border: 1px solid
+ border-radius: 5px
+```
+
+compiles to:
+
+```css
+body a {
+ font: 12px/1.4 "Lucida Grande", Arial, sans-serif;
+ background: #000;
+ color: #ccc;
+}
+form input {
+ padding: 5px;
+ border: 1px solid;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
+}
+```
+
+the following is equivalent to the indented version of Stylus source, using the CSS syntax instead:
+
+```
+border-radius() {
+ -webkit-border-radius: arguments
+ -moz-border-radius: arguments
+ border-radius: arguments
+}
+
+body a {
+ font: 12px/1.4 "Lucida Grande", Arial, sans-serif;
+ background: black;
+ color: #ccc;
+}
+
+form input {
+ padding: 5px;
+ border: 1px solid;
+ border-radius: 5px;
+}
+```
+
+### Features
+
+ Stylus has _many_ features. Detailed documentation links follow:
+
+ - [css syntax](docs/css-style.md) support
+ - [mixins](docs/mixins.md)
+ - [keyword arguments](docs/kwargs.md)
+ - [variables](docs/variables.md)
+ - [interpolation](docs/interpolation.md)
+ - arithmetic, logical, and equality [operators](docs/operators.md)
+ - [importing](docs/import.md) of other stylus sheets
+ - [introspection api](docs/introspection.md)
+ - type coercion
+ - [@extend](docs/extend.md)
+ - [conditionals](docs/conditionals.md)
+ - [iteration](docs/iteration.md)
+ - nested [selectors](docs/selectors.md)
+ - parent reference
+ - in-language [functions](docs/functions.md)
+ - [variable arguments](docs/vargs.md)
+ - built-in [functions](docs/bifs.md) (over 25)
+ - optional [image inlining](docs/functions.url.md)
+ - optional compression
+ - JavaScript [API](docs/js.md)
+ - extremely terse syntax
+ - stylus [executable](docs/executable.md)
+ - [error reporting](docs/error-reporting.md)
+ - single-line and multi-line [comments](docs/comments.md)
+ - css [literal](docs/literal.md)
+ - character [escaping](docs/escape.md)
+ - [@keyframes](docs/keyframes.md) support & expansion
+ - [@font-face](docs/font-face.md) support
+ - [@media](docs/media.md) support
+ - Connect [Middleware](docs/middleware.md)
+ - TextMate [bundle](docs/textmate.md)
+ - Coda/SubEtha Edit [Syntax mode](https://github.com/atljeremy/Stylus.mode)
+ - gedit [language-spec](docs/gedit.md)
+ - VIM [Syntax](https://github.com/wavded/vim-stylus)
+ - [Firebug extension](docs/firebug.md)
+ - heroku [web service](http://styl.heroku.com) for compiling stylus
+ - [style guide](https://github.com/lepture/ganam) parser and generator
+ - transparent vendor-specific function expansion
+
+### Framework Support
+
+ - [Connect](docs/middleware.md)
+ - [Play! 2.0](https://github.com/patiencelabs/play-stylus)
+ - [Ruby On Rails](https://github.com/lucasmazza/ruby-stylus)
+
+### CMS Support
+
+ - [DocPad](https://github.com/bevry/docpad)
+ - [Punch](https://github.com/laktek/punch-stylus-compiler)
+
+### Screencasts
+
+ - [Stylus Intro](http://screenr.com/bNY)
+ - [CSS Syntax & Postfix Conditionals](http://screenr.com/A8v)
+
+### Authors
+
+ - [TJ Holowaychuk (visionmedia)](http://github.com/visionmedia)
+
+### More Information
+
+ - Language [comparisons](docs/compare.md)
+
+## License
+
+(The MIT License)
+
+Copyright (c) 2010 LearnBoost &lt;dev@learnboost.com&gt;
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Oops, something went wrong.

0 comments on commit ebc5b54

Please sign in to comment.