mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge branch 'main' into fix-2107
This commit is contained in:
5
Makefile
5
Makefile
@@ -43,6 +43,11 @@ docs-serve: clean-screenshot-cache docs-online-nav
|
||||
$(run) mkdocs serve --config-file mkdocs-nav-online.yml
|
||||
rm -f mkdocs-nav-online.yml
|
||||
|
||||
.PHONY: docs-serve-offline
|
||||
docs-serve-offline: clean-screenshot-cache docs-offline-nav
|
||||
$(run) mkdocs serve --config-file mkdocs-nav-offline.yml
|
||||
rm -f mkdocs-nav-offline.yml
|
||||
|
||||
.PHONY: docs-build
|
||||
docs-build: docs-online-nav
|
||||
$(run) mkdocs build --config-file mkdocs-nav-online.yml
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
This example shows all border title and subtitle alignments, together with some examples of how (sub)titles can have custom markup.
|
||||
Open the code tabs to see the details of the code examples.
|
||||
Open the code tabs to see the details of the code examples.
|
||||
|
||||
=== "Output"
|
||||
=== "Output"
|
||||
|
||||
```{.textual path="docs/examples/styles/border_sub_title_align_all.py"}
|
||||
```
|
||||
|
||||
=== "border_sub_title_align_all.py"
|
||||
=== "border_sub_title_align_all.py"
|
||||
|
||||
```py hl_lines="6 18 24 30 39 40 42 45 51 57 63"
|
||||
--8<-- "docs/examples/styles/border_sub_title_align_all.py"
|
||||
@@ -24,7 +24,7 @@ This example shows all border title and subtitle alignments, together with some
|
||||
10. The title and subtitle are aligned on the right and very long, so they get truncated and we can still see the leftmost character of the border edge.
|
||||
11. An auxiliary function to create labels with border title and subtitle.
|
||||
|
||||
=== "border_sub_title_align_all.css"
|
||||
=== "border_sub_title_align_all.css"
|
||||
|
||||
```sass hl_lines="12 16 30 34 41 46"
|
||||
--8<-- "docs/examples/styles/border_sub_title_align_all.css"
|
||||
|
||||
@@ -40,7 +40,7 @@ This example shows three labels, each with a different border subtitle alignment
|
||||
```
|
||||
|
||||
|
||||
### All title and subtitle combinations
|
||||
### Complete usage reference
|
||||
|
||||
--8<-- "docs/snippets/border_sub_title_align_all_example.md"
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ This example shows three labels, each with a different border title alignment:
|
||||
```
|
||||
|
||||
|
||||
### All title and subtitle combinations
|
||||
### Complete usage reference
|
||||
|
||||
--8<-- "docs/snippets/border_sub_title_align_all_example.md"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user