Commit Graph

778 Commits

Author SHA1 Message Date
Marcus Bointon
65e4806406 Merge pull request #879 from dmcass/attribute-selector
Allow numbers and underscores in attribute selectors
2012-07-27 02:18:22 -07:00
Dustin Cass
cb8856fe6f Adjust all regexes in parser.js to use similar style for character classes 2012-07-26 16:28:10 -07:00
Dustin Cass
4821735ba2 Adjust attribute selector regex to allow for numbers and underscores in attribute names (fixes #863, fixes #876). 2012-07-26 15:47:53 -07:00
Sasha Sklar
5974b9e15a Merge pull request #857 from clmsnskr/master
Revert adding "transparent" as a color name
2012-07-05 18:54:14 -07:00
Chris Coker
b004c19657 remove transparent from colors.js 2012-06-29 13:35:38 -04:00
Sasha Sklar
b235734a11 Merge pull request #753 from clarkni5/master
Adding "dpi" as a valid dimensions for media queries
2012-05-15 07:44:37 -07:00
Sasha Sklar
8774a436f6 Merge pull request #800 from SpadarShut/master
Added 'transparent' as a named color
2012-05-15 07:43:48 -07:00
Sasha Sklar
fcc50ac8e8 Merge pull request #804 from jreading/664a8d713ce130efa1120f31d2bd18db13ed33c3
Fix for unnamed parameters test fail & failing test for import-once
2012-05-14 14:18:06 -07:00
Sasha Sklar
744ec15477 Merge pull request #796 from comfuture/lessjs
fixed issue #795
2012-05-14 14:17:37 -07:00
John Reading
664a8d713c failing test for 8891564917 2012-05-11 13:53:51 -04:00
John Reading
b144fc59eb fix for unamed parameter 2012-05-11 13:24:30 -04:00
comfuture
94f70f7121 fixed issue #795 2012-05-06 11:13:30 +09:00
Pavel Shut
f42de9bacd Added transparent: rgba(0,0,0,0) as a named color 2012-05-04 17:03:24 +03:00
Alexis Sellier
a2df119732 Merge pull request #268 from jamesfoster/master
Implemented named arguments
2012-04-30 02:56:41 -07:00
James Foster
1bb3dc1f26 Fix trailing space when parent selector is the last part of the selector.
'''
.foo {
  .bar & {
    &:hover {
      color: orange;
    }
  }
}
'''

now outputs

'''
.bar .foo:hover {
  color: orange;
}
'''
2012-04-30 03:30:14 +01:00
James Foster
1857b7c5aa Implement named parameters 2012-04-30 03:30:02 +01:00
Nicholas Clark
6333fddaa2 Adding "dpi" to the list of valid dimensions. 2012-04-05 16:59:33 -04:00
cloudhead
cb78933423 remove duplicate rules automatically 2012-03-27 16:59:49 +02:00
cloudhead
8891564917 import-once functionality 2012-03-21 18:03:04 +01:00
Alexis Sellier
54e1a6ba29 CHANGELOG v1.3.0 2012-03-10 20:36:27 +01:00
Alexis Sellier
3fb212d9c3 (dist) 1.3 2012-03-10 20:29:10 +01:00
Alexis Sellier
67ed7dfcb3 variable selectors must be paranthesized 2012-03-10 20:25:10 +01:00
Alexis Sellier
98d513a969 (test) fix benchmark 2012-03-04 22:35:02 +01:00
Alexis Sellier
d955198c85 Merge branch 'master' of github.com:cloudhead/less.js 2012-03-04 22:15:37 +01:00
Alexis Sellier
93b23d2c24 support strings as selectors
example:

  @n: 1;
  ~".span@{n}" { ... }
2012-03-04 22:13:04 +01:00
Alexis Sellier
8fde644ce7 Merge pull request #673 from andrewjstone/master
mocha found a couple global variable leaks. Here's the fix.
2012-03-04 10:19:32 -08:00
Andrew Stone
6e57f91fd0 fix global variable leaks 2012-03-01 12:39:01 -05:00
Alexis Sellier
3e5a336f88 add ability to bind varargs 2012-02-28 19:23:39 +01:00
Alexis Sellier
99c3cb4c2e (test) test for semi-variadic mixin 2012-02-28 18:06:38 +01:00
Alexis Sellier
229856d514 fix error message on wrong-arity call 2012-02-28 18:06:22 +01:00
Alexis Sellier
ac226c6b7f Variadic argument support
.mixin (...)   {} // matches any number of arguments
   .mixin ()      {} // matches exactly 0 arguments
   .mixin (@a: 1) {} // matches 0-1 arguments
2012-02-28 17:42:29 +01:00
Alexis Sellier
236f16b124 Allow '@import' directives in any selector
Add --strict-imports option to disable for perf
reasons.
2012-02-28 17:20:11 +01:00
Alexis Sellier
598b249101 Fix '@arguments' behaviour, Closes #632
`.mixin` & `.mixin()` had differing behaviours.
2012-02-28 17:06:45 +01:00
Alexis Sellier
5ccf1dafec Fix '::' selector output, Closes #663 2012-02-28 16:58:44 +01:00
Alexis Sellier
089ca34dc1 Merge branch 'patch-media-query-variable' of https://github.com/sirlantis/less.js
Conflicts:
	test/css/media.css
	test/less/media.less
2012-02-28 16:49:24 +01:00
Alexis Sellier
2723c4ecdc Merge pull request #634 from sirlantis/patch-media
Add @media bubbling/nesting/merging
2012-02-28 07:45:34 -08:00
Marcel Jackwerth
0086f1babb Declare e properly in mediaFeature 2012-02-27 12:09:27 +01:00
Marcel Jackwerth
9f9eeec297 media-query can now be a variable 2012-02-20 17:28:24 +01:00
Alexis Sellier
ab5343098c Merge pull request #631 from highergroundstudio/master
Fixed spelling error on benchmark/less-benchmark.js
2012-02-17 06:57:55 -08:00
Marcel Jackwerth
1ba622dd8d fixed a bug when using @media with mixins 2012-02-17 11:57:31 +01:00
Marcel Jackwerth
081c26dc9a adjusted indent-whitespace to 4 spaces 2012-02-17 01:42:22 +01:00
Marcel Jackwerth
936ab7d52e Added automatic merging of media-query conditions 2012-02-17 01:39:03 +01:00
Marcel Jackwerth
80e8b42e9a remove @media code from tree.Directive 2012-02-17 01:19:46 +01:00
Marcel Jackwerth
53b67e79fe moved @media code to own file 2012-02-16 20:56:21 +01:00
Marcel Jackwerth
378ddef61f fixed double-space 2012-02-15 17:17:48 +01:00
Marcel Jackwerth
9fb9b55770 added more complex test for @media bubbling 2012-02-14 20:28:43 +01:00
Marcel Jackwerth
288248dc5a added @media bubbling (similar to SASS) 2012-02-14 20:10:25 +01:00
Kyle King
47e0ab96b6 Fix spelling on benchmark/less-benchmark.js 2012-02-13 16:36:39 -07:00
Alexis Sellier
d17a4614b6 (dist) build 1.2.2 2012-02-11 18:17:25 +01:00
Alexis Sellier
83426e424d (dist) version 1.2.2 2012-02-11 18:17:09 +01:00