UX: don't animate experimental sidebar on reload (#17372)

This commit is contained in:
Kris 2022-07-07 09:33:17 -04:00 committed by GitHub
parent d037796ff4
commit 7d3b22135c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 10 deletions

View File

@ -187,15 +187,6 @@ input {
}
}
#main-outlet-wrapper {
// grid-template-columns transition supported in Firefox, Chrome support coming summer 2022
transition: grid-template-columns var(--d-sidebar-animation-time);
}
.d-header-wrap .wrap {
transition: max-width var(--d-sidebar-animation-time);
}
body.has-sidebar-page {
.wrap {
// increase page max-width to accommodate sidebar width
@ -213,6 +204,11 @@ body.has-sidebar-page {
body.sidebar-animate {
#main-outlet-wrapper {
transition: all var(--d-sidebar-animation-time);
// grid-template-columns transition supported in Firefox, Chrome support coming summer 2022
transition: grid-template-columns var(--d-sidebar-animation-time);
}
.d-header-wrap .wrap {
transition: max-width var(--d-sidebar-animation-time);
}
}