mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fluid rendering
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
# Documentation Workflow
|
||||
|
||||
* Ensure you're inside a *Python 3.10+* virtual environment
|
||||
* Run the live-reload server using `mkdocs serve` from the project root
|
||||
* Create new pages by adding new directories and Markdown files inside `docs/*`
|
||||
|
||||
## Commands
|
||||
|
||||
- `mkdocs serve` - Start the live-reloading docs server.
|
||||
- `mkdocs build` - Build the documentation site.
|
||||
- `mkdocs -h` - Print help message and exit.
|
||||
|
||||
## Project layout
|
||||
|
||||
mkdocs.yml # The configuration file.
|
||||
docs/
|
||||
index.md # The documentation homepage.
|
||||
... # Other markdown pages, images and other files.
|
||||
@@ -1,19 +0,0 @@
|
||||
from textual.app import App
|
||||
from textual.widgets import Button
|
||||
|
||||
|
||||
class ButtonApp(App):
|
||||
|
||||
DEFAULT_CSS = """
|
||||
Button {
|
||||
width: 100%;
|
||||
}
|
||||
"""
|
||||
|
||||
def compose(self):
|
||||
yield Button("Lights off")
|
||||
|
||||
def on_button_pressed(self, event):
|
||||
self.dark = not self.dark
|
||||
self.bell()
|
||||
event.button.label = "Lights ON" if self.dark else "Lights OFF"
|
||||
@@ -206,7 +206,7 @@ The same units may also be used to set limits on a dimension. The following styl
|
||||
- [min-width](../styles/min_width.md) sets a minimum width.
|
||||
- [max-width](../styles/max_width.md) sets a maximum width.
|
||||
- [min-height](../styles/min_height.md) sets a minimum height.
|
||||
- [max-height](../styles/max_hright.md) sets a maximum height.
|
||||
- [max-height](../styles/max_height.md) sets a maximum height.
|
||||
|
||||
### Padding
|
||||
|
||||
|
||||
Reference in New Issue
Block a user