border-radius: 15px;
margin-right: auto !important;
margin-left: auto !important;
- display: block !important;
- width: auto !important;
- min-width: 80px !important;
- max-width: 770px !important;
- top: -350px !important;
- left: auto !important;
+ position: fixed !important;
+ min-width: 500px !important;
+ max-width: 780px !important;
+ top: 150px !important;
-webkit-box-shadow: 0 1px 23px rgba(0, 0, 0, 1);
-moz-box-shadow: 0 1px 23px rgba(0, 0, 0, 1);
div.ui-widget-overlay {
background-color: #000;
- opacity: .7;
+ opacity: .5;
position: fixed;
width: 100% !important;
top: 0;
this.options.width = 'auto';
$.ui.dialog.prototype._init.apply(this, arguments);
+
+ // center dialog on resize
+ $(window).resize($.proxy(function() {
+ this.option('position', 'center');
+ }, this));
}
});
this.element.parent('.ui-dialog').find('a.ui-dialog-titlebar-close').empty().remove();
}
}
+
+ // center dialog on window resize
+ $(window).resize($.proxy(function() {
+ this.option('position', 'center');
+ }, this));
},
/**