mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add several missing properties from Styles.css, fix several bugs/typos in it
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
Screen {
|
||||
align: center middle;
|
||||
background: darkslategrey;
|
||||
overflow: auto auto;
|
||||
}
|
||||
|
||||
#box1 {
|
||||
background: darkmagenta;
|
||||
width: auto;
|
||||
opacity: 0.5;
|
||||
padding: 4 8;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,10 @@ class JustABox(App):
|
||||
box = self.query_one("#box1")
|
||||
self.animator.animate(box.styles, "opacity", value=0.0, duration=1)
|
||||
|
||||
def key_d(self):
|
||||
print(self.screen.styles.get_rules())
|
||||
print(self.screen.styles.css)
|
||||
|
||||
|
||||
app = JustABox(watch_css=True, css_path="../darren/just_a_box.css")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user