32 Commits

Author SHA1 Message Date
Connor Skees
91ef5dcfd5 refactor how newlines are emitted
still not perfect, but getting closer. this brings the bulma diff down
from around 1,700 lines to only 500 (all a result of newlines)
2020-07-04 22:52:11 -04:00
Connor Skees
827225a143 initial implementation of @keyframes 2020-07-04 20:50:53 -04:00
Connor Skees
52ecd1e2d0 optimize ExtendedSelector::into_selector
when there is only one reference to an `ExtendedSelector`, the selector
will no longer do unnecessary cloning. this is a significant improvement
as previously we were cloning *every* selector multiple times. note that
this is optimization only occurs when the selector is being emitted.
2020-07-04 12:38:09 -04:00
Connor Skees
596def3906 refactor value evaluation 2020-07-03 12:38:20 -04:00
ConnorSkees
9212ff5fa1 resolve clippy lints 2020-06-26 06:12:50 -04:00
ConnorSkees
6baf0d2340 reduce size of Namespace and Toplevel 2020-06-26 05:37:57 -04:00
ConnorSkees
17a0323da5 resolve clippy lints 2020-06-25 01:33:02 -04:00
ConnorSkees
e12d3a581d reduce size of parse::Stmt 2020-06-25 00:27:24 -04:00
ConnorSkees
9512e9f39f improve parsing of media queries 2020-06-24 11:39:32 -04:00
ConnorSkees
7f8dc52e24 wrap extended selectors in Rc<RefCell<T>> 2020-06-23 04:28:54 -04:00
ConnorSkees
e94dd80a53 change where parent selectors are resolved 2020-06-23 04:28:54 -04:00
ConnorSkees
a3a33db47a improve selector error handling 2020-06-22 12:39:09 -04:00
ConnorSkees
207aa1bf38 MVP implementation of @supports 2020-06-20 15:52:53 -04:00
ConnorSkees
195079de86 initial implementation of @extend 2020-06-20 06:09:12 -04:00
ConnorSkees
5eeee2f01f resolve issue with @ at-root 2020-06-16 22:00:45 -04:00
ConnorSkees
c1b5ff5730 prettify imports 2020-06-16 20:00:11 -04:00
ConnorSkees
71dd7df951 reimplement parsing 2020-06-16 19:38:30 -04:00
ConnorSkees
f3a58e0fa3 initial implementation of selector-* builtin fns 2020-05-31 04:51:41 -04:00
ConnorSkees
21d830d6ff remove usage of .expect 2020-05-24 16:57:07 -04:00
ConnorSkees
d39a45090a separate media and unknown at rules 2020-05-20 20:13:53 -04:00
ConnorSkees
8ff334f26a we dont need to check that output buffer is valid utf8 2020-05-01 19:24:26 -04:00
ConnorSkees
4d17c24514 replace some indexing with .get() 2020-04-30 19:59:13 -04:00
ConnorSkees
f60089f4f9 refactor parsing and eval of @ each 2020-04-24 22:58:28 -04:00
ConnorSkees
092cbe75bb better error messages in args when missing { after function decl 2020-04-24 21:52:09 -04:00
ConnorSkees
a339499c9b return string rather than writing to buffer 2020-04-21 05:25:08 -04:00
ConnorSkees
1cb135c833 do not emit empty media queries 2020-04-21 04:52:47 -04:00
ConnorSkees
4ba45bb8c1 more robust handling of is_null 2020-04-19 00:39:18 -04:00
ConnorSkees
c017ccfeb4 toplevel atrules within selectors 2020-04-12 21:47:32 -04:00
ConnorSkees
62f9f7da4f integrate error handling with codemap 2020-04-12 19:37:12 -04:00
ConnorSkees
648dc04c33 initial implementation of @ at-root 2020-04-06 13:13:03 -04:00
ConnorSkees
13a96273e4 emit charset only when output contains utf-8 2020-04-05 23:20:47 -04:00
ConnorSkees
74dab6872f rename css.rs to output.rs 2020-04-05 22:47:12 -04:00