Natalie Weizenbaum
ca4d411362
Fix str-slice() again.
2017-01-14 22:39:28 -08:00
Natalie Weizenbaum
566c06df0e
Fix unitless-to-unit number equality.
2017-01-14 22:17:57 -08:00
Natalie Weizenbaum
bf771689f3
Fix SassMap.asList's return type.
2017-01-08 21:39:30 -08:00
Natalie Weizenbaum
7564b6a51a
Include names in unit assertion errors.
2017-01-08 21:26:05 -08:00
Natalie Weizenbaum
7ccccbc2ba
Fix unit coercion in @for.
2017-01-06 17:46:12 -08:00
Natalie Weizenbaum
41772a1739
Fix str-slice(). ( #70 )
...
See sass/sass#2211
2016-12-18 17:54:35 -08:00
Natalie Weizenbaum
9d678469d0
Support var() in plain CSS color functions. ( #69 )
...
See sass/sass-spec#1002
See sass/sass#2175
2016-12-16 18:20:03 -08:00
Natalie Weizenbaum
c91ace92ab
Fix dp unit conversions. ( #68 )
...
See sass/sass#2143
2016-12-16 18:00:15 -08:00
Natalie Weizenbaum
a15bc625bf
Fix an RGB-to-HSL bug.
2016-11-05 23:42:07 -07:00
Natalie Weizenbaum
ce8e223d88
Make color equality consider alpha.
2016-11-05 22:28:34 -07:00
Natalie Weizenbaum
bab6ebb59a
Track and use colors' original representations.
2016-11-02 17:37:10 -07:00
Natalie Weizenbaum
9ec89f6944
Support get-function().
2016-10-28 15:28:05 -07:00
Natalie Weizenbaum
683f4afb40
Fix number multiplication.
2016-10-21 21:28:16 -07:00
Natalie Weizenbaum
271f899d3b
Support slash numbers in lists.
2016-10-20 17:50:02 -07:00
Natalie Weizenbaum
9cd43fff02
Fix adjust-color().
2016-10-19 23:09:03 -07:00
Natalie Weizenbaum
5d6ff2eadc
Fix unit conversion in division.
2016-10-19 23:02:33 -07:00
Natalie Weizenbaum
87e03f17eb
Properly cancel unknown units.
2016-10-19 18:53:57 -07:00
Natalie Weizenbaum
e4fd1beb7a
Fix a number division bug.
2016-10-19 18:45:16 -07:00
Natalie Weizenbaum
13156d5107
Disable implicit downcasts.
2016-10-19 17:56:48 -07:00
Natalie Weizenbaum
870a2a4f4a
Update number equality.
2016-10-18 21:39:29 -07:00
Natalie Weizenbaum
101904d26c
Fix unquoted + quoted.
2016-10-18 20:34:03 -07:00
Natalie Weizenbaum
cf3cf07c93
Preserve units through unary minus.
2016-10-18 18:32:54 -07:00
Natalie Weizenbaum
2b2061f7e5
Treat empty unquoted strings as blank.
2016-10-18 17:53:40 -07:00
Natalie Weizenbaum
5b4348f8bf
Fix broken type annotations.
2016-10-18 17:05:53 -07:00
Natalie Weizenbaum
4d54c5d351
Fix units for coercing number operations.
2016-10-18 16:48:42 -07:00
Natalie Weizenbaum
b5ccb26b9b
Consider null blank.
2016-10-18 15:23:19 -07:00
Natalie Weizenbaum
e7024437d8
Use Ruby Sass string semantics.
2016-10-18 15:17:46 -07:00
Natalie Weizenbaum
286b24afca
Fix number equality.
2016-10-18 14:26:52 -07:00
Natalie Weizenbaum
98f1c7dca3
Fix a unit conversion bug.
2016-10-17 17:42:19 -07:00
Natalie Weizenbaum
8969fc75f2
Store numbers' original values.
2016-10-17 16:50:43 -07:00
Natalie Weizenbaum
7f6c70f821
Add Value.toCssString().
2016-10-16 19:01:23 -07:00
Natalie Weizenbaum
604fa597e5
InternalException -> SassScriptException
2016-10-16 18:46:38 -07:00
Natalie Weizenbaum
c41f2bb023
Properly serialize numbers.
2016-10-16 14:07:30 -07:00
Natalie Weizenbaum
441ca87f37
Way more API docs.
2016-10-15 02:57:29 -07:00
Natalie Weizenbaum
a3509e2947
Remove an outdated TODO.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
1a2bc5ffc9
Support calc-aware functions.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
ad1bbcc9bc
Add comparable().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
69b61b1dc9
Fix unit stuff.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
216ffece4b
Fix some map/list equivalence stuff.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
f7fbbb075a
Add append().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
10d7da9d73
isBracketed -> hasBrackets
...
This is consistent with SassString.hasQuotes.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
7418b78902
Add nth().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
158ac11d43
Add TODOs for persistent data structures.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
8fd5818977
Add str-insert().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
7e0f642cd1
Use fuzzy rounding for consistency with Ruby Sass.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
3cbbe101f1
Add scale-color().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
fc4e6afad8
Add adjust-color().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
d2591122db
Add adjust-hue().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
30df7507c8
Add hsl().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
dd85c34ae2
Use fuzzy comparisons for number operations.
...
Also implement ==, which apparently didn't exist for numbers yet.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
048d7cff33
Add mix().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
227329f9c3
Add rgba().
...
This also adds built-in function overloading. This adds some extra
layers to the default function-call logic which could be avoided by
handling overloading purely in the callbacks of functions that require
it, but it's not clear how to share logic gracefully between the perform
visitor and function helpers.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
5cc5bf1914
Add rgb().
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
dd8a0efd66
Add an ArgumentList class.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
c9af638f54
Support for units
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
bacc1c4529
Unify strings and identifiers.
...
The separation makes sense conceptually, but it would make string
functions a lot harder to write.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
9ac48fbc05
Add support for binary operations.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
53635def75
Fix map serialization.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
efd336dd20
Support null.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
1832879845
Support @each
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
80f0afb484
Support @for.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
da1cef3f6f
Move advanced list paren logic to serializer.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
e2eb590ce6
Set precision to 10.
2016-08-30 15:51:23 -07:00
Natalie Weizenbaum
f1ce6ea599
Format all code.
2016-08-30 15:51:23 -07:00
Natalie Weizenbaum
82aca21682
Add @if.
2016-08-30 15:51:23 -07:00
Natalie Weizenbaum
cbe3709914
Default values for boolean parameters.
2016-08-30 15:51:22 -07:00
Natalie Weizenbaum
6c0a2547b0
Re-organize visitors.
2016-08-30 15:51:21 -07:00
Natalie Weizenbaum
a206fdcddb
Fix analysis.
2016-08-30 15:51:21 -07:00
Natalie Weizenbaum
3108dc46e9
Add a default Value.toString().
2016-08-30 15:51:21 -07:00
Natalie Weizenbaum
0b7ea7d8c9
Add nested list parenthsization.
2016-08-30 15:51:21 -07:00
Natalie Weizenbaum
6c6bd715ee
Add maps.
2016-08-30 15:51:21 -07:00
Natalie Weizenbaum
a2d645ee73
Add bracketed lists.
2016-08-30 15:51:20 -07:00
Natalie Weizenbaum
a23aa018b0
Support hex colors.
2016-08-30 15:51:18 -07:00
Natalie Weizenbaum
13e3bd7707
Prefix all values.
2016-08-30 15:51:17 -07:00
Natalie Weizenbaum
dadcebf2c9
Add a dedicated serializer.
2016-08-30 15:51:17 -07:00
Natalie Weizenbaum
01e31fe4ad
Add CSS and Value visitors.
2016-08-30 15:51:17 -07:00
Natalie Weizenbaum
e5cf8d5738
Numbers.
2016-08-30 15:51:17 -07:00
Natalie Weizenbaum
8f44bd8daa
Booleans and unary not.
2016-08-30 15:51:17 -07:00
Natalie Weizenbaum
27a819243b
Parens
2016-08-30 15:51:17 -07:00
Natalie Weizenbaum
22b87bed6e
Add a value type.
2016-08-30 15:51:16 -07:00