Commit 304eb13b authored by Martin Wortschack's avatar Martin Wortschack

Merge branch 'tz-fix-startup-css-sliding-animation' into 'master'

Fixes the sliding problem with startup.css rendering

See merge request gitlab-org/gitlab!39423
parents 4d8e162d 4f71a78e
...@@ -156,6 +156,9 @@ function deferredInitialisation() { ...@@ -156,6 +156,9 @@ function deferredInitialisation() {
}); });
loadAwardsHandler(); loadAwardsHandler();
// Adding a helper class to activate animations only after all is rendered
setTimeout(() => $body.addClass('page-initialised'), 1000);
} }
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
......
.content-wrapper { .content-wrapper {
width: 100%; width: 100%;
transition: padding $sidebar-transition-duration;
.container-fluid { .container-fluid {
padding: 0 $gl-padding; padding: 0 $gl-padding;
...@@ -13,6 +12,10 @@ ...@@ -13,6 +12,10 @@
} }
} }
.page-initialised .content-wrapper {
transition: padding $sidebar-transition-duration;
}
.nav-header-btn { .nav-header-btn {
padding: 10px $gl-sidebar-padding; padding: 10px $gl-sidebar-padding;
color: inherit; color: inherit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment