Created
April 19, 2012 12:24
-
-
Save tqc/2420690 to your computer and use it in GitHub Desktop.
jQuery mobile dialog transparency fix
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
.ui-dialog-background { | |
opacity: 0.5; | |
display: block !important; | |
-webkit-transition: opacity 0.5s ease-in; | |
} | |
.ui-dialog-background.pop.in { | |
opacity: 1; | |
-webkit-transition: opacity 0.5s ease-in; | |
} | |
.ui-dialog { | |
min-height: 100% !important; | |
background: transparent !important; | |
} |
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
$(function() { | |
$('div[data-role="dialog"]').live('pagebeforeshow', function(e, ui) { | |
ui.prevPage.addClass("ui-dialog-background "); | |
}); | |
$('div[data-role="dialog"]').live('pagehide', function(e, ui) { | |
$(".ui-dialog-background ").removeClass("ui-dialog-background "); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you make an example of this in FS Fiddle with the new JQM 1.3.1?