mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
reset css plan
This commit is contained in:
@@ -25,5 +25,9 @@ class BasicApp(App):
|
||||
def key_b(self) -> None:
|
||||
self["#footer"].set_styles("text: on green")
|
||||
|
||||
def key_c(self) -> None:
|
||||
self["#header"].toggle_class("-highlight")
|
||||
self.log(self["#header"].styles)
|
||||
|
||||
|
||||
BasicApp.run(css_file="local_styles.css", log="textual.log")
|
||||
|
||||
Reference in New Issue
Block a user