Thank you for the regexps, I just might use them sometime.
I bet there is another regexp that can change all attribute: into :attribute
as well, something like /\([^:]+\):/:\1/ or whatever.
I don't trust the big css files, so going over them by hand tells me quite a
lot of things I wouldn't otherwise know about the css itself.
Oh, and I like the order - when : comes before the attribute it just feels
better inside, that all the colons are in one place and not scattered about.
On 6/1/07, weepy <[EMAIL PROTECTED]> wrote:
>
>
> If your editor can do regex replacing the following mostly converts
> CSS => Alt Sass Syntax
>
> ; => \n\t
> {,} = blank
>
> They'll be a couple of warts to fix but i just did it on a v big css
> file and it worked a treat !
>
>
> On May 29, 11:37 pm, Evgeny <[EMAIL PROTECTED]> wrote:
> > Great work!
> > Even though I prefer to use vertical-block selects in textmate and vim,
> and
> > insert ':' when I re-write css into sass. And I get a kind of joy from
> doing
> > that. But I guess that there will be people who will want to have the
> colons
> > all over the place as well.
> >
> > Regards,
> >
> > - evgeny
> >
> > On 5/30/07, weepy <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > This is a little bit of a hidden gem (maybe gem is over blown, because
> > > I write the patch (-; ), but Sass in trunk now handles and alternate
> > > syntax, some of you might feel more natural.
> >
> > > Classic Sass puts the colon before the attribute, eg :
> >
> > > a#mylinks
> > > :font
> > > :weight bold
> > > :size 12px
> > > :color red
> >
> > > I always found this slightly counter intuitive (, since it's different
> > > from normal CSS syntax.
> >
> > > Any hoo, you can now also put the colon *after* the attribute, as in:
> >
> > > a#mylinks
> > > font:
> > > weight: bold
> > > size: 12px
> > > color: red
> >
> > > I find personally this style much for appealing. Everything should
> > > work the same as expected, in fact you should be able to mix the two
> > > styles in one file (tho I very much doubt that you'd want to do
> > > that !).
> >
> > > Please report any problems to this list : )
> >
> > > Weepy
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---