Commit f2f61a1
committed
Allow value definitions with commas in them.
This makes value declarations slight more strict: there must now
be only one declaration per @value (imports still work as before,
and multiple values can be imported in a single @value).
By doing this, it allows us to be more permissive of what the
definitions can contain, thus allowing for support of things
such as:
- Multiple box-shadow shadows
- Multiple transition specifications
- Multiple media query conditions (OR'd)
It does allow for a little bit of weirder usage in this, e.g. for
specifying multiple values in a comma-separate rgba value:
@value redAndGreen: 150, 150;
.foo { background-color: rgba(redAndGreen, 0, 1); }
I don't think that's a super-desirable usage, but I also don't
think it really harms anything by being allowed, so I haven't
attempted to mitigate it.
Fixes #11.1 parent aa28589 commit f2f61a1
3 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
113 | 121 | | |
0 commit comments