mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* feat(html-view): Additional properties for HtmlView component - Allow to set text color with `color` CSS property. - Allow to set link color with `link-color` CSS property. - Allow to set font attributes with `font-family` and `font-size` CSS properties. - Make text selectable on Android by default (for consistency with IOS). - Remove extra padding on IOS. * refactor: Move uiColorToHex function to nativescript-core/color module * test: adding test for new HtmlView css properties Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
15 lines
252 B
CSS
15 lines
252 B
CSS
.s0 {
|
|
border-width: 1 2 5 10;
|
|
border-color: red green blue yellow;
|
|
width: 80;
|
|
height: 80;
|
|
font-size: 6;
|
|
}
|
|
|
|
.html-view {
|
|
font-size: 10;
|
|
link-color: red;
|
|
color: green;
|
|
font-family: 'Courier New', Courier, monospace;
|
|
}
|