Skip to content

Commit 0dc38b2

Browse files
authored
Merge pull request #369 from NativeScript/niliev/icons
docs: move font icons article
2 parents 8cc611e + 019e919 commit 0dc38b2

15 files changed

+8
-7
lines changed

Diff for: app/app.routes.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const routes = [
5252
},
5353
{
5454
path: "icon-fonts",
55-
loadChildren: "./ng-ui-widgets-category/icon-fonts/iconfonts-examples.module#IconFontsExamplesModule",
55+
loadChildren: "./ng-ui-category/icon-fonts/iconfonts-examples.module#IconFontsExamplesModule",
5656
data: { title: "IconFonts" }
5757
},
5858
{

Diff for: app/ng-ui-widgets-category/icon-fonts/basics/basic.component.html renamed to app/ng-ui-category/icon-fonts/basics/basic.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
<StackLayout class="m-16">
3-
<Label text="Icon Fonts demonstration" class="h3"></Label>
2+
<StackLayout class="m-16" horizontalAlignment="center">
3+
<Label text="Icon Fonts demonstration" fontSize="18"></Label>
44

55
<!-- >> icon-font-xml-def -->
66
<!-- Using fa-regular-400.ttf -->

Diff for: app/ng-ui-widgets-category/icon-fonts/basics/basic.css renamed to app/ng-ui-category/icon-fonts/basics/basic.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424

2525
Label {
26-
font-size: 18;
26+
font-size: 48;
2727
color: #66ccff;
2828
margin: 8;
2929
}

Diff for: app/ng-ui-widgets-category/icon-fonts/code-behind/codebehind.component.html renamed to app/ng-ui-category/icon-fonts/code-behind/codebehind.component.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<!-- >> icon-font-code-behind-html -->
33
<ListView [items]="glyphs">
44
<ng-template let-item="item">
5-
<StackLayout orientation="horizontal">
5+
<StackLayout orientation="horizontal" horizontalAlignment="center">
66
<Label [text]="item.icon" class="ico"></Label>
7-
<Label [text]="item.code" class="m-l-8"></Label>
7+
<Label [text]="item.code"></Label>
88
</StackLayout>
99
</ng-template>
1010
</ListView>

Diff for: app/ng-ui-widgets-category/icon-fonts/code-behind/codebehind.css renamed to app/ng-ui-category/icon-fonts/code-behind/codebehind.css

+1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ Label.icon {
2424
Label {
2525
font-size: 18;
2626
color: #66ccff;
27+
margin: 8 32 8 23;
2728
}
File renamed without changes.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"nativescript": {
2323
"id": "org.nativescript.nativescriptsdkexamplesng",
2424
"tns-ios": {
25-
"version": "5.3.0-rc-2019-03-25-101854-01"
25+
"version": "5.4.0-2019-03-26-093523-01"
2626
}
2727
},
2828
"dependencies": {

0 commit comments

Comments
 (0)