mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
Disable transitions on page load
This commit is contained in:
parent
4a10e2d758
commit
99f0a348c5
@ -48,7 +48,7 @@ $innerLayoutScript = $this->layout()->innerLayout . '.phtml';
|
|||||||
<![endif]-->
|
<![endif]-->
|
||||||
<link type="image/png" rel="shortcut icon" href="<?= $this->baseUrl('img/favicon.png') ?>" />
|
<link type="image/png" rel="shortcut icon" href="<?= $this->baseUrl('img/favicon.png') ?>" />
|
||||||
</head>
|
</head>
|
||||||
<body id="body">
|
<body id="body" class="loading">
|
||||||
<pre id="responsive-debug"></pre>
|
<pre id="responsive-debug"></pre>
|
||||||
<div id="layout" class="default-layout<?php if ($showFullscreen): ?> fullscreen-layout<?php endif ?>">
|
<div id="layout" class="default-layout<?php if ($showFullscreen): ?> fullscreen-layout<?php endif ?>">
|
||||||
<?= $this->render($innerLayoutScript); ?>
|
<?= $this->render($innerLayoutScript); ?>
|
||||||
|
@ -137,3 +137,12 @@ td, th {
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Styles for when the page is loading. JS will remove this class once the document is ready
|
||||||
|
.loading * {
|
||||||
|
// Disable all transition on page load
|
||||||
|
-webkit-transition: none !important;
|
||||||
|
-moz-transition: none !important;
|
||||||
|
-o-transition: none !important;
|
||||||
|
transition: none !important;
|
||||||
|
}
|
||||||
|
@ -161,6 +161,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad: function (event) {
|
onLoad: function (event) {
|
||||||
|
$('body').removeClass('loading');
|
||||||
//$('.container').trigger('rendered');
|
//$('.container').trigger('rendered');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user