773 Commits

Author SHA1 Message Date
ConnorSkees
87579b181b clippy 2020-02-16 18:03:19 -05:00
ConnorSkees
f57da880b6 fmt 2020-02-16 17:49:37 -05:00
ConnorSkees
3e89a0a057 Handle numbers passed to saturate 2020-02-16 17:13:17 -05:00
ConnorSkees
d4dd360682 Handle number passed to invert() 2020-02-16 17:00:31 -05:00
ConnorSkees
948c489785 Properly implement weighted inversion 2020-02-16 16:53:28 -05:00
ConnorSkees
ca0e2d47cb Grayscale function behaves differently when given a number 2020-02-16 16:11:24 -05:00
ConnorSkees
96d29f45b8 Bounds check for fade_(in|out) 2020-02-16 16:03:22 -05:00
ConnorSkees
048ab562b2 more bounds checking 2020-02-16 15:34:21 -05:00
ConnorSkees
4238124344 fmt tests 2020-02-16 15:34:07 -05:00
ConnorSkees
3512873363 Properly print negative decimals 2020-02-16 15:30:31 -05:00
ConnorSkees
24dc99affe Include argument name in bounds error 2020-02-16 15:17:01 -05:00
ConnorSkees
5f59c71752 Bounds checking macro for builtin functions 2020-02-16 15:14:14 -05:00
ConnorSkees
fcb5069f82 Keep track of original values given from hsla() 2020-02-16 15:06:02 -05:00
ConnorSkees
2b3e2ce34c rustfmt 2020-02-16 15:03:28 -05:00
ConnorSkees
639fa99abc Split Color into HSLA and RGBA representations 2020-02-16 14:19:04 -05:00
ConnorSkees
cdf057f8d0 fmt tests 2020-02-16 12:44:02 -05:00
ConnorSkees
e886f5476b Properly conjugate 'arguments' when more than 1 is allowed 2020-02-16 12:39:48 -05:00
ConnorSkees
0aac40441d Put max_args! everywhere 2020-02-16 12:35:03 -05:00
ConnorSkees
46f2d4c47e Proper error messages for too many arguments 2020-02-16 12:31:09 -05:00
ConnorSkees
0e53318c9e Add named color transparent 2020-02-16 12:23:08 -05:00
ConnorSkees
089edee8af Proper errors for missing arguments 2020-02-16 12:17:34 -05:00
ConnorSkees
9a36c3be73 More builtin color function errors 2020-02-16 12:14:20 -05:00
ConnorSkees
1995b5ec6e Error messages in builtins 2020-02-16 11:59:04 -05:00
ConnorSkees
7c451e333e Arg errors for (de)saturate 2020-02-16 11:51:25 -05:00
ConnorSkees
92a7264f9a More error messages 2020-02-16 11:42:28 -05:00
ConnorSkees
4114bb0a78 rgb error messages 2020-02-16 11:37:27 -05:00
ConnorSkees
bbf0cd7e51 More error messages! 2020-02-16 11:28:36 -05:00
ConnorSkees
402d36133c Proper errors for $color 2020-02-16 11:17:57 -05:00
ConnorSkees
b4ea8913f0 HSLA errors (experimental) 2020-02-16 11:12:17 -05:00
ConnorSkees
627e326ac5 Refactor error messages to not have quotes 2020-02-16 11:10:03 -05:00
ConnorSkees
f817598a9d Refactor error handling 2020-02-16 10:54:25 -05:00
ConnorSkees
6d0686866e hsla doesn't care about units 2020-02-16 10:28:33 -05:00
ConnorSkees
cc372f4e65 Reexport SassResult 2020-02-16 10:28:15 -05:00
ConnorSkees
042c5f4f2f Null should not be preserved 2020-02-16 10:27:51 -05:00
ConnorSkees
d300cd046a Use SassError over Option inside builtins 2020-02-16 10:14:17 -05:00
ConnorSkees
ff0b05d74a Refactor SassError to live inside error module 2020-02-16 10:08:51 -05:00
ConnorSkees
72ae82b6c5 Create test for interchangable - _ in builtins 2020-02-15 11:47:37 -05:00
ConnorSkees
2a6bb7d24f Lowercase github name 2020-02-15 11:47:19 -05:00
ConnorSkees
98b14e010e Bump version to 0.2.0 2020-02-15 10:12:32 -05:00
ConnorSkees
03c278ed19 exclude tests from crates.io 2020-02-15 10:11:26 -05:00
ConnorSkees
e02c0ae574 2020-02-15 tests 2020-02-15 10:06:26 -05:00
ConnorSkees
48e618c43d Don't print out styles if they are null 2020-02-15 09:58:41 -05:00
ConnorSkees
8f379c425d Add tests for str-length() 2020-02-15 09:48:58 -05:00
ConnorSkees
19d68c3c5d Handle str-slice $end-at is 0 2020-02-15 08:54:10 -05:00
ConnorSkees
d082583917 Handle negative numbers in str-slice() 2020-02-15 08:51:00 -05:00
ConnorSkees
fab55c5105 Properly handle str-slice() when $start-at is 0 2020-02-15 08:33:42 -05:00
ConnorSkees
35ed667f16 Implement builtin function comparable() 2020-02-15 08:16:17 -05:00
ConnorSkees
3823a0f9cd Use same implementation for rgb() and rgba() 2020-02-15 07:06:45 -05:00
ConnorSkees
4702461fe7 Allow 3 arguments in rgba() 2020-02-15 07:00:24 -05:00
ConnorSkees
46e4ccd5f9 Allow alpha in hsl() 2020-02-15 06:55:20 -05:00