Commit Graph

288 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
d2255e64f6 do not use spaces between | namespace operators. Fixes #1300 2013-07-05 06:51:54 +01:00
Roman Ožana
77966d4457 Improve comments stripping in compress
Ignore comment during compress if starts with exclamation mark
2013-07-05 06:51:53 +01:00
Kim Joar Bekkelund
5444e9482b Simplify ifs 2013-07-05 06:51:43 +01:00
Luke Page
5cb5f561c8 Convert property merging to the new agreed syntax of +: 2013-07-05 06:51:41 +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
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
dce452421f Fix the rest of import silent 2013-07-05 06:51:01 +01:00
Luke Page
47b7bda64b todo to fix last part of import silent 2013-07-05 06:50:58 +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
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
6fc6dc2301 Add import inline option. Fixes #1209 2013-07-05 06:48:47 +01:00
ForbesLindesay
22c5bd77c4 Fix global variable leaks 2013-07-05 06:10:16 +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
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
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
dca16509c2 fix regression: mixin guards compare units correctly 2013-03-06 10:07:43 +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
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
62cc6cfc0b Add exact syntax for extend 2013-03-05 09:51:20 +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
bf74d88302 remove commented out code 2013-03-04 13:15:37 +00:00
Luke Page
da7de8f518 move extend fully into visitor, bringing back functionality and fixes #1165 2013-03-04 10:43:32 +00:00
Luke Page
aac8e973fe Add an extend finder visitor and extend processor visitor (breaks extend for now) 2013-03-04 10:03:16 +00:00
Luke Page
ed78502b1e cleanup join selectors from toCSS 2013-03-01 17:39:36 +00:00
Luke Page
4101ae9bdc move selector joining into visitor 2013-03-01 17:34:11 +00:00
Luke Page
5d54af2039 import interpolation finished. refactored the import phase to occur only within the import visitor - so that the import eval env can be passed between imports. 2013-03-01 13:40:54 +00:00
Luke Page
57b41f0ea0 make import use shared relative path function 2013-03-01 13:40:50 +00:00
Luke Page
290d7a055c organise the import node a bit better. eval the node before fetching 2013-03-01 13:40:49 +00:00
Luke Page
e63c8c5868 Move importing into visitor 2013-03-01 13:40:03 +00:00
Luke Page
39f669e83c Add import visitor 2013-03-01 13:40:01 +00:00
Luke Page
c56db94b7d Add modified (self altering) visitor pattern and class 2013-03-01 13:40:00 +00:00
Luke Page
9b256f2340 whitespace 2013-02-28 20:17:52 +00:00
Luke Page
494c5f2681 extend options, algin with decided syntax 2013-02-28 17:07:45 +00:00
Luke Page
241c830e10 Support reading other arguments as default parameters. Fixes #43 2013-02-17 22:25:38 +00:00
Luke Page
e7cbc4c190 Fix data-uri relative url to be relative in the same way as normal url's 2013-02-17 12:44:31 +00:00
Luke Page
f68337e450 change data-uri to look at the file relative to the root or current less file. Fixes #1186 2013-02-16 22:11:01 +00:00
Luke Page
21cc34b608 Fix #791 - avoid engineering syntax in dimensions 2013-02-16 20:45:34 +00:00
Luke Page
d01d2e9bfb do not pollute the parent scope after mixin call if variable is defined 2013-02-16 15:15:38 +00:00
Luke Page
d70769bfb7 variables in media queries in import statements 2013-02-16 14:44:58 +00:00