Commit Graph

331 Commits

Author SHA1 Message Date
Luke Page
366f6755aa guards on css styles, first draft. Only allows guards on 1 selector in the block, that being the last one. 2013-07-05 06:51:59 +01:00
Luke Page
cfe9ae7798 Add svg-gradient function. Fixes #1383 2013-07-05 06:51:58 +01:00
Kevin Gillette
54a5f74c09 min/max now always reduce compatible terms. 2013-07-05 06:51:56 +01:00
Kevin Gillette
6df4e48976 Added min and max builtins. 2013-07-05 06:51:55 +01:00
Luke Page
7056f7b4d7 add tests and fix whitespace issue 2013-07-05 06:51:54 +01:00
Luke Page
5cb5f561c8 Convert property merging to the new agreed syntax of +: 2013-07-05 06:51:41 +01:00
Luke Page
577d24cc97 Fix merge tests when running in phantomjs 2013-07-05 06:51:40 +01:00
Daniel Katz
ff029c34bd Syntax changed to !merge(space | comma)
* Syntax changed to !merge(space | comma)
* !merge(space) implemented by Expression instead of Value.
* Added test for lonely property with !merge directive
2013-07-05 06:51:40 +01:00
Daniel Katz
5dde7b3381 Added support and tests for !merge() syntax #700 2013-07-05 06:51:39 +01:00
Luke Page
de27a6fd88 Add bypass for saturate(5%) filter function. Helps issue #1299 2013-07-05 06:51:05 +01:00
agatronic
446e164444 rename mute to reference 2013-07-05 06:51:04 +01:00
Luke Page
f4902f809c rename import silent to import mute. Fixes #1210 2013-07-05 06:51:02 +01:00
Luke Page
493d6facf2 support comments. Add failing test case for when mixin call does not have parent selectors 2013-07-05 06:50:57 +01:00
Luke Page
aa802bd84c import silent to work with media queries and directives 2013-07-05 06:50:56 +01:00
Luke Page
b912a971d3 import silent: add tests for extends 2013-07-05 06:50:56 +01:00
Luke Page
33c5ecd100 import silent - handle selectors containing amp 2013-07-05 06:50:55 +01:00
Luke Page
5df82b69ce Basic functionality and basic tests for import silent 2013-07-05 06:50:54 +01:00
Luke Page
f068d2da68 multi comments in selectors and other places 2013-07-05 06:48:48 +01:00
Luke Page
6fc6dc2301 Add import inline option. Fixes #1209 2013-07-05 06:48:47 +01:00
Luke Page
65602099cc rename strictMaths to strictMath, set default to false, update strict options to take = on | off 2013-05-02 18:18:51 +01:00
agatronic
572b45a94b Add isunit function. fixes #1298 2013-04-29 16:28:20 +01:00
agatronic
4997ce9ced extends recognise attributes. Fixes #1295 2013-04-29 16:28:04 +01:00
agatronic
5bc4059c6b Make non strict units less strict and change the default to not be strict units. Fixes #1254 2013-04-26 09:35:56 +01:00
Luke Page
b2d75e82b4 Allow variable interpolation in attributes everywhere that is sensible 2013-03-18 12:19:02 +00:00
Luke Page
e58662fbd3 better support for attributes. Allow interpolation inside attributes. Fixes #1229 2013-03-18 12:13:01 +00:00
Luke Page
19405ac501 ampersands in selectors using extend - more complex test 2013-03-18 11:37:25 +00:00
Luke Page
e210c4b251 Fix extends when selector to add includes & and :extend is inline. Fixes #1227 2013-03-18 11:29:39 +00:00
Luke Page
2392e4133e Fix index on mixed units error. Fixes #1228 2013-03-18 10:54:01 +00:00
Luke Page
ac3a92dd30 add clamping to hsl and hsla functions 2013-03-08 08:22:57 +00:00
Luke Page
096a69796f support media queries in extend chaining. Also tidied up. Fixes #1213 2013-03-07 15:02:39 +00:00
Luke Page
2ff9ae521e Allow circular references and ignore them when they become circular 2013-03-07 14:17:20 +00:00
Luke Page
7170aaf06e First part of extend chaining 2013-03-07 12:17:24 +00:00
Luke Page
99aa363b70 fix, less with compression (-x) was unable to parse auto\9 2013-03-06 16:06:16 +00:00
Luke Page
c17d939ea7 Allow multiple extends for more declarative multiple inheritance 2013-03-06 15:09:43 +00:00
Luke Page
dca16509c2 fix regression: mixin guards compare units correctly 2013-03-06 10:07:43 +00:00
Luke Page
c583acede0 Fix default variables containing comma when semi-colon seperated mixin definition. Fixes #1211 2013-03-06 09:55:14 +00:00
Luke Page
10caaac723 correct bad test txt 2013-03-06 09:53:57 +00:00
Luke Page
cf9496ec32 remove shallow/deep options & tidy up part 1 2013-03-06 08:03:50 +00:00
Luke Page
c139c6e4df error when property is used in root. Fixes #442 2013-03-05 13:28:49 +00:00
Luke Page
7778da94b5 don't remove duplicate comments, fixes #1067 2013-03-05 11:58:59 +00:00
Luke Page
8437d0766d remove short lived @import-once in favour of @import (default is once) and @import (multiple) for multiple 2013-03-05 11:39:05 +00:00
Luke Page
3ac8371aea Change import options to require '(' 2013-03-05 11:35:41 +00:00
C. Scott Ananian
72c469d86e Implement syntax in gh #1185 for @import options. Implement multiple & less.
First step in implementing syntax for @import options, proposed in
https://github.com/cloudhead/less.js/issues/1185#issuecomment-13710620
(steps (1) and (2)).

I've implemented the 'multiple' and 'less' options.  One could trivially
add 'once' and 'css' options as well, if there was need.  Proposed
"silent" and "inline" options are deferred for future work.

I left the existing "@import-multiple" and "@import-once" syntax in place,
although the proposal is for this to be deprecated once the new option
syntax is in place.
2013-03-05 11:23:47 +00:00
Luke Page
7cebd9ca25 support for deep but exact extend 2013-03-05 10:20:41 +00:00
Luke Page
62cc6cfc0b Add exact syntax for extend 2013-03-05 09:51:20 +00:00
Luke Page
3164d57f9e extend - replace elements multiple times in a path 2013-03-05 08:58:20 +00:00
Luke Page
c90558b928 Support matching across nested variables 2013-03-04 16:20:06 +00:00
Luke Page
59fb6cd1f7 change extends to work after selector joining. refactor findMatch ready for change to support properties across nesting 2013-03-04 15:47:12 +00:00
Luke Page
2805827d61 match multiple classes as the extend target 2013-03-04 13:13:08 +00:00
agatronic
1970be737b slight restructure and tests to show we allow multiple extends 2013-03-04 11:54:11 +00:00