mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Default css
This commit is contained in:
@@ -7,7 +7,7 @@ from textual.widget import Widget
|
||||
class Clock(Widget):
|
||||
"""A clock app."""
|
||||
|
||||
CSS = """
|
||||
DEFAULT_CSS = """
|
||||
Clock {
|
||||
content-align: center middle;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ from textual.widgets import Button
|
||||
|
||||
class ButtonApp(App):
|
||||
|
||||
CSS = """
|
||||
DEFAULT_CSS = """
|
||||
Button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user