Re: New CSS library - Garden

2013-07-07 Thread Steven Degutis
> > The beautiful thing about programming stylesheets in Clojure is that we > can come up with whatever abstractions/techniques we like without being > tied down by syntax. There's a lot of potential there for some interesting > ideas. In the past I've been bitten hard because the wrong

Re: New CSS library - Garden

2013-07-06 Thread Joel Holdbrooks
Cool. I'm glad you like the library. Thanks for sharing your kind words and thoughts. :) "I admit it's weird that it just vector-izes its arguments, and does nothing else." In that case I don't think you need a macro, just alias rule to vector and you'll achieve the same end. "I think it shou

Re: New CSS library - Garden

2013-07-06 Thread Steven Degutis
Right, I understand how defrule works. But I actually do have 27 [i.e. O(n)] distinct rules, so it's not a feasible solution. Because when I write CSS, I only style domain-specific class names (.cart, .license), never mentioning the elements they just so happen to use at the moment (h1, p, a). Thi

Re: New CSS library - Garden

2013-07-06 Thread Joel Holdbrooks
Hi Steven, I know that readability is a bit of an issue for some people. Unfortunately there isn't much I can do other than point folks to the defrule macro and some of the other suggestions I've made. As I work with the Garden I see problem areas too and am working to find solutions that will

Re: New CSS library - Garden

2013-07-06 Thread Steven Degutis
Oh, two more things. First, it would be really cool to have a tool to convert CSS to GardenCSS. MichaƂ Marczyk suggested using Instaparse with the CSS3 grammar, which sounds like a really easy way to make this happen. Unfortunately I don't have the time or skill to do it, but if anyone else does,

Re: New CSS library - Garden

2013-07-06 Thread Steven Degutis
So far, I really like Garden. There's one thing though that's making it difficult. It's hard to see that nested rules are nested. ;; hard to see nesting[:footer {:color "red" :background-color "blue"} [:a {:color "green"}]] ;; much easier(:footer {:color "red" :background-col

Re: New CSS library - Garden

2013-07-02 Thread Joel Holdbrooks
Rob, Sorry for the late reply. I've been a bit distracted the past few days. I'll try to address your thoughts as best I can. *There could even be a grid protocol and fluid, responsive, fixed, mobile, etc be implementations of it, or multi-methods, or maybe its an overkill.* I don't think this i

Re: New CSS library - Garden

2013-06-27 Thread Rob Jens
P.p.s. the pound signs are causing reader errors (e.g. #px) in LightTable so I changed those plus additionally added a little Jetty https://gist.github.com/clojens/5878804 Cheers Op dinsdag 9 april 2013 21:58:50 UTC+2 schreef Joel Holdbrooks het volgende: > > Nobel Clojurians, > > I am please

Re: New CSS library - Garden

2013-06-27 Thread Rob Jens
Btw, again, thanks for the work done! I would have written some more myself, or brainstorm a bit further but I'm really neck high in work for customers plus big meeting tomorrow so short of time. Anyway, do you plan on incorporating a grid framework/concept in Garden, or keep this a snippet lik

Re: New CSS library - Garden

2013-06-27 Thread Rob Jens
Hey Joel thanks for that! I actually started work on translating the semantic grid to Clojure, it's just that I didn't finish as about half-way I kept the sense we could a bit more with Clojure. What the semantic grid does it just does is to use the float left and display block properties and

Re: New CSS library - Garden

2013-06-26 Thread Joel Holdbrooks
Cool. I haven't seen this one before. Since it was fairly simple I reimplemented it in Clojure with Garden. *Here's the gist.* I took a functional approach using higher order functions. It could be a little cleaner but then again *the arithmetic isn't a

Re: New CSS library - Garden

2013-06-26 Thread Joel Holdbrooks
Garden 0.1.0-beta5 is now available! The newest version includes functions for working with *color* and performing generic *arithmetic*(ie. operators for transparently adding numbers and units or numbers

Re: New CSS library - Garden

2013-06-26 Thread Rob Jens
Hey Jeremy, You might be interested, in case you hadn't heard of it yet, of the Semantic Grid (http://semantic.gs) probably in particular their Stylus version https://github.com/twigkit/semantic.gs/blob/master/stylesheets/styl/grid.styl but depending on your taste/clarity might also wish to c

Re: New CSS library - Garden

2013-06-19 Thread JeremyS
Hi Joel, Thank for the interest ! You can also take a look at some code have done around css unit types there . It's got arithmetic for units and a namespace dedicated to colors. In it you'll find conversions between rgb en hsl (that I have taken from the color

Re: New CSS library - Garden

2013-06-18 Thread Joel Holdbrooks
Jeremy, Looks good. I've been tinkering with grid systems on and off for the past month or so. Have you thought of trying your hand at porting something like the Foundation or Gumby grid system? One thing I've discovered, and you might try this with your 960 implementation, is that using highe

Re: New CSS library - Garden

2013-06-18 Thread JeremyS
Hi Joel, I have a quick and dirty implementation of a 960-ish grid systemusing a DSL similar to garden If you want to take a look. On Friday, April 26, 2013 1:01:44 AM UTC+2, Joel Holdbrooks wrote: > > It's funny you should bring that up! I've actually be

Re: New CSS library - Garden

2013-04-25 Thread Joel Holdbrooks
It's funny you should bring that up! I've actually been working on extracting the grid system from Bootstrap and modular scale from Foundation. But it's mostly been tinkering. * I am sorely tempted to give this a try.* Please do! If I come up with something I'll be sure to share a Gist. On Thu

Re: New CSS library - Garden

2013-04-25 Thread Clinton Dreisbach
One interesting thing you could do, given both Garden and ClojureScript, is package CSS frameworks like Twitter Bootstrap or Zurb Foundation as a Clojure library. I am sorely tempted to give this a try. On Thu, Apr 25, 2013 at 6:12 PM, Joel Holdbrooks wrote: > Murtaza, > > Thanks for having a loo

Re: New CSS library - Garden

2013-04-25 Thread Joel Holdbrooks
Murtaza, Thanks for having a look at the library. I'll try to answer you questions as best as I can. *How does Garden compare to other pre processors such as sass and less?* * * There are some similarities with Garden and other CSS preprocessors. I've tried to bring over the ones I found most us

Re: New CSS library - Garden

2013-04-25 Thread JeremyS
Hi Murtaza, the simple way to go is have something like (def rules1 [...]) (def rules2 [...]) (spit "rules.css" (css (concat rules1 rules2))) I am not sure about my good use of the library here but I think the idea is there. When you develop with the repo you can just eval the (spit ...) ca

Re: New CSS library - Garden

2013-04-24 Thread Murtaza Husain
Joel, Thanks for the lib. Its great and I plan to use it in my projects. How does Garden compare to other pre processors such as sass and less ? Also can I use it in my clojurescript projects ? I mean does it have any java lib dependencies that would prevent it? What is the workflow when using

Re: New CSS library - Garden

2013-04-22 Thread Joel Holdbrooks
As of today, Garden is officially out of alpha and in to beta! The library now sports media queries (via meta data) and parent selector references (ie. "&hover"). With these new fea

Re: New CSS library - Garden

2013-04-22 Thread Joel Holdbrooks
As of today, Garden is officially out of alpha and in to beta! The library now sports media queries(via meta data) and parent selector references(ie. "&hover"). With these new feat

Re: New CSS library - Garden

2013-04-10 Thread Joel Holdbrooks
Awesome. Yes, please do! Also, feel free to suggest ideas for features. I'm focusing on media queries and "&" prefixed selectors this week, but I'd love to see if anyone has good ideas surrounding attribute and child selectors. Right now the best we can do is "input[type=\"text\"]" and "ul > li

Re: New CSS library - Garden

2013-04-10 Thread Dan Neumann
Good stuff! I'm using it in my hobby apps while I continue to cut my teeth on Clojure's web development toolkit. I'll definitely communicate any problems/improvements I spot as I try to scratch my own itch. -- -- You received this message because you are subscribed to the Google Groups "C

New CSS library - Garden

2013-04-09 Thread Joel Holdbrooks
Nobel Clojurians, I am pleased to announce the alpha version of *Garden*, a new library for writing CSS in Clojure. The project weds the best ideas from Hiccup, gaka, and cssgen and aims to provide a clean and conventional way to author stylesheets without b