forked from jquery-archive/jquery-mobile
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes jquery-archivegh-7707
- Loading branch information
Gabriel Schulhof
committed
May 5, 2015
1 parent
bcd54d3
commit bc661d9
Showing
25 changed files
with
315 additions
and
157 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 |
---|---|---|
@@ -1,30 +1,30 @@ | ||
.ui-dialog { | ||
.ui-page-dialog { | ||
background: none !important; /* this is to ensure that dialog theming does not apply (by default at least) on the page div */ | ||
} | ||
.ui-dialog-contain { | ||
.ui-page-dialog-contain { | ||
width: 92.5%; | ||
max-width: 500px; | ||
margin: 10% auto 1em auto; | ||
padding: 0; | ||
position: relative; | ||
top: -1em; | ||
} | ||
.ui-dialog-contain > .ui-header, | ||
.ui-dialog-contain > .ui-content, | ||
.ui-dialog-contain > .ui-footer { | ||
.ui-page-dialog-contain > .ui-header, | ||
.ui-page-dialog-contain > .ui-content, | ||
.ui-page-dialog-contain > .ui-footer { | ||
display: block; | ||
position: relative; | ||
position: relative; | ||
width: auto; | ||
margin: 0; | ||
} | ||
.ui-dialog-contain > .ui-header { | ||
.ui-page-dialog-contain > .ui-header { | ||
overflow: hidden; | ||
z-index: 10; | ||
z-index: 10; | ||
padding: 0; | ||
border-top-width: 0; | ||
} | ||
.ui-dialog-contain > .ui-footer { | ||
z-index: 10; | ||
padding: 0 1em; | ||
.ui-page-dialog-contain > .ui-footer { | ||
z-index: 10; | ||
padding: 0 1em; | ||
border-bottom-width: 0; | ||
} |
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/*! | ||
* jQuery Mobile Page Styled As Dialog Backcompat @VERSION | ||
* http://jquerymobile.com | ||
* | ||
* Copyright jQuery Foundation and other contributors | ||
* Released under the MIT license. | ||
* http://jquery.org/license | ||
*/ | ||
|
||
//>>label: Dialog styling backcompat | ||
//>>group: Widgets | ||
//>>description: Style options for page styled as dialog | ||
|
||
( function( factory ) { | ||
if ( typeof define === "function" && define.amd ) { | ||
|
||
// AMD. Register as an anonymous module. | ||
define( [ | ||
"jquery", | ||
"./widget.backcompat", | ||
"./page.dialog" ], factory ); | ||
} else { | ||
|
||
// Browser globals | ||
factory( jQuery ); | ||
} | ||
} )( function( $ ) { | ||
|
||
if ( $.mobileBackcompat !== false ) { | ||
$.widget( "mobile.page", $.mobile.page, { | ||
options: { | ||
corners: true | ||
}, | ||
classProp: "ui-page-dialog-contain" | ||
} ); | ||
$.widget( "mobile.page", $.mobile.page, $.mobile.widget.backcompat ); | ||
} | ||
|
||
return $.mobile.page; | ||
|
||
} ); |
Oops, something went wrong.