Skip to content

Commit da22c18

Browse files
committed
feat(style): priamry color changed and used
1 parent e86e095 commit da22c18

File tree

6 files changed

+32
-11
lines changed

6 files changed

+32
-11
lines changed

src/pages/comments/comments.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-->
77
<ion-header>
88

9-
<ion-navbar>
9+
<ion-navbar color="primary">
1010
<ion-title>Comments</ion-title>
1111
</ion-navbar>
1212

@@ -18,10 +18,10 @@
1818
<ion-card *ngIf="post.selftext">
1919
<ion-card-content>
2020
<p class="selftext">{{post.selftext}}</p>
21-
<ion-row class="post-author">
21+
<ion-row class="post-info">
2222
<ion-col center text-left>
23-
<ion-note>
24-
by {{post.author}}
23+
<ion-note class="post-author">
24+
{{post.author}}
2525
</ion-note>
2626
</ion-col>
2727
<ion-col center text-right>

src/pages/comments/comments.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
page-comments {
2-
.post-author {
2+
.post-info {
33
font-size: 1.2rem;
44
color: #2b2b2b;
5+
6+
.post-author {
7+
color: color($colors, primary);
8+
}
59
}
610

711
.comments-load-spinner {
@@ -11,5 +15,9 @@ page-comments {
1115
left: 0;
1216
right: 0;
1317
bottom: 0;
18+
19+
* {
20+
stroke: color($colors, primary);
21+
}
1422
}
1523
}

src/pages/comments/commentsList/commentsList.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
.comment-head {
1717
font-size: 1rem;
1818
margin-bottom: 5px;
19+
20+
.comment-author {
21+
color: color($colors, primary);
22+
}
1923
}
2024

2125
ion-label {

src/pages/posts/posts.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ion-header>
2-
<ion-navbar>
2+
<ion-navbar color="primary">
33
<ion-title>
44
Ionic2 Reddit Reader
55
</ion-title>
@@ -29,7 +29,7 @@
2929
</ion-note>
3030
</ion-col>
3131
<ion-col>
32-
<button ion-button icon-left clear small (click)="goToComments(post)">
32+
<button ion-button icon-left clear small color="primary" (click)="goToComments(post)">
3333
<ion-icon name="ios-text-outline"></ion-icon>
3434
<div>{{post.num_comments}}</div>
3535
</button>
@@ -38,8 +38,8 @@
3838
</ion-card>
3939

4040
<ion-infinite-scroll (ionInfinite)="loadMore($event)">
41-
<ion-infinite-scroll-content>
42-
loadingSpinner="bubbles"
41+
<ion-infinite-scroll-content color="primary">
42+
loadingSpinner="crescent"
4343
loadingText="Loading more fun...">
4444
</ion-infinite-scroll-content>
4545
</ion-infinite-scroll>

src/pages/posts/posts.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ page-posts {
66
left: 0;
77
right: 0;
88
bottom: 0;
9+
10+
* {
11+
stroke: color($colors, primary);
12+
}
13+
}
14+
15+
ion-infinite-scroll .infinite-loading-spinner {
16+
* {
17+
stroke: color($colors, primary);
18+
}
919
}
1020

1121
.post-title {

src/theme/variables.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ $background-color: #fff;
2323
// The "primary" color is the only required color in the map.
2424

2525
$colors: (
26-
primary: #387ef5,
26+
primary: #089de3,
2727
secondary: #32db64,
2828
danger: #f53d3d,
2929
light: #f4f4f4,
3030
dark: #222
3131
);
3232

33-
3433
// App iOS Variables
3534
// --------------------------------------------------
3635
// iOS only Sass variables can go here

0 commit comments

Comments
 (0)