MOBILE-3076 splash: Use full size splash screen

main
Pau Ferrer Ocaña 2019-06-14 11:03:50 +02:00
parent 9c7dc76730
commit b66e87b86b
5 changed files with 18 additions and 28 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@ -1,8 +1,5 @@
<ion-content> <ion-content>
<div class="core-bglogo"> <div class="core-bglogo">
<div class="core-logo">
<img src="assets/img/splash_logo.png"/>
<ion-spinner></ion-spinner> <ion-spinner></ion-spinner>
</div> </div>
</div>
</ion-content> </ion-content>

View File

@ -1,34 +1,30 @@
$core-splash-bgsize: 100vmax !default;
$core-splash-spinner-color: $core-init-screen-spinner-color !default;
$core-splash-bgcolor: $core-color-init-screen !default;
ion-app.app-root page-core-login-init { ion-app.app-root page-core-login-init {
.scroll-content { .scroll-content {
background-color: $core-color-init-screen; /* Change this to add a bg image or change color */ background: $core-splash-bgcolor; /* Change this to add a bg image or change color */
background: -webkit-radial-gradient($core-color-init-screen-alt, $core-color-init-screen); overflow: hidden;
background: radial-gradient($core-color-init-screen-alt, $core-color-init-screen);
background-repeat: no-repeat;
background-position: center center;
}
.core-bglogo {
position: absolute; position: absolute;
@include position(0, 0, 0, 0); @include position(0, 0, 0, 0);
height: 100%; height: 100%;
width: 100%; width: 100%;
display: table; display: table;
}
.core-logo { .core-bglogo {
display: table-cell; display: table-cell;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
}
img { background-image: url('/assets/img/splash.png');
width: $core-init-screen-logo-width; background-repeat: no-repeat;
max-width: $core-init-screen-logo-max-width; background-size: 100%;
display: block; background-size: $core-splash-bgsize;
margin: 0 auto; background-position: center;
margin-bottom: 30px;
}
.spinner circle, .spinner line { .spinner circle, .spinner line {
stroke: $core-init-screen-spinner-color; stroke: $core-splash-spinner-color;
} }
} }
} }

View File

@ -133,10 +133,7 @@ $core-star-color: $core-color !default;
// Init screen. // Init screen.
$core-color-init-screen: #ffffff !default; $core-color-init-screen: #ffffff !default;
$core-color-init-screen-alt: #ffffff !default;
$core-init-screen-spinner-color: $core-color !default; $core-init-screen-spinner-color: $core-color !default;
$core-init-screen-logo-width: 60% !default;
$core-init-screen-logo-max-width: 300px !default;
$core-fixed-url: false !default; $core-fixed-url: false !default;