Closed TheDudeFromCI closed 6 months ago
This seems very reasonable.
* {
color: red
}
Selects all entities.
* text {
color: red
}
Selects any entity which has a Text
components and is descendant or not of any another entity.
Bevy 0.13 is right around the corner, I'll add this when upgrading to Bevy 0.13
reference: https://developer.mozilla.org/en-US/docs/Web/CSS/Universal_selectors
As a workaround, I've found using the node
component selector has effectively the same function in most cases, since all bevy_ui
components implement this component. It's not quite the same (such as if using a custom UI crate, or just readability), but close enough for practical purposes.
The inclusion of an "any" selector would be useful for defining global rules across the entire style sheet. This would also help to close the gap slightly between
bevy_ecss
and purecss
.