fixed some things with dialog's css and classes

This commit is contained in:
scottjehl 2010-10-06 01:10:30 -04:00
parent b95dbce151
commit 5e34201ddc
2 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@
* Copyright (c) jQuery Project
* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
*/
.ui-dialog .ui-headfoot-placehold, .ui-dialog .ui-content { margin: 15px; position: relative; }
.ui-dialog .ui-headfoot-placehold { z-index: 10; }
.ui-dialog .ui-fixpos { margin-top: -15px; }
.ui-dialog .ui-content { margin-top: -15px; margin-bottom: -15px; }
.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-fixed-overlay { margin-top: 0; }
.ui-dialog .ui-content, .ui-dialog .ui-footer { margin-top: -15px; }

View file

@ -9,10 +9,10 @@ $.fn.dialog = function(options){
return $(this).each(function(){
$(this)
.addClass('ui-dialog ui-body-a')
.find('.ui-header')
.find('[data-role=header]')
.addClass('ui-corner-top ui-overlay-shadow')
.end()
.find('.ui-content,.ui-footer')
.find('.ui-content,[data-role=footer]')
.last()
.addClass('ui-corner-bottom ui-overlay-shadow');
});