|
List Info
Thread: SASSTidy
|
|
| SASSTidy |
  United States |
2007-09-01 08:44:54 |
This is probably asking too much, but how hard would it be
to get some
compression options (a la CSS-Tidy) worked into SASS?
It would be useful to have settings for different
environments. In dev
mode you would get single attributes on a line, but for
production you
could have the whole document compressed to one line. This
not only
makes your styles load faster, but also obfuscates and
protects your
CSS to a certain degree from these amateur rip-off artists.
Food for thought.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: SASSTidy |
  United States |
2007-09-02 12:08:08 |
It would definitely be possible to have a :compressed option
with no
unnecessary whitespace. I'll look into it.
- Nathan
pimpmaster wrote:
> This is probably asking too much, but how hard would it
be to get some
> compression options (a la CSS-Tidy) worked into SASS?
>
> It would be useful to have settings for different
environments. In dev
> mode you would get single attributes on a line, but for
production you
> could have the whole document compressed to one line.
This not only
> makes your styles load faster, but also obfuscates and
protects your
> CSS to a certain degree from these amateur rip-off
artists.
>
> Food for thought.
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: SASSTidy |
  United States |
2007-09-04 11:41:32 |
This is too funny, each time I ask for a feature, its with
the
premonition that you will tell me I am crazy and there is no
way it is
possible. Your responses always leave me with the impression
that this
is just a little something you could code up over a cup of
coffee.
My hat goes off to you and your Ruby-fu
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: SASSTidy |
  United States |
2007-09-05 07:34:28 |
Hi,
I thought this feature could prove useful to reduce the size
of
stylesheets. I'm not so sure about "protecting"
the CSS since any
decent editor should be able to reformat the stylesheet, but
saving
bandwidth is always a nice thing to do ;)
So, here is an attempt at a :compressed option. It should
patch
cleanly against r600 :
http://pastie.caboo.se/9
4185
Cheers,
Thomas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: SASSTidy |
  United States |
2007-09-05 13:49:33 |
Looks good, except for two issues. First, multiline rules
don't work:
#foo,
#bar
color: green
| |
v
#bar{color:green}
And second, it doesn't have a trailing newline. Even
compressed mode
should have that.
- Nathan
Thomas Brian wrote:
> Hi,
>
> I thought this feature could prove useful to reduce the
size of
> stylesheets. I'm not so sure about
"protecting" the CSS since any
> decent editor should be able to reformat the
stylesheet, but saving
> bandwidth is always a nice thing to do ;)
>
> So, here is an attempt at a :compressed option. It
should patch
> cleanly against r600 :
> http://pastie.caboo.se/9
4185
>
> Cheers,
> Thomas
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: SASSTidy |
  United States |
2007-09-05 17:55:56 |
Ookay, I made a mistake about multiline rules indeed.
I don't know why you think the stylesheet should end with a
trailing
newline, but I changed it that way.
I also added a bunch of test for "directives". You
should check the
last test for those, because I wasn't sure what the result
should be.
I guess this is useful for media and such but I don't
even know the
CSS syntax for these ;)
Here is the new patch : http://pastie.caboo.se/9
4400
Thomas
On 5 sep, 20:49, Nathan Weizenbaum <nex... gmail.com> wrote:
> Looks good, except for two issues. First, multiline
rules don't work:
>
> #foo,
> #bar
> color: green
>
> | |
> v
>
> #bar{color:green}
>
> And second, it doesn't have a trailing newline. Even
compressed mode
> should have that.
>
> - Nathan
>
> Thomas Brian wrote:
> > Hi,
>
> > I thought this feature could prove useful to
reduce the size of
> > stylesheets. I'm not so sure about
"protecting" the CSS since any
> > decent editor should be able to reformat the
stylesheet, but saving
> > bandwidth is always a nice thing to do ;)
>
> > So, here is an attempt at a :compressed option. It
should patch
> > cleanly against r600 :
> >http://pastie.caboo.se/9
4185
>
> > Cheers,
> > Thomas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: SASSTidy |
  United States |
2007-09-07 04:02:55 |
I mostly want the trailing newline there for Unixy-ness and
consistency
with the other formats.
The -rule rendering stuff looks fine, as far as I can
tell. I don't
know that much about them, either.
I've committed this to trunk as of r602. Thanks for the
patch (and
thanks to pimpmaster for the idea).
As an aside, I've never seen French diff output before.
That's pretty cool.
- Nathan
Thomas Brian wrote:
> Ookay, I made a mistake about multiline rules indeed.
> I don't know why you think the stylesheet should end
with a trailing
> newline, but I changed it that way.
>
> I also added a bunch of test for
"directives". You should check the
> last test for those, because I wasn't sure what the
result should be.
> I guess this is useful for media and such but I don't
even know the
> CSS syntax for these ;)
>
> Here is the new patch : http://pastie.caboo.se/9
4400
>
> Thomas
>
> On 5 sep, 20:49, Nathan Weizenbaum <nex... gmail.com> wrote:
>
>> Looks good, except for two issues. First, multiline
rules don't work:
>>
>> #foo,
>> #bar
>> color: green
>>
>> | |
>> v
>>
>> #bar{color:green}
>>
>> And second, it doesn't have a trailing newline.
Even compressed mode
>> should have that.
>>
>> - Nathan
>>
>> Thomas Brian wrote:
>>
>>> Hi,
>>>
>>> I thought this feature could prove useful to
reduce the size of
>>> stylesheets. I'm not so sure about
"protecting" the CSS since any
>>> decent editor should be able to reformat the
stylesheet, but saving
>>> bandwidth is always a nice thing to do ;)
>>>
>>> So, here is an attempt at a :compressed option.
It should patch
>>> cleanly against r600 :
>>> http://pastie.caboo.se/9
4185
>>>
>>> Cheers,
>>> Thomas
>>>
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: SASSTidy |
  United States |
2007-09-08 19:36:03 |
Dang you guys are fast!
I just installed from trunk and then put
Sass::Plugin.options[:style => :compressed];
at the bottom of environment.rb
but my output looks the same.
What am I doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: SASSTidy |
  United States |
2007-09-09 00:53:19 |
That's not how you set a hash ;). Try this:
Sass::Plugin.options[:style] = :compressed
- Nathan
pimpmaster wrote:
> Dang you guys are fast!
>
> I just installed from trunk and then put
>
> Sass::Plugin.options[:style => :compressed];
>
> at the bottom of environment.rb
>
> but my output looks the same.
>
> What am I doing wrong?
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to haml googlegroups.com
To unsubscribe from this group, send email to
haml-unsubscribe googlegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-9]
|
|