mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT: adding an additional overlay-light div that is used when switching between pages by ajax. The dialog pop-up uses the default "ui-widget-overlay", but that overlay is darker than "ui-widget-overlay-light". Having two overlays prevents weird graphic effects when switching pages using the darker overlay (SSO-12)
This commit is contained in:
parent
f50a281759
commit
90d4321c52
@ -456,8 +456,10 @@ form.member-profile-form .formattingHelpText li { font-size: 11px; color: #333;
|
||||
/** ------------------------------------------------------------------
|
||||
* Modal - JQuery UI Dialog pop-up
|
||||
* ----------------------------------------------------------------- */
|
||||
/* default overlay for the CMS */
|
||||
/* Adjusting the color of the background overlay to be darker. */
|
||||
/* overlay for switching between CMS panes */
|
||||
.cms .ui-widget-overlay-light { background: #aaaaaa url(../../thirdparty/jquery-ui-themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: 0.3; }
|
||||
|
||||
/* Adjusting the color of the background overlay to be darker for pop-up dialogs (created by jQuery-UI) */
|
||||
.cms .ui-widget-overlay { background-color: #000; background-image: none; }
|
||||
|
||||
.ui-dialog { background: url("../images/textures/bg_cms_main_content.png") repeat left top #f0f3f4; border: 3px solid #000 !important; border-radius: 8px; overflow: visible; padding: 0; /* Labels for all the Dialogs of the pop-up form */ /* Exception for a label that is inline with the selector dropdown box */ }
|
||||
|
@ -266,7 +266,7 @@
|
||||
|
||||
$('.cms-content.loading').entwine({
|
||||
onmatch: function() {
|
||||
this.append('<div class="cms-content-loading-overlay ui-widget-overlay"></div>');
|
||||
this.append('<div class="cms-content-loading-overlay ui-widget-overlay-light"></div>');
|
||||
},
|
||||
onunmatch: function() {
|
||||
this.find('.cms-content-loading-overlay').remove();
|
||||
|
@ -71,8 +71,8 @@
|
||||
else this.collapse();
|
||||
|
||||
// Preview might not be available in all admin interfaces - block/disable when necessary
|
||||
this.append('<div class="cms-preview-overlay ui-widget-overlay"></div>');
|
||||
this.find('.cms-preview-overlay').hide();
|
||||
this.append('<div class="cms-preview-overlay ui-widget-overlay-light"></div>');
|
||||
this.find('.cms-preview-overlay-light').hide();
|
||||
|
||||
this._super();
|
||||
},
|
||||
|
@ -843,12 +843,13 @@ form.member-profile-form {
|
||||
* Modal - JQuery UI Dialog pop-up
|
||||
* ----------------------------------------------------------------- */
|
||||
|
||||
/* default overlay for the CMS */
|
||||
.cms .ui-widget-overlay-default {
|
||||
|
||||
/* overlay for switching between CMS panes */
|
||||
.cms .ui-widget-overlay-light {
|
||||
background: #aaaaaa url(../../thirdparty/jquery-ui-themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
/* Adjusting the color of the background overlay to be darker. */
|
||||
/* Adjusting the color of the background overlay to be darker for pop-up dialogs (created by jQuery-UI) */
|
||||
.cms .ui-widget-overlay {
|
||||
background-color: #000;
|
||||
background-image: none;
|
||||
|
Loading…
x
Reference in New Issue
Block a user