Update todomvc stylesheets
asayers opened this issue · comments
todomvc now has a couple of npm packages for the css and assets. See here.
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" notifications@github.com:
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
#20 (comment).
In fact, I wonder if it would be a good idea to write a quasi-quoter which takes CSS and produces HashMap
s:
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 notifications@github.com:
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
#20 (comment).