Commit Graph

157 Commits

Author SHA1 Message Date
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
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
3e5a336f88 add ability to bind varargs 2012-02-28 19:23:39 +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
5ccf1dafec Fix '::' selector output, Closes #663 2012-02-28 16:58:44 +01: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
288248dc5a added @media bubbling (similar to SASS) 2012-02-14 20:10:25 +01:00
Jacob Thornton
75419077d7 always newline selector lists 2012-01-20 19:56:18 -08:00
Alexis Sellier
e8ac71c5b0 (minor) add missing semi-colon 2012-01-15 17:23:20 +01:00
Alexis Sellier
aefd310514 fix Runtime error reports from imported files 2012-01-11 00:55:14 +01:00
Alexis Sellier
2cc1b018fe fix 'File not found' import error 2012-01-10 23:52:45 +01:00
Alexis Sellier
6d4516e6fc improve errors from imported files 2012-01-09 20:39:24 +01:00
Alexis Sellier
48db59ec82 remove '^=', support 'not' better 2012-01-07 01:34:31 +01:00
Alexis Sellier
aab66a4d10 support '!important' after mixin calls
ex: `.mixin(4) !important;`
2012-01-05 21:53:03 +01:00
Alexis Sellier
7dd31ff654 improve import support with media features 2012-01-05 21:31:39 +01:00
Alexis Sellier
d8441445a5 change negation operators to be more cssy 2012-01-03 22:41:14 +01:00
Alexis Sellier
a40a9ee4db and/or for mixin guards 2012-01-03 22:27:54 +01:00
Alexis Sellier
2844e03c5b (minor) tidying up 2012-01-03 18:46:28 +01:00
Alexis Sellier
5ec708c3f4 type-checking stylesheet functions
is-string, is-keyword, is-color, is-number
2012-01-03 18:45:31 +01:00
Alexis Sellier
77c8df029b support more falsy values 2011-12-30 00:50:26 +01:00
Alexis Sellier
40011da01b mixin-guards: support >= != =< operators 2011-12-29 23:39:59 +01:00
Alexis Sellier
626d7f1523 additional support for mixin guards 2011-12-24 13:32:13 +01:00
Alexis Sellier
17137c1a70 fix string interpolation bug when var is empty 2011-12-20 01:31:51 +01:00
Alexis Sellier
ddc27617cf improve function call error reporting 2011-12-18 17:30:02 +01:00
Alexis Sellier
3fa7b2fcc0 parenthesized node init 2011-12-17 17:42:34 +01:00
Alexis Sellier
ff3d7c61ff properly support @media and @import features 2011-12-17 17:41:54 +01:00
Alexis Sellier
d1cb4aab97 improvements to error messages 2011-12-15 23:42:22 +01:00
Alexis Sellier
321920a50d mixin guards
Allows functional-style guard expressions:

  .mixin (@a) ? @a > 0 {...}
2011-12-15 23:38:53 +01:00
Alexis Sellier
db72c646bb dynamic selectors
Allows things like:

  a:nth-child(@var) {}
2011-12-15 22:24:52 +01:00
Alexis Sellier
9eb0423cb2 fix regression on url.js 2011-11-26 23:42:23 +01:00
Alexis Sellier
920034233b Merge pull request #458 from fat/assignment-entities
Assignment entities
2011-11-24 16:14:39 -08:00
Alexis Sellier
40601f8a61 fix regression on urls with relative paths Closes #464 #471 #465 2011-11-23 10:58:26 +01:00
Jacob Thornton
56fc8fe510 clean up + add test 2011-11-13 00:21:03 -08:00
Jacob Thornton
c3b560c6c1 Merge branch 'master' into assignment-entities 2011-11-12 23:57:36 -08:00
Jacob Thornton
354844e802 add assignment entities 2011-11-12 23:55:40 -08:00
Alexis Sellier
e80847267b fix IE 6 support 2011-11-12 14:06:40 +01:00
Alexis Sellier
e35dc0efc0 merge 2011-11-12 13:49:41 +01:00
Alexis Sellier
c290c48b3f node 0.5.x compatibility 2011-11-12 13:13:36 +01:00
Jacob Thornton
f197b2a0f8 store index on selector element objects for line number inference 2011-11-10 21:24:25 -08:00
cloudhead
b32fe0e6a8 improve mixin matching, closes #381 2011-11-04 16:13:29 -04:00
Adam Solove
5ad3a6732d Correctly handle data URIs, add test for quoted data URIs. 2011-10-21 12:49:25 -04:00