Commit Graph

25 Commits

Author SHA1 Message Date
Rodrigo Girão Serrão
559f976f78 Add more consistent phrasing.
Related issues: #2107
2023-03-23 11:04:17 +00:00
Dave Pearson
b7de48cca3 Border colour percentage (#1954)
* Allow setting an additional alpha on a border

See #1863.

* Update the ChangeLog

* Add snapshot tests for the border alpha value

* Extend the border snapshot tests

While this doesn't test *every* permutation, it covers enough bases that if
something were to change it should catch it.

* Tweak a typo in the border style examples

* Add border transparency percentage to the border docs

* Add a CSS example for using border transparency

* Add Color.multiply_alpha

* Update the CHANGELOG

* Multiply the alpha on a colour rather than replace it

As requested in
https://github.com/Textualize/textual/pull/1954#pullrequestreview-1328170386

(actually required while talking in person with Will, but noted in the
above)

* Multiply the alpha on a border colour rather than replace it

As requested in
https://github.com/Textualize/textual/pull/1954#pullrequestreview-1328170386

(actually requested while talking in person with Will, but noted in the
above)
2023-03-07 14:14:17 +00:00
Dave Pearson
fcc16c0e59 Correct the example Python code for the border style (#1956)
To the best of my knowledge, and in testing myself, border and border_* are
properties of a widget's `styles` property, they're not a property of the
widget itself.
2023-03-07 09:28:02 +00:00
Rodrigo Girão Serrão
a3a452b674 Highlight rule usage in references.
[skip ci]
2023-01-09 16:14:11 +00:00
Rodrigo Girão Serrão
e81779f97c Add 'See also' sections to references. 2023-01-09 15:25:47 +00:00
Rodrigo Girão Serrão
1300807b3a Put example outputs in first tab. 2023-01-09 13:57:04 +00:00
Rodrigo Girão Serrão
dd6e73aa39 Add subsections for references with 2+ examples. 2023-01-09 13:50:45 +00:00
Rodrigo Girão Serrão
196d430582 Style all Textual CSS as 'sass'
Textual CSS is better highlighted in SASS code blocks because the SASS parser seems to be more lenient.
2023-01-09 11:20:04 +00:00
Rodrigo Girão Serrão
c0d7f7cebf Add note about Textual limitation. 2023-01-07 09:47:56 +00:00
Rodrigo Girão Serrão
42baa0e074 Remove redundant values subsections.
[skip ci]
2023-01-06 14:41:13 +00:00
Rodrigo Girão Serrão
8c0f1dc83c Fix links to CSS types. 2022-12-22 18:13:36 +00:00
Rodrigo Girão Serrão
d82b21786a Update border rule reference. 2022-12-21 21:37:40 +00:00
Rodrigo Girão Serrão
d7049c89a0 Fix links to snippets and types. 2022-12-21 19:41:54 +00:00
Rodrigo Girão Serrão
c973fb4cba Update links to snippets. 2022-12-21 17:56:17 +00:00
Rodrigo Girão Serrão
4897b9d1b7 Complete border reference. 2022-12-15 16:16:21 +00:00
Darren Burns
92f15abc42 Values sections added to CSS properties docs 2022-08-30 11:49:11 +01:00
Will McGugan
d96cd97658 Merge branch 'css' into docs-intro 2022-08-23 11:28:53 +01:00
darrenburns
fec73ba0e1 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
2022-08-19 15:35:31 +01:00
Darren Burns
2fbafe8322 Small fixes 2022-08-19 10:21:23 +01:00
Will McGugan
2650dd500d Events 2022-08-17 16:11:12 +01:00
Will McGugan
538e5d4701 lots more docs 2022-08-14 15:43:00 +01:00
Will McGugan
7fd3fe53d3 Update docs/styles/border.md
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2022-08-05 09:21:48 +01:00
Will McGugan
a9c475ceea words and tables 2022-08-04 16:41:39 +01:00
Will McGugan
971ef9e4b1 more border 2022-08-04 15:39:06 +01:00
Will McGugan
0fe4b970f0 more docs 2022-07-31 08:47:34 +01:00