From 81c90b3cbf6449cdf2f1fde63b636e39328baa65 Mon Sep 17 00:00:00 2001 From: Dries Date: Fri, 22 Jun 2012 10:46:33 -0700 Subject: [PATCH] - Patch #1651270 by effulgentsia: remove IE8-specific workaround for lack of CSS3 box-shadow support. --- core/modules/overlay/overlay-parent.js | 11 ----------- core/modules/toolbar/toolbar.css | 4 ---- core/modules/toolbar/toolbar.js | 9 --------- 3 files changed, 24 deletions(-) diff --git a/core/modules/overlay/overlay-parent.js b/core/modules/overlay/overlay-parent.js index 6537cb640f2..c8f56e54b19 100644 --- a/core/modules/overlay/overlay-parent.js +++ b/core/modules/overlay/overlay-parent.js @@ -861,17 +861,6 @@ Drupal.overlay.getDisplacement = function (region) { var lastDisplaced = $('.overlay-displace-' + region + ':last'); if (lastDisplaced.length) { displacement = lastDisplaced.offset().top + lastDisplaced.outerHeight(); - - // In modern browsers (including IE9), when box-shadow is defined, use the - // normal height. - var cssBoxShadowValue = lastDisplaced.css('box-shadow'); - var boxShadow = (typeof cssBoxShadowValue !== 'undefined' && cssBoxShadowValue !== 'none'); - // In IE8 and below, we use the shadow filter to apply box-shadow styles to - // the toolbar. It adds some extra height that we need to remove. - if (!boxShadow && /DXImageTransform\.Microsoft\.Shadow/.test(lastDisplaced.css('filter'))) { - displacement -= lastDisplaced[0].filters.item('DXImageTransform.Microsoft.Shadow').strength; - displacement = Math.max(0, displacement); - } } return displacement; }; diff --git a/core/modules/toolbar/toolbar.css b/core/modules/toolbar/toolbar.css index 80712bf3eb5..ec6f35ccec4 100644 --- a/core/modules/toolbar/toolbar.css +++ b/core/modules/toolbar/toolbar.css @@ -39,11 +39,7 @@ body.toolbar-drawer { position: fixed; right: 0; top: 0; - -moz-box-shadow: 0 3px 20px #000; - -webkit-box-shadow: 0 3px 20px #000; box-shadow: 0 3px 20px #000; - filter: progid:DXImageTransform.Microsoft.Shadow(color=#000000, direction='180', strength='10'); - -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(color=#000000, direction='180', strength='10')"; z-index: 600; } #toolbar div.collapsed { diff --git a/core/modules/toolbar/toolbar.js b/core/modules/toolbar/toolbar.js index ee8bddbdc62..afec44ac4f4 100644 --- a/core/modules/toolbar/toolbar.js +++ b/core/modules/toolbar/toolbar.js @@ -98,15 +98,6 @@ Drupal.toolbar.toggle = function() { Drupal.toolbar.height = function() { var $toolbar = $('#toolbar'); var height = $toolbar.outerHeight(); - // In modern browsers (including IE9), when box-shadow is defined, use the - // normal height. - var cssBoxShadowValue = $toolbar.css('box-shadow'); - var boxShadow = (typeof cssBoxShadowValue !== 'undefined' && cssBoxShadowValue !== 'none'); - // In IE8 and below, we use the shadow filter to apply box-shadow styles to - // the toolbar. It adds some extra height that we need to remove. - if (!boxShadow && /DXImageTransform\.Microsoft\.Shadow/.test($toolbar.css('filter'))) { - height -= $toolbar[0].filters.item("DXImageTransform.Microsoft.Shadow").strength; - } return height; };