mirror of
https://github.com/nasa/openmct.git
synced 2025-02-06 19:19:23 +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 "items/item";
|
||||||
@import "mobile/item";
|
@import "mobile/item";
|
||||||
|
|
||||||
|
|
||||||
/********************************* TO BE MOVED */
|
/********************************* TO BE MOVED */
|
||||||
@import "autoflow";
|
@import "autoflow";
|
||||||
@import "features/imagery";
|
@import "features/imagery";
|
||||||
@import "features/time-display";
|
@import "features/time-display";
|
||||||
@import "widgets";
|
@import "widgets";
|
||||||
|
|
||||||
|
/********************************* APP STARTUP */
|
||||||
|
@import "app-start";
|
||||||
|
@ -32,11 +32,7 @@ body, html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.l-splash-holder {
|
.l-splash-holder {
|
||||||
// Main outer holder.
|
// Main outer holder for splash.
|
||||||
@include transition-property(opacity);
|
|
||||||
@include transition-duration(500ms);
|
|
||||||
@include transition-timing-function(ease-in-out);
|
|
||||||
@include transition-delay(1s);
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
@ -44,16 +40,18 @@ body, html {
|
|||||||
left: 0;
|
left: 0;
|
||||||
z-index: 10000;
|
z-index: 10000;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
&.fadeout {
|
|
||||||
opacity: 0;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
.l-splash {
|
.l-splash {
|
||||||
// The splash element.
|
// The splash element.
|
||||||
@include splashElem();
|
@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) {
|
@media only screen and (max-device-width: 767px) {
|
||||||
.l-splash-holder .l-splash {
|
.l-splash-holder .l-splash {
|
||||||
@include splashElem(0);
|
@include splashElem(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user