mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix styles examples, box model docs
This commit is contained in:
@@ -6,3 +6,5 @@ class ExampleApp(App):
|
||||
|
||||
|
||||
app = ExampleApp()
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
|
||||
@@ -9,3 +9,5 @@ class ExampleApp(App):
|
||||
|
||||
|
||||
app = ExampleApp()
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
|
||||
@@ -21,3 +21,5 @@ class ExampleApp(App):
|
||||
|
||||
|
||||
app = ExampleApp()
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
12
docs/examples/guide/styles/screen.py
Normal file
12
docs/examples/guide/styles/screen.py
Normal 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()
|
||||
Reference in New Issue
Block a user