Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Children broken on extended class #22

Closed
noclat opened this issue Apr 18, 2014 · 2 comments
Closed

Children broken on extended class #22

noclat opened this issue Apr 18, 2014 · 2 comments

Comments

@noclat
Copy link

noclat commented Apr 18, 2014

Hi,

I have this SCSS code:

.list-inline {
    list-style: none;
    li { display: inline-block; }
}

.header { 
    @extend .clearfix; 
    ul { @extend .list-inline; }
}

And it compiles into this, which is absolutely not what it should behave:

.list-inline,
.header ul {
    list-style: none;
}

/* the selector below is broken, it should have been ".list-inline li, .header ul li" */
.list-inline li,
.list-inline .header ul,
.header .list-inline ul {
    display: inline-block;
}

Thanks

@fourseven
Copy link
Collaborator

Hi @noclat - this is a limitation with libsass, which this plugin depends on. tl;dr is that it's close, but not perfect yet. See here for more detail - sass/libsass#336

@noclat
Copy link
Author

noclat commented Apr 23, 2014

Thanks for the answer, wait&see then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants