Open willmcgugan opened 10 months ago
Closing as this was implemented as part of nested CSS.
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
Ignore that, reopening as this is different from nested CSS (was only half reading).
It may be nice to add a syntax to queries which refers to the current widget.
For instance, if I want to get the immediate child of a widget, I could do this:
Currently that's rather awkward to implement.
We can also extend this to the CSS itself. i.e. ini a
CSS
orDEFAULT_CSS
. For instance the following would style the widget without the need to specify its type again:Currently, you have to do this: