This commit is contained in:
stoyanvi 2017-03-17 11:00:45 +02:00
Родитель ca84071f08
Коммит a7ec89faa2
2 изменённых файлов: 16 добавлений и 9 удалений

Просмотреть файл

@ -3,9 +3,16 @@
} }
.input-field.switch-field { .input-field.switch-field {
padding: 0; padding: 13 0 15;
border-width: 0 0 1 0;
border-color: #ebebed;
} }
.btn { .input-field.switch-field .label,
margin: 20 0 0; .input-field.switch-field .switch {
vertical-align: middle;
}
.input-field.switch-field .switch {
margin: 0;
} }

Просмотреть файл

@ -1,17 +1,17 @@
<page-layout> <page-layout>
<StackLayout> <StackLayout>
<loading-screen hideElement="hideonloading"></loading-screen> <loading-screen hideElement="hideonloading"></loading-screen>
<StackLayout id="hideonloading" class="cntnr"> <StackLayout id="hideonloading" class="cntnr">
<StackLayout *ngIf="user" class="form"> <StackLayout *ngIf="user" class="form">
<StackLayout orientation="horizontal" class="input-field switch-field"> <DockLayout class="input-field switch-field">
<Label class="label" text="Receive push notifications" textWrap="true"></Label> <Label class="label" text="Receive push notifications" textWrap="true"></Label>
<Switch class="switch" [(ngModel)]="pushEnabled"></Switch> <Switch class="switch" dock="right" [(ngModel)]="pushEnabled"></Switch>
</StackLayout> </DockLayout>
<StackLayout orientation="horizontal" class="input-field switch-field"> <DockLayout columns="*, auto" class="input-field switch-field">
<Label class="label" text="Receive email notifications" textWrap="true"></Label> <Label class="label" text="Receive email notifications" textWrap="true"></Label>
<Switch class="switch" [(ngModel)]="emailEnabled"></Switch> <Switch class="switch" [(ngModel)]="emailEnabled"></Switch>
</StackLayout> </DockLayout>
</StackLayout> </StackLayout>
<ScrollView class="cntnr"> <ScrollView class="cntnr">