Skip to content
This repository was archived by the owner on Oct 22, 2018. It is now read-only.

Commit 3964915

Browse files
committed
Fix ionic icons to use from the app too
1 parent 3830fef commit 3964915

35 files changed

+18
-17
lines changed

nativescript/src/_app-common.scss

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
// Import the theme’s main ruleset.
99
@import '~nativescript-theme-core/scss/index';
1010

11-
.container {
12-
margin:40;
13-
}
14-
15-
.h1 {
16-
font-size:32px;
17-
font-weight:bold;
11+
.ion-icon {
12+
font-family: 'Ionicons';
1813
}

nativescript/src/fonts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Users/jdnichollsc/dev/proyecto26/nativescript-ionic-template/src/fonts

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "angular-native-seed",
2+
"name": "nativescript-ionic-template",
33
"version": "0.0.0",
44
"scripts": {
55
"postinstall": "node symlink.js",
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<GridLayout rows="auto,auto">
22
<Label class="h1 title"
3-
[text]="'about.title' | translate"></Label>
4-
<Label class="p description" textWrap="true" row="1"
5-
[text]="'about.description' | translate"></Label>
3+
text="About me!"></Label>
64
</GridLayout>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
img{
22
width: auto;
33
max-height: 300px;
4+
}
5+
6+
.ion-icon.contact {
7+
font-size: 35;
48
}

src/app/home/components/home/home.component.tns.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<Page xmlns:Card="nativescript-cardview">
22
<ActionBar title="NativeScript Mobile App, yay!">
3+
<ActionItem ios.position="right">
4+
<Button class="ion-icon contact" text="{{ '\uf41a' }}" [routerLink]="'/about'"></Button>
5+
</ActionItem>
36
</ActionBar>
47
<scroll-view>
58
<GridLayout rows="auto, *">
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// --------------------------------------------------
33
// The premium icon font for Ionic. For more info, please see:
44
// http://ionicframework.com/docs/v2/ionicons/
5-
$font-path: "./assets/fonts";
6-
$ionicons-font-path: "./assets/fonts";
5+
$font-path: "./fonts";
6+
$ionicons-font-path: "./fonts";

0 commit comments

Comments
 (0)