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/builtins.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/builtins.less')
-rw-r--r-- | mod/less/vendors/lessphp/tests/inputs/builtins.less | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mod/less/vendors/lessphp/tests/inputs/builtins.less b/mod/less/vendors/lessphp/tests/inputs/builtins.less new file mode 100644 index 000000000..ae2c4ef6e --- /dev/null +++ b/mod/less/vendors/lessphp/tests/inputs/builtins.less @@ -0,0 +1,36 @@ +// builtin + +@something: "hello world"; +@color: #112233; +@color2: rgba(44,55,66, .6); + +body { + color: @something; + + @num: 7 / 6; + height: @num + 4; + height: floor(@num) + 4px; + height: ceil(@num) + 4px; + + @num2: 2 / 3; + width: @num2; + width: round(@num2); + width: floor(@num2); + width: ceil(@num2); + width: round(10px / 3); + + color: rgbahex(@color); + color: rgbahex(@color2); +} + + +format { + @r: 32; + format: %("rgb(%d, %d, %d)", @r, 128, 64); + format-string: %("hello %s", "world"); + format-multiple: %("hello %s %d", "earth", 2); + format-url-encode: %('red is %A', #ff0000); + eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64)); +} + + |