This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backdrop): use absolute positioning and anchors
css changes work better with sideNav, dialogs, and menus. fix opaque rendering for dialog backdrops
- Loading branch information
1 parent
ee1fed1
commit 87bdf36
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,9 @@ md-backdrop { | |
|
||
background-color: rgba(0,0,0,0); | ||
|
||
position: fixed; | ||
position: absolute; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
barryvdh
Contributor
|
||
height: 100%; | ||
bottom:0; | ||
left: 0; | ||
right: 0; | ||
|
||
|
@@ -32,7 +33,11 @@ md-backdrop { | |
animation: $swift-ease-out-timing-function mdBackdropFadeIn 0.5s both; | ||
} | ||
&.ng-leave { | ||
animation: $swift-ease-in-timing-function mdBackdropFadeOut 0.2s both; | ||
animation: $swift-ease-in-timing-function mdBackdropFadeOut 0.4s both; | ||
} | ||
|
||
&.md-opaque { | ||
background-color: rgba(0,0,0,0.42); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For some reason I recall there being a debate here on github about other elements being fixed vs absolute, but can't find it... Happy to see this changed back 👍