blaze-react
blaze-react copied to clipboard
Update todomvc stylesheets
Ideally we'd convert the CSS to Clay or something though. External stylesheets don't compose well.
Or use inline styles ;) Am 12.03.2015 17:46 schrieb "Alex Sayers" [email protected]:
Ideally we'd convert the CSS to Clay or something though. External stylesheets don't compose well.
— Reply to this email directly or view it on GitHub https://github.com/meiersi/blaze-react/issues/20#issuecomment-78523178.
In fact, I wonder if it would be a good idea to write a quasi-quoter which takes CSS and produces HashMaps:
style :: HMS.HashMap T.Text T.Text
style = [css|
height: 20px;
color: #ff0000;
|]
Then it would be simple to copy over the styling from projects such as TodoMVC.
That's one option. The other is to just offer a tool 'css-to-haskell' that does the translation for you. It has the advantage that you can work without an additional language with weaker abstraction capabilities.
2015-03-17 23:43 GMT+01:00 Alex Sayers [email protected]:
In fact, I wonder if it would be a good idea to write a quasi-quoter which takes CSS and produces HashMaps:
style :: HMS.HashMap T.Text T.Text style = [css| height: 20px; color: #ff0000;|]
Then it would be simple to copy over the styling from projects such as TodoMVC.
— Reply to this email directly or view it on GitHub https://github.com/meiersi/blaze-react/issues/20#issuecomment-82630395.