228 Commits

Author SHA1 Message Date
Will McGugan
88220b8f02 docs 2025-10-05 11:57:18 +01:00
Will McGugan
39f4667a81 wording 2025-09-30 15:16:14 +01:00
Will McGugan
f0cfabb4d4 css styles 2025-01-27 18:58:24 +00:00
Will McGugan
d44788a29f docs 2025-01-27 15:02:07 +00:00
Will McGugan
a0910ceb30 wrap and overflow docs 2025-01-27 12:18:59 +00:00
Will McGugan
ed4b11ef2a documented position absolute 2024-11-23 20:02:22 +00:00
Kex
f3460f84af fixed the "backround" typo 2024-11-16 13:47:49 +01:00
Will McGugan
4a822bc53e background tint style (#5117)
* background tint style

* changelog

* hlines

* doc fix

* added tint

* missing snapshots
2024-10-14 14:50:19 +01:00
TomJGooding
1e6dce3b63 colour -> color 2024-08-27 17:25:48 +01:00
Abdulhaq Emhemmed
97cc310c21 doc fix 2024-08-04 13:16:06 +02:00
TomJGooding
2550cf0698 docs: various fixes 2024-07-27 18:07:39 +01:00
Will McGugan
b38b170d99 hatch docs 2024-06-05 15:11:14 +01:00
Dave Pearson
ec10e41f40 Fix links for grid style reference
Fixes #4523
2024-05-20 08:29:12 +01:00
Dave Pearson
9ba9a884c4 Add some missing backticks in the docs 2024-04-10 10:12:29 +01:00
habaneraa
eb9a5b992d Update docs/styles/padding.md 2024-04-09 16:13:02 +08:00
ValentG2
c93d096754 fix: Relative url to css docs fixed. 2024-04-05 14:11:50 +02:00
Rodrigo Girão Serrão
0e6769721b Show TCSS as css instead of sass. 2023-12-20 17:11:30 +00:00
Rodrigo Girão Serrão
49994f60ab Fix hl_lines. 2023-12-19 11:59:18 +00:00
Rodrigo Girão Serrão
d993cce505 Rename link-hover-* rules to link-*-hover. (#3736)
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2023-11-29 14:09:58 +00:00
Rodrigo Girão Serrão
fe0892e0cf Merge pull request #3751 from Textualize/documentation-fixes
Documentation fixes.
2023-11-27 16:53:35 +00:00
Will McGugan
370f5f7214 Keyline rule (#3669)
* canvas

* imports

* more box drawing

* lines

* lines

* box drawing table

* fix box table

* tweak test

* canvas color

* simplify canvas

* optimization

* clipping

* render experiment

* keyline css

* tests

* don't draw around invisible widgets

* optimize

* snapshot test

* docs and examples

* tab size

* disclaimer

* docs

* changelog

* snapshots

* accidental add

* rename for consistency

* simplify color

* docstrings

* comment

* snapshots

* micro optimize

* micro-optimization

* typing

* set over list

* remove comment

* docstring

* punctuation

* Update docs/styles/keyline.md

Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>

---------

Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2023-11-27 11:54:53 +00:00
Rodrigo Girão Serrão
c19d54de67 Documentation fixes. 2023-11-27 10:31:33 +00:00
Dave Pearson
20865a47d3 Fix up highlights for the tint example 2023-11-08 15:44:38 +00:00
Dave Pearson
bc241726bc Fix up highlights for the link styling example 2023-11-08 15:33:58 +00:00
Dave Pearson
061f8a9bc4 Fix up highlights for the link hover example 2023-11-08 15:32:45 +00:00
Dave Pearson
53e864262a Fix up highlights for the link hover example 2023-11-08 15:31:09 +00:00
Dave Pearson
ba6a25aac7 More an -> a 2023-11-08 15:28:03 +00:00
Dave Pearson
65e55ecaaa Fix up highlights for the link hover example 2023-11-08 15:25:52 +00:00
Dave Pearson
e47c55520b An -> a 2023-11-08 15:25:31 +00:00
Dave Pearson
6c46ed4c96 Fix up highlights for the link colour example 2023-11-08 15:24:04 +00:00
Dave Pearson
e252d67131 Fix up highlights for height comparison example 2023-11-08 15:08:46 +00:00
Dave Pearson
0540ccce41 Remove the highlights from the border_all example
They don't seem to be highlighting anything particular at all; I suspect a
copy/paste-o here.
2023-11-08 14:56:37 +00:00
Dave Pearson
77ba89647b Fix up highlights for link background 2023-11-08 14:52:49 +00:00
Darren Burns
1a0cd7792d Allow scrollbar size of zero (scrollable containers without scrollbars) (#3488)
* Remove the guard code which protects against `scrollbar-size-*:0`, update error messages indicating its supported now.

* Fix scrollbar region calculation to support zero-thickness scrollbars

* Add test ensuring zero-width scrollbars dont blow up

* Updating CHANGELOG regarding zero-thickness scrollbars

* Add note to scrollbar_size.md about zero width scrollbar
2023-10-10 15:37:13 +01:00
TomJGooding
bb2a21e62a docs: correct grid gutter type (#3307) 2023-09-14 18:52:25 +01:00
Rodrigo Girão Serrão
5ee0ebfef4 Rename CSS files to TCSS.
Related issue: #3137.
2023-08-22 13:21:17 +01:00
David
63dff34af9 Update layer.md
Fix the link I managed to break
2023-08-09 19:57:35 +02:00
dmunozv04
52d0586f5d Fix doc links 2023-08-08 13:27:13 +02:00
dmunozv04
e880ecd82b Fix width.md so the link to box_sizing.md works 2023-08-03 12:54:14 +02:00
Alejandro Gaspar
062a0f26a1 Change vh to vw in min/max-width styles reference docs (#2943) 2023-07-17 11:32:04 +01:00
Will McGugan
c6bfeeffed Replace term 'transparency' with 'opacity' (#2861)
* Replace term 'transparency' with 'opacity'

* words

* docstring
2023-06-29 13:14:49 +01:00
Noah
70c4a959bd docs: Clarify message in color.md (#2860) 2023-06-29 11:34:58 +01:00
Will McGugan
0509cf8948 Border style (#2292)
* border styles

* docs for border styles

* fix tests

* tests

* tests and docs

* changelog

* implement auto

* style information fix
2023-04-16 12:31:39 +01:00
Rodrigo Girão Serrão
48d0547d86 Merge branch 'main' into fix-2107 2023-03-23 11:04:21 +00:00
Rodrigo Girão Serrão
559f976f78 Add more consistent phrasing.
Related issues: #2107
2023-03-23 11:04:17 +00:00
Rodrigo Girão Serrão
f9922ebe29 Improve subsection titles.
Related issues: #2108
Related PRs: #2110, #2064
2023-03-22 23:00:13 +00:00
Will McGugan
9529cac352 Version 0.16.0 (#2106)
* snapshot

* words

* word update
2023-03-22 13:38:23 +00:00
Rodrigo Girão Serrão
2a810f8c87 Implement border (sub)title. (#2064)
* Add Widget.border_title and border_subtitle.

Related issues: #1864

* Test setting border_(sub)title.

* Add border (sub)title references to StylesCache.

These internal references will make it easier for the instance of 'StylesCache' to know which border (sub)title to use, if/when needed.

* Add method to render border label.

* Add styles to align border (sub)title.

* Render border labels.

* Update styles template.

* Make new 'render_row' parameters optional.

* Add (sub)title border snapshot tests.

* Document border (sub)title and styles.

* Pass (sub)title directly as arguments.

Get rid of the watchers to make data flow easier to follow.
Related comment: https://github.com/Textualize/textual/pull/2064/files\#r1137746697

* Tweak example.

* Fix render_border_label.

This was wrong because border labels can be composed of multiple segments if they contain multiple styles. Additionally, we want to render a single blank space of padding around the title.

* Ensure we get no label when there's no space.

* Add tests for border label rendering.

* 'render_border_label' now returns iterable of segments.

* Add label to render_row.

* Fix calling signature in tests.

* Add padding to snapshot tests.

* Fix changelog.

* Update snapshot tests.

* Update snapshot tests.

* Border labels expand if there's no corners.

* Update CHANGELOG.md

* Fix docs.

* Remove irrelevant line.

* Fix snapshot tests.

* Don't share Console among tests.

* Simplify example in styles guide.

* Avoid expensive function call when possible.

* rewording

* positive branch first

* remove wasteful indirection

* fix changelog

---------

Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2023-03-22 11:07:38 +00:00
Rodrigo Girão Serrão
285de4b0fa Merge branch 'main' into add-containers 2023-03-14 14:35:23 +00:00
Dave Pearson
b9c6520db4 Make the Python code for dock.md more... Pythonic (#2046)
Fixes #2043.
2023-03-14 09:47:51 +00:00