http://github.com/seven1m/cascading_rubies
Basically, it's a Ruby DSL that allows you to write CSS fairly easily.
Here's an example:
header {
background_color '#eee'
margin_bottom '10px'
nav {
border '1px solid #000'
a(:link, :active, :visited) { color 'blue' }
a(:hover) { color 'red' }
}
div.search {
float 'right'
}
}
Output:
#header { background-color: #eee; margin-bottom: 10px; }
#header #nav { border: 1px solid #000; }
#header #nav a:link, #header #nav a:active, #header #nav a:visited {
color: blue; }
#header #nav a:hover { color: red; }
#header div.search { float: right; }
This started as an experiment, and turned out to be something I think
could be useful. Of course, there are some (documented) shortcomings.
Just wondering what you guys think. Would you use something like this?
Does it need a Rails plugin?
Thanks.
Oh and BTW, we have a meeting planned for June 15th. Is that a good
date for everyone? Any ideas for presentations?
-Tim
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups "Tulsa Ruby User Group" group.
> To post to this group, send email to tul...@googlegroups.com
> To unsubscribe from this group, send email to tulsarb+u...@googlegroups.com
> For more options, visit this group at http://groups.google.com/