diff options
Diffstat (limited to 'vendors/lessphp/tests/inputs/builtins.less')
-rw-r--r-- | vendors/lessphp/tests/inputs/builtins.less | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/vendors/lessphp/tests/inputs/builtins.less b/vendors/lessphp/tests/inputs/builtins.less new file mode 100644 index 000000000..ae2c4ef6e --- /dev/null +++ b/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)); +} + + |