mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
style(sidenav): hide drawer shadow in 'side' mode (#2809)
This commit is contained in:
@@ -19,9 +19,6 @@
|
||||
}
|
||||
|
||||
&.md-sidenav-opening, &.md-sidenav-opened {
|
||||
// The elevation of z-16 is noted in the design specifications.
|
||||
// See https://material.io/guidelines/patterns/navigation-drawer.html#
|
||||
@include md-elevation(16);
|
||||
transform: translate3d($open, 0, 0);
|
||||
}
|
||||
}
|
||||
@@ -126,6 +123,14 @@ md-sidenav {
|
||||
@include md-sidenav-transition(0, -100%);
|
||||
}
|
||||
}
|
||||
|
||||
&.md-sidenav-opening, &.md-sidenav-opened {
|
||||
&:not(.md-sidenav-side) {
|
||||
// The elevation of z-16 is noted in the design specifications.
|
||||
// See https://material.io/guidelines/patterns/navigation-drawer.html#
|
||||
@include md-elevation(16);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.md-sidenav-focus-trap {
|
||||
|
||||
Reference in New Issue
Block a user