It's also worth noting that the merged file like this can yield different results in the corner case where selector order changes for selectors having the same weight and both match the same element and modify the same property.

Chris

Hunt & pecked on my iPhone... Sorry if it's brief!

On Feb 1, 2010, at 3:25 AM, Nathan Weizenbaum <[email protected]> wrote:

In the future, we plan to add support for various optimizations on the resulting CSS, including merging selectors and getting rid of duplicate properties when we're confident this won't affect the resulting CSS. This hasn't been implemented yet, however.

On Mon, Feb 1, 2010 at 2:10 AM, Nick Clarke <[email protected] > wrote:
Hi,

Not sure if this is already possible. I checked the docs but could not
see it mentioned anywhere.

I was reading up on how to organize my .sass files (http://
wiseheartdesign.com/articles/2010/01/22/structuring-a-sass-project),
after giving this a try I noticed that the CSS selectors are not
merged.

Eg:

_layout.sass
  #header
     width: 960px
     text-align: left
     margin: 0 auto
     overflow: hidden

_header.sass
  #header
     background: transparent url(/images/header.png) no-repeat

screen.sass
       @import layout
       @import header

becomes:

  #header
       ….
  #header
       ….

What would have been great is if the CSS output would have also been
merged into one:

#header
     width: 960px
     text-align: left
     margin: 0 auto
     overflow: hidden
     background: transparent url(/images/header.png) no-repeat

Any ideas if this is possible?

Thanks in advance,
Nick

--
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 .


--
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 .

--
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.

Reply via email to