fix styles examples, box model docs

This commit is contained in:
Will McGugan
2022-09-10 16:45:13 +01:00
parent 39c6dee84f
commit 269960ad8a
8 changed files with 37 additions and 8 deletions

View File

@@ -6,3 +6,5 @@ class ExampleApp(App):
app = ExampleApp()
if __name__ == "__main__":
app.run()

View File

@@ -9,3 +9,5 @@ class ExampleApp(App):
app = ExampleApp()
if __name__ == "__main__":
app.run()

View File

@@ -21,3 +21,5 @@ class ExampleApp(App):
app = ExampleApp()
if __name__ == "__main__":
app.run()

View File

@@ -2,9 +2,9 @@
/* The top level dialog (a Container) */
#dialog {
margin: 4 8;
background: darkblue 20%;
color: darkblue;
border: tall darkblue;
background: $primary;
color: $text-primary;
border: tall $text-primary;
padding: 1 2;
}

View File

@@ -0,0 +1,12 @@
from textual.app import App
class ScreenApp(App):
def on_mount(self) -> None:
self.screen.styles.background = "darkblue"
self.screen.styles.border = ("heavy", "white")
app = ScreenApp()
if __name__ == "__main__":
app.run()