Commit Graph

116 Commits

Author SHA1 Message Date
cloudhead
81240d0aab selectors.less now passes tests 2010-03-05 11:43:08 -05:00
cloudhead
181712e662 minor refactoring in rulesets output 2010-03-05 11:42:52 -05:00
cloudhead
76d4e08b30 the first element of a selector effectively has a descendant combinator, if none was specified 2010-03-05 11:42:13 -05:00
cloudhead
476581f77a getting combinators to output properly. some little hacks, but it beats having a white-space sensitive grammar 2010-03-05 11:39:39 -05:00
cloudhead
06acb92d20 fixed css-3.css 2010-03-04 16:14:03 -05:00
cloudhead
b4f3e9029c output strings in attribute selectors properly 2010-03-04 16:13:48 -05:00
cloudhead
7e3d8bda32 if a function isnt found, just output it literally 2010-03-04 16:13:19 -05:00
cloudhead
2f55206eb7 removed big.less/css from test 2010-03-04 14:51:22 -05:00
cloudhead
d54302a394 fixed whitespace.css to conform to new output 2010-03-04 14:49:50 -05:00
cloudhead
9dcc7eb953 moved to apache license 2010-03-04 14:46:41 -05:00
cloudhead
7539ef7323 fixed closing bracket for alpha not showing 2010-03-04 13:55:00 -05:00
cloudhead
6b938971df fixed closing bracket for url not showing 2010-03-04 13:54:32 -05:00
cloudhead
fde347016b for now, we only support basic selectors, when mixing in, eventually, we can upgrade the Selector/match method to return the number of matched elements 2010-03-04 13:51:59 -05:00
cloudhead
2644014bdf refactored Ruleset/find() method, and added a match() method to Selector, to do selector matching. 2010-03-04 13:50:52 -05:00
cloudhead
3e8abb2abf typo 2010-03-04 13:48:37 -05:00
cloudhead
9cf5f74d31 Element constructor creates new Combinator if a string was passed 2010-03-04 13:48:24 -05:00
cloudhead
d860763454 tweaked tests to match less.js 2010-03-04 01:41:03 -05:00
cloudhead
756e8d2434 skip variables in toCSS 2010-03-04 01:40:21 -05:00
cloudhead
4aea44f8f8 when evaluating a mixin, compile all matches, instead of just the first one 2010-03-03 22:13:14 -05:00
cloudhead
a1c8d50699 mixin definition constructor init 2010-03-03 21:22:11 -05:00
cloudhead
4767b264e7 basic mixins with namespaces working. swoosh. 2010-03-03 21:21:32 -05:00
cloudhead
fe0ed621b9 added ext/ folder, to hold some core prototype functions 2010-03-03 21:20:07 -05:00
cloudhead
095523bf59 Element constructor defaults to an empty Combinator, if none specified 2010-03-03 20:37:40 -05:00
cloudhead
e9c6645b2c end rule 2010-03-03 12:01:17 -05:00
cloudhead
e6c5c57755 inverse style to stylize 2010-03-03 12:01:06 -05:00
cloudhead
efab821115 parse mixins, including namespace. For now, lets focus on one mixin per rule 2010-03-03 12:00:55 -05:00
cloudhead
14bc6def86 a little clearer ParseError output 2010-03-03 11:59:30 -05:00
cloudhead
3e0ad2bf73 eval method for Keyword 2010-03-03 11:59:08 -05:00
cloudhead
76eb332b24 Use anonymous functions for the parsers.. It saves us some file size. 2010-03-02 14:58:06 -05:00
cloudhead
46060d466f evaluate arguments, before passing them to a function 2010-03-01 21:48:46 -05:00
cloudhead
2682b6dc16 support for hsl(), rgb() etc 2010-03-01 21:48:19 -05:00
cloudhead
60ac2374c9 get functions.js working 2010-03-01 20:03:43 -05:00
cloudhead
6ea12f7aa5 mixin.js init 2010-03-01 19:47:59 -05:00
cloudhead
0c6366faaf functions.js init 2010-03-01 19:47:48 -05:00
cloudhead
f70f6a542c merge node->tree changes 2010-03-01 19:47:32 -05:00
cloudhead
29f3d926f7 dev notice in README 2010-03-01 17:50:23 -05:00
cloudhead
69d973ed29 tree.js init 2010-03-01 15:32:49 -05:00
cloudhead
5ee0209e8a don't use Usage: node [options] script.js [arguments]
-v, --version      print node's version
  --debug[=port]     enable remote debugging via given TCP port
  --debug-brk[=port] as above, but break in node.js and
                     wait for remote debugger to connect
  --cflags           print pre-processor and compiler flags
  --v8-options       print v8 command line options

Documentation can be found at http://nodejs.org/api.html or with 'man node', as it's, um, used by node. Use  instead. Also moved tree.node requires in tree.js
2010-03-01 15:32:21 -05:00
cloudhead
1032c84b98 refactored selector generation a little 2010-02-28 12:50:41 -05:00
cloudhead
f0c00ab2b4 create an empty Combinator if none was specified. Refactored Combinator generation, and added + ~ :: 2010-02-28 12:49:08 -05:00
cloudhead
adb2fd2864 try/catch around code-gen, in test. Catch some extra errors too 2010-02-28 01:07:43 -05:00
cloudhead
35b452bf00 error = null, when starting a parse 2010-02-28 01:07:13 -05:00
cloudhead
8ac1bdf06c proper nested selector rendering, wooh. 2010-02-28 01:06:54 -05:00
cloudhead
cd764a2d8c give Element.toCSS a pre-space, useful when building new selectors 2010-02-28 01:05:27 -05:00
cloudhead
35af01d29a () around ternary operators 2010-02-28 01:03:22 -05:00
cloudhead
1c955c8cb3 fixed function name in alpha.js 2010-02-28 01:01:43 -05:00
cloudhead
1e16d0233c ParseErrors dont raise an exception anymore, we just set parser.error to the value of the error 2010-02-27 14:14:52 -05:00
cloudhead
c804ed2ef1 simplified code-gen loop 2010-02-27 14:13:28 -05:00
cloudhead
5a1adf801a removed unused test files 2010-02-26 22:36:54 -05:00
cloudhead
bb5adaa560 updated README 2010-02-26 22:36:44 -05:00