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(button): fixes ripple on fab buttons in safari
Closes #1856
- Loading branch information
Robert Messerle
committed
Mar 19, 2015
1 parent
66fe575
commit a1c011e
Showing
1 changed file
with
3 additions
and
2 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 |
---|---|---|
|
@@ -97,11 +97,12 @@ $button-fab-toast-offset: $button-fab-height * 0.75; | |
width: $button-fab-width; | ||
height: $button-fab-height; | ||
|
||
border-radius: 50%; | ||
|
||
@extend .md-shadow-bottom-z-1; | ||
border-radius: 50%; | ||
background-clip: padding-box; | ||
overflow: hidden; | ||
// The following hack causes Safari to respect overflow hidden for ripples | ||
-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
robertmesserle
via email
Contributor
|
||
|
||
transform: translate3d(0,0,0); | ||
|
||
|
I think this broke fab's box-shadow effect in chrome 41.