fix(aio): animate hamburger in/out

Fixes #17215
This commit is contained in:
Georgios Kalpakas 2017-06-08 16:30:33 +03:00 committed by Pete Bacon Darwin
parent cf0a9e0730
commit f7422a9607
3 changed files with 12 additions and 9 deletions

View File

@ -5,7 +5,7 @@
</div>
<md-toolbar color="primary" class="app-toolbar">
<button class="hamburger" md-button
<button class="hamburger" [class.starting]="isStarting" md-button
(click)="sidenav.toggle()" title="Docs menu">
<md-icon [ngClass]="{'sidenav-open': !isSideBySide }" svgIcon="menu"></md-icon>
</button>

View File

@ -86,10 +86,8 @@ aio-shell.page-resources md-toolbar.mat-toolbar {
}
@media (min-width: 992px) {
padding-left: 24px;
button.hamburger {
display: none;
margin: 0 24px 0 -88px;
}
}
}

View File

@ -8,10 +8,15 @@
}
.hamburger.mat-button {
transition: color 0.2s;
height: 100%;
margin: 0;
padding: 0;
&:not(.starting) {
transition-duration: .4s;
transition-property: color, margin;
transition-timing-function: cubic-bezier(.25, .8, .25, 1);
}
}
.hamburger.mat-button:hover {