Skip to content
Snippets Groups Projects
Commit 347ecaf1 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #704182 by jide: use transparent PNG instead of opacity for overlay...

- Patch #704182 by jide: use transparent PNG instead of opacity for overlay background to gain rendering performance.
parent 28b40efb
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
modules/overlay/images/background.png

76 B

......@@ -4,10 +4,10 @@
* ui-dialog overlay.
*/
.ui-widget-overlay {
background-color: #222;
opacity: 0.85;
filter: alpha(opacity=85);
background-image: none;
opacity: 1;
filter: none;
/* Using a transparent png renders faster than using opacity */
background: transparent url(images/background.png) repeat;
}
body.overlay-autofit {
......@@ -158,3 +158,13 @@ body.overlay-autofit {
.overlay div.add-or-remove-shortcuts {
padding-top: 0.9em;
}
/**
* IE 6 Fix.
*
* Use filter to support transparency in IE6 for the overlay background.
*/
* html .ui-widget-overlay {
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='modules/overlay/images/background.png', sizingMethod='scale');
background: none;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment