Applying styles to button

This commit is contained in:
Darren Burns
2022-05-10 11:22:04 +01:00
parent 055c43660c
commit b61ee05c98
4 changed files with 19 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
#foo {
text-style: underline;
background: rebeccapurple;
}
#foo:hover {
background: greenyellow;
}

View File

@@ -18,7 +18,7 @@ class ButtonsApp(App[str]):
self.exit(event.button.id)
app = ButtonsApp(log_path="textual.log", log_verbosity=2)
app = ButtonsApp(log_path="textual.log", css_path="buttons.css", log_verbosity=2)
if __name__ == "__main__":
result = app.run()