mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Update styles -> `app.css`. Update structure -> `home/home-page.xml`. Add Grid + Wrap examples.
39 lines
681 B
CSS
39 lines
681 B
CSS
/*
|
|
In NativeScript, the app.css file is where you place CSS rules that
|
|
you would like to apply to your entire application. Check out
|
|
http://docs.nativescript.org/ui/styling for a full list of the CSS
|
|
selectors and properties you can use to style UI components.
|
|
|
|
/*
|
|
For example, the following CSS rule changes the font size of all UI
|
|
components that have the btn class name.
|
|
*/
|
|
|
|
.btn {
|
|
font-size: 18;
|
|
}
|
|
|
|
Page {
|
|
background-color: LightGreen;
|
|
}
|
|
|
|
.grid {
|
|
background-color: LightBlue;
|
|
}
|
|
|
|
.list {
|
|
background-color: LightCoral;
|
|
}
|
|
|
|
.scroll {
|
|
background-color: LightSalmon;
|
|
}
|
|
|
|
.stack {
|
|
background-color: LightPink;
|
|
}
|
|
|
|
.wrap {
|
|
background-color: LightYellow;
|
|
}
|