Skip to content

Commit

Permalink
Improve sidebars animations
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Ambrosini <marcoambrosini@proton.me>
  • Loading branch information
marcoambrosini committed May 20, 2024
1 parent 532a257 commit 655bfde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/NcAppNavigation/NcAppNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ export default {
// Set scoped variable override
// Using --color-text-maxcontrast as a fallback evaluates to an invalid value as it references itself in this scope instead of the variable defined higher up
--color-text-maxcontrast: var(--color-text-maxcontrast-background-blur, var(--color-text-maxcontrast-default));
transition: transform var(--animation-quick), margin var(--animation-quick);
transition: transform var(--animation-slow) cubic-bezier(.34,.11,0,1.2), margin var(--animation-slow) cubic-bezier(.34,.11,0,1.2);
@media (prefers-reduced-motion){
transition: transform var(--animation-slow), margin var(--animation-slow);
}
width: $navigation-width;
// Left toggle button padding + toggle button + right padding from NcAppContent
--app-navigation-max-width: calc(100vw - (var(--app-navigation-padding) + var(--default-clickable-area) + var(--default-grid-baseline)));
Expand Down
1 change: 1 addition & 0 deletions src/components/NcAppSidebar/NcAppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,7 @@ $top-buttons-spacing: 6px;
.slide-right-enter-active {
transition-duration: var(--animation-quick);
transition-property: margin-right;
transition-timing-function: cubic-bezier(0,.11,1,1.2);
}
.slide-right-enter-to,
Expand Down

0 comments on commit 655bfde

Please sign in to comment.