set independent pane element behind disclaimer view to hold background, refined transform size on shrink

This commit is contained in:
Jamal Jackson 2016-11-16 13:28:59 -05:00
commit 98a4c9a501
3 changed files with 43 additions and 35 deletions

View file

@ -1,9 +1,9 @@
#onboarding-disclaimer { #onboarding-disclaimer {
color: #fff; color: #fff;
height: 100%; height: 100%;
transition: transform 2s ease; transition: transform 1s ease;
&.shrink{ &.shrink{
transform: scale(.5); transform: scale(.98);
} }
&-container { &-container {
max-width: 450px; max-width: 450px;
@ -90,9 +90,6 @@
bottom: 0; bottom: 0;
width: 100%; width: 100%;
z-index: 10; z-index: 10;
&.header-present{
bottom: 38px;
}
&-content{ &-content{
max-width: 450px; max-width: 450px;
@include center-block(); @include center-block();
@ -119,6 +116,11 @@
.checkbox input:before, .checkbox input:before,
.checkbox .checkbox-icon:before{ .checkbox .checkbox-icon:before{
border-color:$soft-blue; border-color:$soft-blue;
background:#fff;
}
.checkbox input:after,
.checkbox .checkbox-icon:after{
border-color:#13e5b6;
} }
.checkbox input:checked:before, .checkbox input:checked:before,
.checkbox input:checked + .checkbox-icon:before { .checkbox input:checked + .checkbox-icon:before {

View file

@ -53,6 +53,10 @@
width: 100%; width: 100%;
} }
.pane-onboarding{
background: #0B1E4F;
}
@import "terms-of-use"; @import "terms-of-use";
@import "onboard-welcome"; @import "onboard-welcome";
@import "onboard-tour"; @import "onboard-tour";

View file

@ -1,3 +1,4 @@
<ion-pane class="pane-onboarding">
<ion-view id="onboarding-disclaimer" class="onboarding" ng-class="{'shrink': shrinkView}" ng-init=init()> <ion-view id="onboarding-disclaimer" class="onboarding" ng-class="{'shrink': shrinkView}" ng-init=init()>
<ion-nav-bar class="bar-stable" ng-if="backedUp == 'false'"> <ion-nav-bar class="bar-stable" ng-if="backedUp == 'false'">
<ion-nav-title></ion-nav-title> <ion-nav-title></ion-nav-title>
@ -25,8 +26,9 @@
</ion-view> </ion-view>
<div id="agree-to-terms" ng-if="accepted.first && accepted.second" ng-class="{'header-present': backedUp == 'false'}"> <div id="agree-to-terms" ng-if="accepted.first && accepted.second" ng-class="{'header-present': backedUp == 'false'}">
<div id="agree-to-terms-content" class="center-block"> <div id="agree-to-terms-content" class="center-block">
<ion-checkbox ng-model="terms.accepted.third"></ion-checkbox> <ion-checkbox ng-model="terms.accepted"></ion-checkbox>
<p translate>I have read, understood, and agree to the <a ng-click="openTerms()" translate>Terms of Use</a>.</p> <p translate>I have read, understood, and agree to the <a ng-click="openTerms()" translate>Terms of Use</a>.</p>
<button ng-disabled="!accepted.first || !accepted.second || !terms.accept3" class="button button-block button-positive" ng-click="confirm()" translate>Confirm &amp; Finish</button> <button ng-disabled="!accepted.first || !accepted.second || !terms.accepted" class="button button-block button-positive" ng-click="confirm()" translate>Confirm &amp; Finish</button>
</div> </div>
</div> </div>
</ion-pane>