Here is a list of tasks to do (moved to CHANGELOG.md once done).
- Document how to include method-based CSS mixins in Glimmer DSL for CSS
- Document an example with an
if
statement and with looping (e.g.times
oreach
) - Support nesting rules within each other (e.g.
r('table') { r('tr') { background :blue } }
is equivalent tor('table tr') { background :blue }
) - Support mixins via classes (class-based CSS mixins)
- Optimize performance by removing unnecessary DSL expressions like element_rule_expression.rb and pv_expression.rb
- Removed unnecessary files that are remnant of original glimmer before extraction
- Support all CSS functions like
rgb(r, g, b)
andrgba(r, g, b, a)
and dashes become underscore likelinear-gradient()
becominglinear_gradient()
. This probably has to be done in a dynamic way to generate any function. - Support colors as Hex Ruby values (e.g.
0x1f3b5d
)
- Consider implementing
Numeric
unit methods likepx
andpt
to be able to write values not as Strings like39.px
. This idea might not be worth the cost if using Strings is good enough.