Commit Graph

300 Commits

Author SHA1 Message Date
Synchro
3b293be8e2 Fix contrast percentage handling, fixes #1144 2013-01-23 00:32:41 +01:00
ScottRippey
80d9f387c0 Reversed the order of extract's parameters, to match the precedence set
by other functions. Fixes #1119
2013-01-12 12:55:09 +00:00
Luke Page
1abb5dd460 Fix #1122 2013-01-12 09:46:20 +00:00
Gustavo Henke
11aba0ea45 pow() function: more tests 2013-01-10 22:16:49 +00:00
Gustavo Henke
0ac95336f7 Added function pow() with tests 2013-01-10 22:16:49 +00:00
ScottRippey
454a761e9c Added a new function - extract for extracting padding values from a variable 2013-01-10 22:13:33 +00:00
Luke Page
d5bb30b4db Support angle unit conversion. add trig functions. don't compress angle unit. add mod and abs. Fixes #858 and fixes #240 2013-01-06 13:01:10 +00:00
Luke Page
703aa928fc Add tests for compression. remove fullhex function - make colors not compress when used in strings. 2013-01-06 10:33:31 +00:00
Luke Page
8745ab442a test production browser mode does not output log messages 2013-01-05 15:29:48 +00:00
Luke Page
4c2d01a316 make env available to functions. Fix the path for the data-uri function in the browser. Fixes #997 2013-01-05 15:29:45 +00:00
Luke Page
aa9c47b5da move data-uri tests to url.less so they are not run in the browser. add browser tests. make function return url() in the browser 2013-01-05 15:29:45 +00:00
Jay Adkisson
2394c0065e guess the mimetype, and properly encode non-base64 uris 2013-01-05 15:29:44 +00:00
Jay Adkisson
24e41081ef add a data-uri function
as described in a comment on #775
2013-01-05 15:29:42 +00:00
Salehen Rahman
d56e0a476d Added the square root function. 2013-01-05 15:29:41 +00:00
Luke Page
697515b56c Add additional test for nested selectors. Rebuild dist. 2013-01-05 15:29:39 +00:00
Luke Page
97d0b0205b Rudimentary support for extend in selectors 2013-01-05 15:29:38 +00:00
Luke Page
c1efcf4e57 Change extend format to :extend(.class); - part 1 - support for stand-alone &:extend(.class); 2013-01-05 15:29:37 +00:00
Luke Page
ecc9b0606b Fix merge errors/problems and change format to ++ 2013-01-05 15:29:35 +00:00
hokaccha
815ca4a818 Fix combinator is not extended 2013-01-05 15:29:34 +00:00
hokaccha
e793e81e92 Add Sass like extend 2013-01-05 15:29:32 +00:00
Marcel Jackwerth
61e7bd6fb1 loosened restriction on css units (who knows what W3C will think up next) 2013-01-05 15:29:32 +00:00
Marcel Jackwerth
c98495a100 Correct handling of units.
width: 1cm - 5mm
=> width: 0.5cm (instead of -4cm)

@ratio: 100px/50px
=> @ratio == 2 (instead of 2px)
2013-01-05 15:29:31 +00:00
Luke Page
2f5b0a6a0a Remove deprecated string interpolation 2013-01-05 15:29:30 +00:00
Luke Page
2624cc462e Test current behaviour of variables 2013-01-01 17:26:56 +00:00
Luke Page
ba99755f6b if contrast first argument does not match, pass it through. Fixes #1090 2012-12-30 08:36:00 +00:00
Luke Page
4f475456d5 fix parser bug with mixin call being interpretted as selector. Fixes #1091 2012-12-29 22:58:02 +00:00
Luke Page
9829f2409c When adding a path onto an unquoted url, escape characters that require it. Fixes #831 2012-12-28 21:04:28 +00:00
Luke Page
5b3851720a browser support for rootpath and relative urls, with test 2012-12-28 20:32:26 +00:00
Luke Page
75a92bdc44 Add tests for static urls 2012-12-28 16:40:06 +00:00
Luke Page
eb5c9fbf5d Relative url's option for node lessc 2012-12-28 15:25:15 +00:00
Luke Page
addf87a75f Fix browser tests by moving url re-writing tests to urls.less. Also fix browser rootpath. 2012-12-28 12:38:49 +00:00
Salim Bensiali
37729e17af Added missing newline at end of file 2012-12-27 20:43:55 +00:00
Salim Bensiali
e59a93b5fd Relative URLs in LESS files should be relative to the file that defines them.
It is up to the parser and compiler to rewrite them when those files are
imported by another LESS file.

- Modified and added test cases for import and import-once rules
- Fixed difference between client side and server side handling of relative urls
- Added a -rootpath option to lessc to specify another base path for the url
  rewriting. By default, rootpath=''
2012-12-27 20:40:16 +00:00
Luke Page
b0d4135eee Fix comment chunking. Fixes #1082 2012-12-22 18:36:09 +00:00
Luke Page
8cfe7acdae make import-once use the full path, not the possibly relative path to determine if an import has already been included 2012-12-22 10:21:28 +00:00
Luke Page
eb7242da30 Test that import paths load from the current directory first 2012-12-22 07:53:41 +00:00
Luke Page
8325548b7f bad error message trying to assign @@var. Fixes #1077 2012-12-16 08:57:16 +00:00
Luke Page
c35b6d733e Add browser specific url tests 2012-12-16 08:45:52 +00:00
Luke Page
6554117643 Add initial browser test suite using phantomjs for headless testing and jasmine 2012-12-16 08:45:51 +00:00
Luke Page
e69acbdc51 basic comments parsing in mixin arguments. comments need more work and a general solution though. fixes #1071 2012-12-11 21:38:39 +00:00
Luke Page
033abfd8be do not divide by 100 when doing maths and keeping the %. Fixes #1069 2012-12-11 21:38:38 +00:00
Toby Cole
d47668f4a2 Updating parser to allow dimensions starting '+'
According to http://www.w3.org/TR/CSS2/syndata.html#numbers,
numbers may start with a '+'.
Also updates the test suite to include at least one dimension
starting with '+'
2012-12-09 16:24:18 +00:00
Luke Page
2d73502955 Fix tests and report error at index -1 so it is a valid index 2012-12-09 15:42:14 +00:00
Luke Page
e3268e12b2 detect parse errors, even with an import. fixes #1053 2012-12-08 13:38:22 +00:00
Luke Page
650073e4f1 Scope fix - default parameters are evaluated in the mixin scope, not the
caller scope. Fixes #973.
2012-11-29 19:48:30 +00:00
Luke Page
60b2aa9a77 Fix multiple scoping issues with variables. Fixes #878 2012-11-29 18:40:45 +00:00
Luke Page
952960c934 20% of a colour is not 0.20 but 51. fixes #454. Fix from @unknownbrackets 2012-11-29 16:27:55 +00:00
Luke Page
8a6c5e9e4e Add support for @namespace and namespace combinators. Fixes #408 2012-11-28 06:56:50 +00:00
Luke Page
3dcf057fdb Refix tests to work on unix and windows 2012-11-28 05:58:08 +00:00
Felix Gnass
a59801f50d Test for escaped paths 2012-11-28 05:49:11 +00:00