Repository navigation
Commit 673c808
feat: implement css-variables and css-calc (#7553)
* feat: implement basic support for css-variables
* fix(test): test-watch-android and test-watch-ios was broken
* fix: processing css-variables belong in CssProperty-classes
Not in the StyleScope.
* fix(css-variables): set style attribute override value from css-classes
* feat: add css calc-support using 'reduce-css-calc'
* fix(tslint): missing semicolon and incorrect quotemark
* feat: move css-variable handling to Style-class
* chor: add comments explaining css-variable implmentation
* chor: set css-variables before other style properties
* chor(css-variables): cleaning up
* chor: code style fixes
* test(CSS-CALC): Add tests for nested css-calc statements
* fix(CSS-CALC): dip-unit not supported by reduce-css-calc
* fix(tslint): use double quotemarks
* test(css-calc): test _cssCalcConverter directly
* chor(css-variables): rename and clean up _cssVariableConverter to _evaluateCssVariable
* chor: rename varname to varName for consistency
* chor: support css-calc and variables for normal properties
* chor: use string.replace to evaluate css-variables
* fix: Missing blank line before return
* chor: rename css-calc functions
* fix: undefined css-variables treated as 'unset'
* fix(tslint): use double quotemarks
* feat(css-variable): handle fallback values
* chor(css-variables): handle unsetValue
* chor: process css-calc and css-variables in style-scope
* chore: clean-up css-calc/variable expressions
* fix(css-calc): handle invalid expressions
* chore(CSSState): update comments
* chore(Style): rename css-variable functions
* chore(css-variables): describe fallback logic
* chore: move reset scoped css-variables to Style-class
* chore(CssState): simplify check for css expressions
* chore: add reduce-css-calc to /package.json1 parent 0adcb64 commit 673c808
8 files changed
Lines changed: 651 additions & 14 deletions
File tree
- tests/app/ui/styling
- tns-core-modules
- ui
- core/properties
- styling
- style
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
75 | | - | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
0 commit comments