Merge pull request #4087 from Icinga/feature/redesign-container-loading-effect
Redesign container loading effects
This commit is contained in:
commit
0e080b8f21
|
@ -188,13 +188,35 @@ td, th {
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Styles for when containers are loading. JS will remove this once the containers are ready
|
.container {
|
||||||
.impact {
|
&:before {
|
||||||
.transition(background-color 2s 1s linear !important);
|
content: "";
|
||||||
background-color: @gray-lighter !important;
|
display: block;
|
||||||
}
|
|
||||||
|
|
||||||
.impact > .controls, .impact li.active a {
|
background: @body-bg-color url(/img/icinga-loader.gif) no-repeat center center;
|
||||||
.transition(background-color 2s 1s linear !important);
|
background-size: 4em 4em;
|
||||||
background-color: @gray-lighter !important;
|
|
||||||
|
opacity: 0;
|
||||||
|
z-index: -10;
|
||||||
|
pointer-events: none;
|
||||||
|
.transition(none);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.impact {
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.impact:before {
|
||||||
|
position: absolute;
|
||||||
|
top: 2.5em;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
|
||||||
|
opacity: .7;
|
||||||
|
z-index: 10;
|
||||||
|
pointer-events: all;
|
||||||
|
.transition(opacity 1s 2s linear);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 57 KiB |
|
@ -299,7 +299,11 @@
|
||||||
this.requests[id] = req;
|
this.requests[id] = req;
|
||||||
}
|
}
|
||||||
if (! autorefresh) {
|
if (! autorefresh) {
|
||||||
req.$target.addClass('impact');
|
setTimeout(function () {
|
||||||
|
// The column may have not been shown before. To make the transition
|
||||||
|
// delay working we have to wait for the column getting rendered
|
||||||
|
req.$target.addClass('impact');
|
||||||
|
}, 0);
|
||||||
}
|
}
|
||||||
this.icinga.ui.refreshDebug();
|
this.icinga.ui.refreshDebug();
|
||||||
return req;
|
return req;
|
||||||
|
|
Loading…
Reference in New Issue