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

[0.8][styling] Should be able to mixin sibling properties #1399

Closed
nevir opened this issue Apr 11, 2015 · 3 comments
Closed

[0.8][styling] Should be able to mixin sibling properties #1399

nevir opened this issue Apr 11, 2015 · 3 comments

Comments

@nevir
Copy link
Contributor

nevir commented Apr 11, 2015

Given styles:

* {
  --base-stuff: { color: white; }
  --pretty-things: {
    mixin(--base-stuff);
    background-color: red;
  }

  .foo {
    mixin(--pretty-things);
  }
}

I would expect a <div class="foo"> to be red w/ white text, but currently it appears that the mixin(--base-stuff) is not inherited.

@nevir
Copy link
Contributor Author

nevir commented Apr 13, 2015

Ah doh, var() is a no go either

@morethanreal
Copy link
Contributor

/sub

@sorvell
Copy link
Contributor

sorvell commented May 22, 2015

Css doesn't support nesting rules like this. If you put the .foo rule as sibling to the other one, I expect this to work. Another note, * has been replaced with :root.

@sorvell sorvell closed this as completed May 22, 2015
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

3 participants