GUI: Fix it so all platforms show same styling

This commit is contained in:
walljm 2017-01-26 01:35:41 -05:00
parent 7aa83dbd20
commit d0d597f78c
6 changed files with 13 additions and 13 deletions

View File

@ -15,7 +15,7 @@
// for the .md, .ios, or .wp mode classes. The mode class is // for the .md, .ios, or .wp mode classes. The mode class is
// automatically applied to the <body> element in the app. // automatically applied to the <body> element in the app.
.item-md { .item {
padding: 0px !important; padding: 0px !important;
padding-left: 16px !important; padding-left: 16px !important;
} }

View File

@ -1,4 +1,4 @@
passage .button-clear-md { passage .button {
color: #3D5699; color: #3D5699;
} }

View File

@ -1,4 +1,4 @@
strongs .button-clear-md{ strongs .button {
color: #307e4b; color: #307e4b;
} }

View File

@ -1,5 +1,5 @@
words { words {
.button-clear-md { .button {
color: #632761; color: #632761;
} }

View File

@ -4,7 +4,7 @@
font-size: 1em; font-size: 1em;
} }
.button-large-md { .button-large {
height: 3.6rem !important; height: 3.6rem !important;
} }
@ -28,15 +28,15 @@ body {
} }
} }
.card-md h2 { .card h2 {
font-size: 1.2em; font-size: 1.2em;
font-weight: bold; font-weight: bold;
} }
.item-md.item-block .item-inner { .item.item-block .item-inner {
padding: 0px; padding: 0px;
} }
.item-md ion-icon[item-left] + .item-inner { .item ion-icon[item-left] + .item-inner {
margin-left: 6px; margin-left: 6px;
} }

View File

@ -166,7 +166,7 @@ export class SearchPage implements OnInit
} }
getQuery(searchbar) getQuery(searchbar)
{ {
this.getItems(this.searchQuery, true); this.updateUIwithItems(this.searchQuery, true);
} }
isError(t: string) isError(t: string)
@ -221,10 +221,10 @@ export class SearchPage implements OnInit
getItemsNextToCard(data: OpenData) getItemsNextToCard(data: OpenData)
{ {
this.last = data.card; this.last = data.card;
this.getItems(data.qry, data.from_search_bar); this.updateUIwithItems(data.qry, data.from_search_bar);
} }
getItemsList(search: string): Promise<CardItem[]> getItemList(search: string): Promise<CardItem[]>
{ {
return new Promise((resolve, reject) => return new Promise((resolve, reject) =>
{ {
@ -283,9 +283,9 @@ export class SearchPage implements OnInit
}); });
} }
getItems(search: string, from_search_bar: boolean) updateUIwithItems(search: string, from_search_bar: boolean)
{ {
this.getItemsList(search).then(lst => this.getItemList(search).then(lst =>
{ {
this.loader = this.loadingCtrl.create({ content: 'Looking up Query...' }); this.loader = this.loadingCtrl.create({ content: 'Looking up Query...' });
this.loader.present().then( this.loader.present().then(