garden

rauh 2017-03-20T07:09:55.688874Z

@michael.heuberger IIRC, just use double vetor [[a b c]]

2017-03-20T20:32:32.395463Z

@rauh is this documented?

rauh 2017-03-20T20:34:31.426522Z

Yea, last <p> in https://github.com/noprompt/garden/wiki/Syntax . @michael.heuberger

2017-03-20T20:50:42.677175Z

@rauh ah, must have missed that out. thanks

2017-03-20T20:51:54.695975Z

but isn’t the syntax weird in the above example? (css [:p {:font [["16px" 'Helvetica] 'Arial ‘sans-serif]}])

2017-03-20T20:52:07.699104Z

shouldn’t the closing ] be in a different position?

2017-03-20T20:59:38.815137Z

there seems to be another issue: {:animation [[spinner-rotator [[settings/rotator-duration "linear" “infinite”]]]]} produces this CSS

animation: spinner-rotator 1.4s, linear, infinite {
  
  };

2017-03-20T20:59:48.817951Z

why the { … }?

niamu 2017-03-20T21:01:14.840797Z

As for your first question about the closing ], where do you think it should be?

2017-03-20T21:02:00.853059Z

not sure. maybe (css [:p {:font [["16px" 'Helvetica 'Arial ‘sans-serif]]}]) ?

niamu 2017-03-20T21:02:00.853132Z

The expectation is that there will be a space between the “16px” and “Helvetica”, so they are nested together. The rest is comma separated.

niamu 2017-03-20T21:02:44.864429Z

That would produce CSS with all the font families space separated which would be invalid.

2017-03-20T21:03:40.878721Z

oh i see

2017-03-20T21:04:27.890420Z

and the second issue?

niamu 2017-03-20T21:05:05.899270Z

I’m still parsing that one.

niamu 2017-03-20T21:07:23.932417Z

I think I need more context. I don’t do CSS animations often enough to understand the question.

2017-03-20T21:08:01.941480Z

i ll send you a whole code snippet, one sec

niamu 2017-03-20T21:14:51.038943Z

And what do settings/rotator-offset and settings/rotator-duration equate to?

2017-03-20T21:17:10.070521Z

(def rotator-offset 157)
(def rotator-duration (s 1.4))

niamu 2017-03-20T21:25:29.183764Z

I don’t get the same thing you get when I run that. It evaluates fine.

niamu 2017-03-20T21:26:04.192Z

.path {animation: spinner-dash 1.4s ease-in-out infinite;}

2017-03-20T21:26:17.194930Z

hmm, what code did you use?

niamu 2017-03-20T21:26:26.197299Z

The one in the gist

2017-03-20T21:26:35.199330Z

i mean, the garden syntax

niamu 2017-03-20T21:27:14.207739Z

(css [:.path {:animation [[spinner-dash (space-join ["1.4s" "ease-in-out" “infinite”])]]}])

2017-03-20T21:27:34.212419Z

oh wait, there is a mistake

2017-03-20T21:27:38.213225Z

let me correct the gist

niamu 2017-03-20T21:28:32.225196Z

Which should actually just be (css [:.path {:animation [[spinner-dash "1.4s" "ease-in-out" “infinite”]]}]) I guess.

2017-03-20T21:28:37.226402Z

ok, updated with the double [[ ]]

2017-03-20T21:28:46.228217Z

it is breaking now. give it a try

2017-03-20T21:28:48.228563Z

right, that one

2017-03-20T21:30:00.244471Z

ah … it should be [[spinner-dash "1.4s" "ease-in-out" “infinite”]], not [[spinner-rotator [[settings/rotator-duration "linear" “infinite”]]]]

niamu 2017-03-20T21:33:12.288450Z

Yeah, too many nested vectors.

2017-03-20T21:34:45.308710Z

got it - learned my lesson

2017-03-20T21:34:46.309024Z

thanks heaps

noprompt 2017-03-20T21:41:13.390356Z

oh that’s really bad UX. i think that will be a parse error in the near future.

noprompt 2017-03-20T21:42:23.405143Z

would anyone here be interested in meeting up on google hangouts to discuss how to get involved with the garden codebase?

noprompt 2017-03-20T21:42:33.407047Z

(can’t at-here :()

noprompt 2017-03-20T21:44:30.430321Z

i’m just not able to devote as much time to the project as it requires right now.

shaun-mahood 2017-03-20T21:48:48.482025Z

@noprompt: Yeah I would definitely be interested - I likely won't have time for substantial contributions for the near future, but a few hours here or there would definitely be possible.