Nested Style Selectors
See original GitHub issueIt would be nice if we could do something like this:
<Style Selector=".SomeClass">
<Style Selector="TextBlock#SomeText">
<Setter Property="IsVisible" Value="False" />
</Style>
<Style Selector="StackPanel#SomeStackPanel">
<Setter Property="Background" Value="Red" />
</Style>
</Style>
This would allow better organized styles by logically grouping related selectors. This is similar to how LESS and SASS allow nested selectors to improve on plain CSS.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
CSS Nesting - Chrome Developers
CSS nesting allows you to define styles for an element within the context of another selector. ... In this example, the .child class...
Read more >Grouping and Nesting CSS Selectors
It's that simple. To nest a selector, you simply separate them with a space. But what if you had a third paragraph tag...
Read more >Native CSS nesting: What you need to know
As you can see from both code samples above, nesting is enclosing a selector inside another selector. Nesting helps you to group related...
Read more >How to Nest Your CSS Selectors for Cleaner Code
Nesting your CSS selectors is one small trick that makes things much easier down the road. You'll write your CSS more quickly, apply...
Read more >CSS Nesting | Can I use... Support tables for HTML5, CSS3 ...
CSS nesting provides the ability to nest one style rule inside another, with the selector of the child rule relative to the selector...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is complete now, correct?
Probably
.SomeClass TextBlock#SomeText. Then another possibility would be: