Docs content align (#700)

* Docs for content-align, some bug fixes for it too

* Make the example output a little clearer

* Remove app.run() from content-align docs example

* Improve wording

* Move content-align and scrollbar-gutter docs exmaples to split css/py files

* Remove app.run() from scrollbar-gutter docs example
This commit is contained in:
darrenburns
2022-08-19 15:35:31 +01:00
committed by GitHub
parent 3749412d2f
commit fec73ba0e1
10 changed files with 120 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
# Scrollbar gutter
# Scrollbar-gutter
The `scrollbar-gutter` rule allows authors to reserve space for the vertical scrollbar.
@@ -28,6 +28,12 @@ terminal window.
--8<-- "docs/examples/styles/scrollbar_gutter.py"
```
=== "scrollbar_gutter.css"
```scss
--8<-- "docs/examples/styles/scrollbar_gutter.css"
```
=== "Output"
```{.textual path="docs/examples/styles/scrollbar_gutter.py"}