27 Commits

Author SHA1 Message Date
Connor Skees
0a44a852f9 optimize repeated variable lookups 2022-12-28 15:50:20 -05:00
Connor Skees
bb937ae84f more robust handling of empty input after resolving interpolation 2022-12-28 14:41:36 -05:00
Connor Skees
ffaee04613
rewrite parsing, evaluation, and serialization (#67)
Adds support for the indented syntax, plain CSS imports, `@forward`, and many other previously missing features.
2022-12-26 15:33:04 -05:00
Connor Skees
eadd7c5041 support special fns to single channel rgb/rgba/hsl/hsla 2021-07-28 03:13:00 -04:00
Connor Skees
4b94c8a948 add test for @import inside @media 2021-07-28 02:18:40 -04:00
Connor Skees
6febd161af refactor how newlines are emitted between unrelated style rules
this makes our output of bootstrap correct, byte-for-byte
2021-07-23 22:35:08 -04:00
Connor Skees
ec4fe9164d do not emit newline between media query and ruleset 2021-07-23 03:08:23 -04:00
Connor Skees
5c4f11e63d do not emit newline between media queries when they follow ruleset 2021-07-23 02:22:47 -04:00
Connor Skees
a34aa32128 simplify lookahead for @use and @media 2021-07-19 20:50:12 -04:00
Connor Skees
1a660c7aa8 more correctly emit newlines around 2021-07-14 21:09:30 -04:00
Connor Skees
884b92f476 remove test macro shorthand for unchanged output 2020-11-20 04:34:36 -05:00
Connor Skees
605f4f3d6b allow = and == in media queries 2020-08-22 19:18:28 -04:00
Connor Skees
a665cb13cc remove cfg(test) from test files 2020-08-11 20:22:24 -04:00
Connor Skees
be032b66f0 refactor parsing of media queries to use predicate parsing 2020-08-07 12:04:43 -04:00
Connor Skees
d5b2410a8c allow multiline comments in more contexts 2020-08-07 11:39:14 -04:00
Connor Skees
0639a6ba2b correctly parse quoted media queries 2020-07-09 13:43:27 -04:00
Connor Skees
df60ef094c allow media queries to contain a single identifier wrapped in parens 2020-07-07 11:23:09 -04:00
Connor Skees
4edc324fcd remove superfluous whitespace from media query involving and 2020-07-06 18:59:21 -04:00
Connor Skees
aa8f120824 resolve media query bug involving multiple identifiers 2020-07-06 15:37:03 -04:00
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
ConnorSkees
d39a45090a separate media and unknown at rules 2020-05-20 20:13:53 -04:00
ConnorSkees
1cb135c833 do not emit empty media queries 2020-04-21 04:52:47 -04:00
ConnorSkees
c017ccfeb4 toplevel atrules within selectors 2020-04-12 21:47:32 -04:00
ConnorSkees
bf0ce2fe1a Correctly print whitespace when no params in at rule 2020-02-22 17:09:15 -05:00
ConnorSkees
260b357bba Test for unknown at rules 2020-02-22 17:08:58 -05:00
ConnorSkees
a3b260c0bd Allow nested unknown @ rules 2020-02-22 15:34:32 -05:00
ConnorSkees
a6cc86e4db Create tests for media queries 2020-02-22 13:03:02 -05:00