mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add styles test page.
This commit is contained in:
3
apps/ui-tests-app/css/import.css
vendored
Normal file
3
apps/ui-tests-app/css/import.css
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
#import {
|
||||
background-color: lightpink;
|
||||
}
|
||||
5
apps/ui-tests-app/css/styles.css
Normal file
5
apps/ui-tests-app/css/styles.css
Normal file
@@ -0,0 +1,5 @@
|
||||
#page {
|
||||
background-color: lightcoral;
|
||||
}
|
||||
|
||||
@import url('~/css/import.css');
|
||||
4
apps/ui-tests-app/css/styles.ts
Normal file
4
apps/ui-tests-app/css/styles.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function onLoaded(args) {
|
||||
var page = args.object;
|
||||
page.addCss("#property { background-color: lightsalmon; }");
|
||||
}
|
||||
9
apps/ui-tests-app/css/styles.xml
Normal file
9
apps/ui-tests-app/css/styles.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<Page loaded="onLoaded">
|
||||
<WrapLayout>
|
||||
<Button id="app" text="app" />
|
||||
<Button id="inline" text="inline" style="background-color: lightgreen;" />
|
||||
<Button id="page" text="page" />
|
||||
<Button id="property" text="property" />
|
||||
<Button id="import" text="import" />
|
||||
</WrapLayout>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user