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
Luke Page
3f9d01ac2f
optional dependencies should be loaded in a try-catch so they are actually optional
2013-01-11 22:29:46 +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
Spocke
30ee944a4c
Fixed so compression can be disabled on specific color values and a issue with a previous commit.
2013-01-05 16:38:49 +00:00
Spocke
432f89aaf4
Fixed issue where the compress value wouldn't get passed around correctly.
2013-01-05 16:36:17 +00:00
Spocke
4e1e3ab957
Added fullhex function to disable compression of color values in MS filter: values.
2013-01-05 16:33:44 +00:00
Spocke
c04ad3adc1
Added better compression for rules by removing the last semicolon.
2013-01-05 16:30:34 +00:00
Spocke
8fdec6ba94
Added better compression for dimension values 0px -> 0 and 0.1 -> .1.
2013-01-05 16:30:33 +00:00
Spocke
f3bb594943
Added better compression for colors hex values #FFFFFF -> #FFF.
2013-01-05 16:24:59 +00:00
Spocke
8bde1635fe
Fixed bug where a UTF8 BOM in the less files would break the rhino command line compressor.
2013-01-05 16:24:58 +00:00
Luke Page
6ffee4b903
nice error message if missing dependency
2013-01-05 16:17:05 +00:00
Luke Page
70d610f877
support https and 301 redirects in imports. fixes #1103
2013-01-05 16:08:32 +00:00
Richard Brown
fb60990145
Add a lint option to lessc
2013-01-05 15:29:47 +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
5b241fd3a7
throw an error if data-uri is used in the browser
...
and move require('fs') into the function, so other things
still work in the browser.
2013-01-05 15:29:43 +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
d26159e5c6
Correct unit merge
2013-01-05 15:29:40 +00:00
Luke Page
97d0b0205b
Rudimentary support for extend in selectors
2013-01-05 15:29:38 +00:00
Luke Page
4633f7cc4c
Fix unit comparing after merge
2013-01-05 15:29:37 +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
Jordan Harband
d9f929a063
- Change the default behavior of "@import" to only import once.
...
- Add @import-multiple if for some insane reason you want multiple imports.
- Continue to support @import-once for backwards compatibility.
- Fixes #212 .
2013-01-05 15:29:36 +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
f8f2c89ba3
Fix bug global leaks, ; to ,
2013-01-05 15:29:33 +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
ebea51873e
1.4.0 version
2013-01-05 15:29:29 +00:00
Luke Page
905ccb8a0c
make path matching more resiliant and parse file:///
2013-01-02 20:21:39 +00:00
Luke Page
a9775a34da
(dist) build 1.3.3
2012-12-30 09:35:49 +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
d30e0e1a33
(dist) build 1.3.2
2012-12-28 22:30:10 +00:00
Luke Page
8069e707db
fix typo on import
2012-12-28 22:30:09 +00:00
Luke Page
3dc7ce3f92
Do not add .less if the file has an extension already or has url parameters. Also support ';' instead of '?'. Fixes #784 and fixes #204
2012-12-28 21:29:08 +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
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
Luke Page
59258f5549
Fix server tests and an import bug when a media import is followed by further imports
2012-12-28 11:08:49 +00:00
Salim Bensiali
7396e3438e
Added documentation for the -rp, --rootpath option.
2012-12-27 20:41:51 +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