Commit graph

40 commits

Author SHA1 Message Date
Dave Pearson
e6f620db44
Remove underscore pauses from (hopefully) all snapshots
This seeks to remove the "_" from the key presses of snapshots and inline
runs in the documentation. The "_" no longer does anything, but got legacy
reasons at the moment we can't actually allow "_" to be an input to a
"faked" keypress in the docs and snapshots.

Removing these clears the way to letting "_" have the same status as any
other character.

See #1994.
2023-03-09 20:32:27 +00:00
Dave Pearson
257fe7b30a
Add enabled and disabled pseudo-classes
Note that this doesn't touch the application of stylesheets yet, in terms of
things like specificity; this just makes sure that the classes exist and can
be seen.
2023-02-13 12:56:52 +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
bc1298b85b Pause so that screenshots are not empty. 2022-11-23 17:09:53 +00:00
darrenburns
bbd811d671
Support multiple CSS files (#1079)
* Support multiple CSS paths

* Update a type to match docstring

* Ensure the demo app still works

* Use absolute paths in tests to (hopefully) appease Windows

* Notes about CSS changes in guide/docstrings, small grammar/typos fixes

* Move snapshot apps into snapshot_tests dir, improve messaging in snapshot output, add test for multiple css files interacting with classvar CSS

* Ensure consistent snapshot naming cross-platform

* Use rpartition instead of partition in import_app

* Fix handling of import_app when colon in arg

* Support paths containing Windows drive names in import_app

* Add note on new relative paths in snap_compare

* Update docs/guide/CSS.md

Co-authored-by: Will McGugan <willmcgugan@gmail.com>

* Fix formatting

* Update CHANGELOG to mention CSS_PATH supporting a list

Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2022-11-01 17:13:25 +00:00
Dave Pearson
c10e172151
Markup pseudo-selector as code
Other similar items in the surrounding text use code markup, so this feels
like it should do too.
2022-10-14 09:00:52 +01:00
Dave Pearson
185a817a30
Improve the description of has_class 2022-10-14 08:56:59 +01:00
Dave Pearson
ad5fb455c1
it's -> its 2022-10-14 08:52:29 +01:00
Dave Pearson
34e5d53cb3
Correct what is imported in an example
The main code in the example creates a `Button` from a `Static`, but the
import is importing a `Widget`. This commit makes the example code make more
sense.
2022-10-14 08:48:06 +01:00
Dave Pearson
d324f1cd56
Add a missing word 2022-10-14 08:42:11 +01:00
Dave Pearson
e46c51d61c
Fix whitespace
Includes pre-commit hook changes.
2022-10-14 08:41:02 +01:00
Aaron Stephens
b9493ae6ff docs: typos 2022-10-12 17:34:29 -07:00
Will McGugan
d962dcd49c new align 2022-09-27 16:35:40 +01:00
Will McGugan
d0293c2c89 changed to CSS_PATH 2022-09-18 22:02:08 +01:00
darrenburns
e2ff19e1f3
Fix broken text in docs (#781)
* Add docs for CSS variables

* Fix broken text
2022-09-15 13:55:33 +01:00
darrenburns
1e9ebf0c73
Add docs for CSS variables (#780)
* Add docs for CSS variables

* Update docs/guide/CSS.md

Co-authored-by: Will McGugan <willmcgugan@gmail.com>

* Update docs/guide/CSS.md

Co-authored-by: Will McGugan <willmcgugan@gmail.com>

* Update docs/guide/CSS.md

Co-authored-by: Will McGugan <willmcgugan@gmail.com>

* Update docs/guide/CSS.md

Co-authored-by: Will McGugan <willmcgugan@gmail.com>

Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2022-09-15 13:45:49 +01:00
Will McGugan
b1fa3c0a2a words 2022-09-10 17:00:43 +01:00
Will McGugan
269960ad8a fix styles examples, box model docs 2022-09-10 16:45:13 +01:00
Will McGugan
d9d5791925 todos 2022-09-06 15:39:41 +01:00
Will McGugan
e7d57a4aa2 renamed introduction to tutorial 2022-09-05 21:30:29 +01:00
Will McGugan
2fedbaf3dd tweak 2022-08-26 11:02:14 +01:00
Will McGugan
ff579ea526 Review changes 2022-08-26 10:58:50 +01:00
Will McGugan
732af87936
Apply suggestions from code review
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2022-08-26 10:40:04 +01:00
Will McGugan
a09f5726ec
Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2022-08-25 15:37:52 +01:00
Will McGugan
a15cb4413d
Update docs/guide/CSS.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2022-08-25 10:30:22 +01:00
Will McGugan
df2d12510a
Update docs/guide/CSS.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2022-08-25 10:30:11 +01:00
Will McGugan
0cc48076c7 rephrase 2022-08-25 10:29:31 +01:00
Will McGugan
9d4ec4bd0f
Update docs/guide/CSS.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2022-08-25 10:28:51 +01:00
Will McGugan
81202d15eb
Update docs/guide/CSS.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2022-08-25 10:28:38 +01:00
Will McGugan
1ee962516a
Update docs/guide/CSS.md
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2022-08-25 10:25:46 +01:00
Will McGugan
6ee4d41bb7 docs 2022-08-24 11:19:29 +01:00
Will McGugan
5491b41346 words 2022-08-15 07:51:14 +01:00
Will McGugan
eeb6729bcf words 2022-08-14 22:06:27 +01:00
Will McGugan
ddcef6e7d5 words 2022-08-14 16:28:14 +01:00
Will McGugan
9af8c8214a words 2022-08-14 16:24:33 +01:00
Will McGugan
48a4ec92a0 specificity docs 2022-08-14 15:47:52 +01:00
Will McGugan
f19076ea57 words 2022-08-14 15:43:29 +01:00
Will McGugan
538e5d4701 lots more docs 2022-08-14 15:43:00 +01:00
Will McGugan
a1c0b173bd more docs and diagrams 2022-08-13 21:39:31 +01:00
Will McGugan
f7ff893de8 more docs 2022-08-10 17:49:45 +01:00