It's a feature, not a bug ;).
Let's take a simpler case... say you have the following Sass:
#menu
:background #fff
a, a:link, a:visited
:color= #000
What you'd expect, intuitively, is that this makes all links in #menu
black, whether they're visited or not. However, what you said you'd
expect is:
#menu { background: #fff; }
#menu a, a:link, a:visited { color: #000; }
But this doesn't match "a:link"s and "a:visited"s that are children of
#menu... it matches all of them! In order to have the nesting work
properly, then, it would have to be:
#menu { background: #fff; }
#menu a, #menu a:link, #menu a:visited { color: #000; }
So, you, see, that's actually how it should be working. If memory
serves, we owe this feature to svenax.
- Nathan
s.ross wrote:
> Sass rocks! Here's a puzzle for me. You'll probably see the problem
> right away. Given:
>
> !menu_background = #fff
> !menu_text_color = #000
> !menu_text_over = #653715
>
> #menu
> :background= !menu_background
> :font-size 13px
> #menu-container
> :margin 20px 0 20px 144px
> a, a:link, a:visited
> :color= !menu_text_color
> a:hover
> :color= !menu_text_over
> div
> :display table-cell
> :padding 0 25px 0 25px
>
> I'd expect something like:
>
> #menu { background: #fff; font-size: 13px; }
> #menu #menu-container { margin: 20px 0 20px 144px; }
> #menu #menu-container a, a:link, a:visited { color: #000; }
> #menu #menu-container a:hover { color: #653715; }
> #menu #menu-container div { display: table-cell; padding: 0 25px 0 25px; }
>
> What I get is:
>
> #menu { background: #ffffff; font-size: 13px; }
> #menu menu-container { margin: 20px 0 20px 144px; }
> #menu menu-container a, #menu menu-container a:link, #menu
> menu-container a:visited { color: #0f0f0f; } /* <-- here's the
> puzzling output */
> #menu menu-container a:hover { color: #653715; }
> #menu menu-container div { display: table-cell; padding: 0 25px 0 25px; }
>
> Any thoughts about this?
>
> Thanks and thanks again for Haml and Sass.
>
> Steve
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---