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
ConnorSkees
a35fa119e0
Implement builtin function ie-hex-str()
2020-02-14 20:34:12 -05:00
ConnorSkees
19f59efd98
Handle alpha over 1 (a little bit)
2020-02-14 20:13:58 -05:00
ConnorSkees
bb7e47a4fb
Implement builtin function scale-color()
2020-02-14 19:51:24 -05:00
ConnorSkees
e2d1adf8b9
Implement builtin function adjust-color()
2020-02-14 19:29:50 -05:00
ConnorSkees
6369282044
Refactor change-color
to reduce boilerplate
2020-02-14 19:21:24 -05:00
ConnorSkees
7811a3e056
function-exists
searches builtin functions and ignores quotes
2020-02-14 18:41:42 -05:00
ConnorSkees
c16d6fed4e
clippy
2020-02-14 18:28:09 -05:00
ConnorSkees
ae9b97a6b2
Properly handle hue values above and below maximum
2020-02-14 18:02:48 -05:00
ConnorSkees
4303bd451c
Handle negative hues
2020-02-14 17:52:25 -05:00
ConnorSkees
a328617001
Implement builtin function change-color()
2020-02-14 17:38:10 -05:00
ConnorSkees
af95658953
Implement builtin function mix()
2020-02-14 16:56:23 -05:00
ConnorSkees
c04f83ddcf
Refactor Color functions into multiple impl
blocks
2020-02-14 15:22:39 -05:00
ConnorSkees
8f63694ffd
Refactor color functions into separate modules
2020-02-14 15:08:41 -05:00
ConnorSkees
dafd1f3e0d
Refactor internal printing of StyleSheet
2020-02-14 14:55:21 -05:00
ConnorSkees
f6f4eb3e15
Cleanup example code for StyleSheet::print_as_css()
2020-02-14 14:36:16 -05:00
ConnorSkees
6c97cd4755
Implement builtin function str-slice()
2020-02-14 14:23:54 -05:00
ConnorSkees
c95ecc0825
Fix crash encountering --
2020-02-14 13:27:08 -05:00
ConnorSkees
3af2292d5b
Implement builtin function complement()
2020-02-14 12:56:28 -05:00
ConnorSkees
7f17139a3b
Refactor HSL functions into separate module
2020-02-14 12:43:12 -05:00
ConnorSkees
f7351e1458
Implement builtin function abs()
2020-02-14 12:30:48 -05:00
ConnorSkees
af8bd516b2
Implement builtin function grayscale()
2020-02-14 12:11:08 -05:00
ConnorSkees
08bfa8f145
Implement one and two args for rgba()
2020-02-14 11:52:31 -05:00
ConnorSkees
a2ddc8016f
Implement builtin functions fade-in()
, fade-out()
, opacify()
, and transparentize()
2020-02-14 11:10:25 -05:00
ConnorSkees
089436ec9d
Revert "Allow unquote on all values"
...
This reverts commit f4c5fbae274ddd545d34107e424fa3b9c842ea14.
This change resulted in nine regressions in the spec tests. This is a
change that we should make later when the `unquote()` function has the
correct functionality. For right now, the implementation of `unquote()` is a hack to just get
things working.
2020-02-14 10:23:43 -05:00
ConnorSkees
a7322e1ee8
Allow numbers in selectors
2020-02-14 10:16:26 -05:00
ConnorSkees
f4c5fbae27
Allow unquote on all values
2020-02-14 10:11:26 -05:00
ConnorSkees
b31c9587bc
Implement builtin function length()
2020-02-14 10:10:51 -05:00
ConnorSkees
38802b69c5
Fix hue algorithm when red == blue and red > green
2020-02-14 09:46:50 -05:00
ConnorSkees
65c5c209f3
Implement Rem and RemAssign for Number
2020-02-14 09:44:46 -05:00
ConnorSkees
201f97a914
Fix how hue is calculated when color channels are equal
2020-02-14 09:37:05 -05:00