Skip to content

Namespace selectors #276

Closed
Closed
@gnomishperson

Description

@gnomishperson

I'm not sure how exactly to explain this or if this is even an intended use or not, but I am currently getting a syntax error on compile attempts for using namespaces in such a manner... Here's an example:

.TopLevel {
    float:left;
    .secondLevel {
        display:block;
        a {
            text-decoration:none;
        }
    }
}

Now the goal I'm trying to achieve is the properties of a into another class / mixin.

.AnotherLevel {
    a {
        .TopLevel > .secondLevel > a;
    }
}

If I leave out the a and just use .TopLevel > .secondLevel;, I get no syntax errors. Now I'm assuming this is because of the general use of the element a and not having a specific identifier or class on it. So I'm not sure if what I'm trying to do isn't "intended use" or an actual bug.

Now I could probably create a separate mixin all together and apply that inside of .TopLevel > .secondLevel > a and inside of .AnotherLevel > a, but I'm curious on whether or not the above is usable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions