Commit Graph

607 Commits

Author SHA1 Message Date
Will McGugan
1173f14020 simplify border 2022-02-07 17:33:16 +00:00
Will McGugan
a0110eb19a border setter 2022-02-07 16:59:45 +00:00
Will McGugan
e2823b32d4 typing fix for 3.7 2022-02-07 16:43:44 +00:00
Will McGugan
ea031ca6f3 typing fix 2022-02-07 16:40:21 +00:00
Will McGugan
6df3ea2451 restore commented out setter 2022-02-07 16:37:12 +00:00
Will McGugan
a1b057ee9c remove log 2022-02-07 16:35:37 +00:00
Will McGugan
56fc98c9ee docstring 2022-02-07 16:26:10 +00:00
Will McGugan
90629d2b7e use isdisjoint 2022-02-07 16:24:18 +00:00
Will McGugan
623aa5cc03 Merge branch 'css' into inline-styles-view 2022-02-07 16:17:10 +00:00
Will McGugan
687d171520 tests styles view 2022-02-07 16:14:39 +00:00
Will McGugan
12bfe8c34a Merge pull request #258 from Textualize/css-variables-substitution
Variable support in CSS
2022-02-07 15:39:22 +00:00
Darren Burns
386aa6dacc Use len instead of cell_len 2022-02-07 15:35:05 +00:00
Darren Burns
1acee1f425 Merge branch 'css' of github.com:willmcgugan/textual into css-variables-substitution 2022-02-07 15:21:26 +00:00
Will McGugan
f19b87b645 remove widget rich method 2022-02-07 15:19:03 +00:00
Darren Burns
b08bdab75f Change whitespace trimming during css var sub, add more tests 2022-02-07 15:18:07 +00:00
Will McGugan
141ba68c6d formatting 2022-02-07 12:05:20 +00:00
Will McGugan
3c0bf02c2b lockfile 2022-02-07 12:01:49 +00:00
Will McGugan
c74c069629 dispatch kehy 2022-02-07 12:00:36 +00:00
Darren Burns
75a2e5f579 Rename Token.ref to Token.with_reference, add docstring 2022-02-07 11:47:16 +00:00
Will McGugan
8ad03e2216 Merge branch 'css' into inline-styles-view 2022-02-07 11:44:45 +00:00
Darren Burns
719ff543a5 Use set literal instead of function 2022-02-07 11:43:56 +00:00
Will McGugan
0d2cca9b41 fix for styles 2022-02-07 11:38:43 +00:00
Darren Burns
ad8465dafb Add info to a README for docs 2022-02-07 10:24:50 +00:00
Darren Burns
5c2438b585 Update homepage link 2022-02-07 10:16:43 +00:00
Will McGugan
bb254bda76 css fixes 2022-02-04 19:25:42 +00:00
Will McGugan
a4b9776113 css output fix 2022-02-04 18:54:54 +00:00
Will McGugan
2a8fbd5505 convert styles to using sipler dict 2022-02-04 18:39:50 +00:00
Will McGugan
06417bb9b6 Merge pull request #235 from Textualize/horizontal-layout
Horizontal layout
2022-02-04 12:08:45 +00:00
Darren Burns
0e3f42ada3 Merge branch 'horizontal-layout' of github.com:willmcgugan/textual into horizontal-layout 2022-02-04 11:55:05 +00:00
Darren Burns
93747fbf5d Add docstring, optimise imports 2022-02-04 11:54:38 +00:00
Will McGugan
1dfee08e55 Merge pull request #234 from Textualize/vertical-layout
Vertical layout
2022-02-04 11:50:51 +00:00
Darren Burns
54300488d4 Merge branch 'vertical-layout' into horizontal-layout 2022-02-04 11:48:48 +00:00
Darren Burns
bb8b4e89d3 Error handling 2022-02-04 11:43:35 +00:00
Darren Burns
d50e2e1b0d Better error messages for CSS parsing errors relating to variables 2022-02-03 17:23:08 +00:00
Darren Burns
ee8eb40e0f Updating tests to support token referencing 2022-02-03 16:07:09 +00:00
Darren Burns
df6d04cb8c Passing through token reference information 2022-02-03 15:55:13 +00:00
Darren Burns
33e8bc4584 Highlighting correct span of code when variable of incorrect type is used 2022-02-03 14:19:54 +00:00
Darren Burns
c18b1b9fed Tidy up Token.with_location 2022-02-03 13:17:59 +00:00
Darren Burns
9dfc1ddabb Variable reference tokens location updated to usage location instead of definition location 2022-02-03 13:16:11 +00:00
Darren Burns
6b1554d970 Fix issue with css variables with multiple values 2022-02-03 12:43:05 +00:00
Will McGugan
b2974aad6e default styles 2022-02-03 11:56:12 +00:00
Darren Burns
a0a2a0666f Fix typo in error message 2022-02-03 11:03:02 +00:00
Darren Burns
d5f90d651a Better error message for undefined variables 2022-02-03 11:00:08 +00:00
Darren Burns
a345c55140 Remove and irrelevant TODO comment 2022-02-03 10:29:53 +00:00
Darren Burns
d21bd82406 Adding a test around the whitespace trimming logic 2022-02-03 10:27:01 +00:00
Darren Burns
04181dc0b1 Trimming leading whitespace from variable definitions when storing their tokens 2022-02-03 10:17:46 +00:00
Darren Burns
62d24650c4 Small change to reduce nesting in variable substitution 2022-02-02 15:52:04 +00:00
Darren Burns
65a6b8d261 Substitution variables 2022-02-02 15:49:16 +00:00
Will McGugan
c90cdd4ec8 implement inline styles 2022-02-02 15:44:43 +00:00
Darren Burns
ac9e3cdfff Re-add support for variable references 2022-02-02 10:59:17 +00:00