sshixin / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

I want unknown values in CSS contect to expand into slector #207

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In HTML I can type 'this' to get '<this>|</this>' - but ini CSS context, I want 
it to produce 'this{|}'

That way - in CSS context - I can write: body>m:0+p:0
To produce: body{ margin:0; padding:0; }

Original issue reported on code.google.com by billymoo...@gmail.com on 15 Sep 2010 at 7:38

GoogleCodeExporter commented 8 years ago
For 'this' example, you need to add your own snippet for CSS syntax.

Your second example is not quite valid usage of ZC. Since ZC mostly used as 
xHTML tags expander, the only solution to use it in CSS syntax is to apply a 
plain snippets. 

Original comment by serge....@gmail.com on 15 Sep 2010 at 7:46

GoogleCodeExporter commented 8 years ago
Thanks for your prompt response

Re: 'this' example
I mean 'this' to represent 'any dynamic CSS selector' so:
'.small' would expand into 'small{ | }' then I could type
'fz' and expand it into 'font-size:|;' producing
'small{ font-size:|; }' in much the same way as for xHTML

Re: 'Your second example is not quite valid usage of ZC'
You are quite right, but if it were - I would like to use ZC that way

Re: 'ZC mostly used as xHTML tags expander'
I think you are limiting the capacity of the zen-code concept. If you allow 
zen-code to develop into a concise/human-readable language capable of 
expressing all HTML/CSS/JavaScript - zen-code could be put to many more uses.

Original comment by billymoo...@gmail.com on 15 Sep 2010 at 8:09

GoogleCodeExporter commented 8 years ago

Original comment by serge....@gmail.com on 24 Jan 2011 at 11:51