fixed sidebar set-off

This commit is contained in:
lotte
2018-12-07 13:53:21 +01:00
parent 07c9927b6a
commit 38652b7a6a
13 changed files with 78 additions and 31 deletions

View File

@@ -58,3 +58,9 @@ export const slideSidebar = trigger('slideSidebar', [
]
))
]);
export const slideSidebarMargin = trigger('slideSidebarMargin', [
state('collapsed', style({ marginLeft: 0 })),
state('expanded', style({ marginLeft: '{{ collapsedSidebarWidth }}' }), { params: { collapsedSidebarWidth: '*' } }),
transition('collapsed <=> expanded', [animate('200ms')]),
]);