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; };