mirror of
https://github.com/nasa/openmct.git
synced 2025-01-30 08:04:03 +00:00
Merge pull request #1967 from nasa/better-startup-1966
[Frontend] CSS for better startup
This commit is contained in:
commit
78a5ace18d
11
platform/commonUI/general/res/sass/_app-start.scss
Normal file
11
platform/commonUI/general/res/sass/_app-start.scss
Normal file
@ -0,0 +1,11 @@
|
||||
// At the last, hide .l-splash-holder and show .holder-all
|
||||
.l-splash-holder.fadeout {
|
||||
@include trans-prop-nice($props: opacity, $dur: 1000ms);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.user-environ .holder-all {
|
||||
opacity: 1;
|
||||
pointer-events: inherit;
|
||||
}
|
@ -76,9 +76,11 @@
|
||||
@import "items/item";
|
||||
@import "mobile/item";
|
||||
|
||||
|
||||
/********************************* TO BE MOVED */
|
||||
@import "autoflow";
|
||||
@import "features/imagery";
|
||||
@import "features/time-display";
|
||||
@import "widgets";
|
||||
|
||||
/********************************* APP STARTUP */
|
||||
@import "app-start";
|
||||
|
@ -32,11 +32,7 @@ body, html {
|
||||
}
|
||||
|
||||
.l-splash-holder {
|
||||
// Main outer holder.
|
||||
@include transition-property(opacity);
|
||||
@include transition-duration(500ms);
|
||||
@include transition-timing-function(ease-in-out);
|
||||
@include transition-delay(1s);
|
||||
// Main outer holder for splash.
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
@ -44,16 +40,18 @@ body, html {
|
||||
left: 0;
|
||||
z-index: 10000;
|
||||
opacity: 1;
|
||||
&.fadeout {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.l-splash {
|
||||
// The splash element.
|
||||
@include splashElem();
|
||||
}
|
||||
}
|
||||
|
||||
.user-environ .holder-all {
|
||||
// Gets shown again by main CSS, once loaded
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media only screen and (max-device-width: 767px) {
|
||||
.l-splash-holder .l-splash {
|
||||
@include splashElem(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user