diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:42:42 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:42:42 -0300 |
commit | 711dab09b5146e74dbeda56679c65e3b6bec71f3 (patch) | |
tree | fed51be1475322c7a565d180d0b0ae3f97e6cf3a /mod/less/vendors/lessphp/tests/inputs/arity.less | |
parent | 4311cd55c6e6d6a064bfeabb53b9c528ca553ffd (diff) | |
parent | 551497ef94f6239b109316d8fab32f0909b13f73 (diff) | |
download | elgg-711dab09b5146e74dbeda56679c65e3b6bec71f3.tar.gz elgg-711dab09b5146e74dbeda56679c65e3b6bec71f3.tar.bz2 |
Merge commit '551497ef94f6239b109316d8fab32f0909b13f73' as 'mod/less'
Diffstat (limited to 'mod/less/vendors/lessphp/tests/inputs/arity.less')
-rw-r--r-- | mod/less/vendors/lessphp/tests/inputs/arity.less | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/mod/less/vendors/lessphp/tests/inputs/arity.less b/mod/less/vendors/lessphp/tests/inputs/arity.less new file mode 100644 index 000000000..a3adad612 --- /dev/null +++ b/mod/less/vendors/lessphp/tests/inputs/arity.less @@ -0,0 +1,77 @@ + +// simple arity + +.hello(@a) { + color: one; +} + +.hello(@a, @b) { + color: two; +} + +.hello(@a, @b, @c) { + color: three; +} + + +.world(@a, @b, @c) { + color: three; +} + +.world(@a, @b) { + color: two; +} + +.world(@a) { + color: one; +} + +.one { + .hello(1); + .world(1); +} + +.two { + .hello(1, 1); + .world(1, 1); +} + +.three { + .hello(1, 1, 1); + .world(1, 1, 1); +} + + +// arity with default values + +.foo(@a, @b: cool) { + color: two; +} + +.foo(@a, @b: cool, @c: yeah) { + color: three; +} + + +.baz(@a, @b, @c: yeah) { + color: three; +} + +.baz(@a, @b: cool) { + color: two; +} + + +.multi-foo { + .foo(1); + .foo(1, 1); + .foo(1,1,1); +} + +.multi-baz { + .baz(1); + .baz(1, 1); + .baz(1,1,1); +} + + |