mnussbaumer / cssex

An Elixir based and opinionated way to write CSS
MIT License
20 stars 0 forks source link

Fixed nesting error when using pre concat inside a post concat #22

Closed mnussbaumer closed 3 years ago

mnussbaumer commented 3 years ago

Fixed nesting error when using pre concat inside a post concat that sometimes would bork the chain by generating .class_1&.class_2 where class_2 was concatenated before class so it no longer would evaluate true for when checking if it should concatenate outside the parent.

Remodeled the variables & assigns. Variables were using the @! to be declared while elixir assigns were using %! which was confusing since then inside elixir blocks you could only refer to assigns and those would be using elixir's @ syntax. So now assigns use @! to be declared, @:: to be interpolated in function heads and @ inside eex blocks.

CSSEx Variables instead of being % changed to the $, which makes it closer to SCSS. So now they're used as $! to declare, <$interpolate$> or $::.

Fixed warnings on tests and lib

Fixed docs

Improved the readme file

Add unused call by default to ctx_content inside the compiled function body to remove warnings