Add several missing properties from Styles.css, fix several bugs/typos in it

This commit is contained in:
Darren Burns
2022-10-07 14:24:18 +01:00
parent 53d3080fa0
commit 2784370ba1
3 changed files with 75 additions and 15 deletions

View File

@@ -1,10 +1,12 @@
Screen {
align: center middle;
background: darkslategrey;
overflow: auto auto;
}
#box1 {
background: darkmagenta;
width: auto;
opacity: 0.5;
padding: 4 8;
}

View File

@@ -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")