Permalink
Browse files

Fixes #2729 — Sets a max-width of ~600px on dialogs (inc. full-scree…

…n selects), changes disalog width to percentage-based value.
  • Loading branch information...
Wilto committed Oct 18, 2011
1 parent 2580f88 commit 9fbadb024748944667aa0d17e0e9a32365cd7807
Showing with 3 additions and 2 deletions.
  1. +3 −2 css/structure/jquery.mobile.dialog.css
@@ -4,6 +4,7 @@
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
.ui-dialog { min-height: 480px; }
-.ui-dialog .ui-header, .ui-dialog .ui-content, .ui-dialog .ui-footer { margin: 15px; position: relative; }
-.ui-dialog .ui-header, .ui-dialog .ui-footer { z-index: 10; width: auto; }
+.ui-dialog .ui-header, .ui-dialog .ui-content, .ui-dialog .ui-footer { max-width: 500px; margin: 15px auto; padding: 15px; width: 85%; position: relative; }
+.ui-dialog .ui-header { padding: 0 15px; }
+.ui-dialog .ui-header, .ui-dialog .ui-footer { z-index: 10; }
.ui-dialog .ui-content, .ui-dialog .ui-footer { margin-top: -15px; }

0 comments on commit 9fbadb0

Please sign in to comment.