Commit 2e9e46a3 authored by Dries's avatar Dries

- Patch #308865 by cosmicdreams, casey, Rob Loach, tim.plunkett: drop IE6 support in Drupal core.

parent 2a881d81
......@@ -301,11 +301,6 @@ Drupal.tableDrag.prototype.makeDraggable = function (item) {
$(self.oldRowElement).removeClass('drag-previous');
}
// Hack for IE6 that flickers uncontrollably if select lists are moved.
if (navigator.userAgent.indexOf('MSIE 6.') != -1) {
$('select', this.table).css('display', 'none');
}
// Hack for Konqueror, prevent the blur handler from firing.
// Konqueror always gives links focus, even after returning false on mousedown.
self.safeBlur = false;
......@@ -559,11 +554,6 @@ Drupal.tableDrag.prototype.dropRow = function (event, self) {
self.dragObject = null;
$('body').removeClass('drag');
clearInterval(self.scrollInterval);
// Hack for IE6 that flickers uncontrollably if select lists are moved.
if (navigator.userAgent.indexOf('MSIE 6.') != -1) {
$('select', this.table).css('display', 'block');
}
}
};
......
......@@ -2,15 +2,14 @@
div.vertical-tabs {
margin: 1em 0 1em 15em; /* LTR */
border: 1px solid #ccc;
position: relative; /* IE6/7 */
position: relative; /* IE7 */
}
.vertical-tabs ul.vertical-tabs-list {
width: 15em;
list-style: none;
list-style-image: none; /* IE6 */
list-style-image: none; /* IE7 */
border-top: 1px solid #ccc;
padding: 0;
position: relative; /* IE6 */
margin: -1px 0 -1px -15em; /* LTR */
float: left; /* LTR */
}
......@@ -71,7 +70,3 @@ div.vertical-tabs {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
* html .vertical-tabs .form-type-textfield,
* html .vertical-tabs .form-textarea-wrapper {
width: 95%; /* IE6 */
}
......@@ -43,14 +43,6 @@ Drupal.behaviors.color = {
}
}
// Fix preview background in IE6.
if (navigator.appVersion.match(/MSIE [0-6]\./)) {
var e = $('#preview #img')[0];
var image = e.currentStyle.backgroundImage;
e.style.backgroundImage = 'none';
e.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image.substring(5, image.length - 2) + "')";
}
// Set up colorScheme selector.
$('#edit-scheme', form).change(function () {
var schemes = settings.color.schemes, colorScheme = this.options[this.selectedIndex].value;
......
......@@ -133,15 +133,6 @@ html.js body {
padding-top: 0.9em;
}
/**
* IE6 shows elements with position:fixed as position:static so replace
* it with position:absolute;
*/
* html #overlay-close,
* html #overlay-close:hover {
position: absolute;
}
/**
* Disable message.
*/
......
......@@ -429,7 +429,7 @@ Drupal.overlay.eventhandlerAlterDisplacedElements = function (event) {
var documentHeight = this.iframeWindow.document.body.clientHeight;
var documentWidth = this.iframeWindow.document.body.clientWidth;
// IE6 doesn't support maxWidth, use width instead.
var maxWidthName = (typeof document.body.style.maxWidth == 'string') ? 'maxWidth' : 'width';
var maxWidthName = 'maxWidth';
if (Drupal.overlay.leftSidedScrollbarOffset === undefined && $(document.documentElement).attr('dir') === 'rtl') {
// We can't use element.clientLeft to detect whether scrollbars are placed
......
......@@ -243,7 +243,6 @@ table.screenshot {
.exposed-filters .filters {
float: left; /* LTR */
margin-right: 1em; /* LTR */
width: 25em; /* IE6 */
}
.exposed-filters .form-item {
margin: 0 0 0.1em 0;
......
......@@ -227,7 +227,7 @@ html.js .js-hide {
*/
.element-invisible {
position: absolute !important;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px 1px 1px 1px); /* IE7 */
clip: rect(1px, 1px, 1px, 1px);
}
......@@ -253,10 +253,6 @@ html.js .js-hide {
clear: both;
visibility: hidden;
}
/* IE6 */
* html .clearfix {
height: 1%;
}
/* IE7 */
*:first-child + html .clearfix {
min-height: 1%;
......
......@@ -35,7 +35,3 @@
left: 10px;
right: auto;
}
* html #toolbar {
left: 0;
padding-left: 0;
}
......@@ -133,18 +133,3 @@ body.toolbar-drawer {
position: relative;
padding: 0 10px;
}
/**
* IE 6 Fix.
*
* IE 6 shows elements with position:fixed as position:static so we replace
* it with position:absolute; toolbar needs its z-index to stay above overlay.
*/
* html #toolbar {
left: -20px;
margin: 0;
padding-right: 0;
position: absolute;
right: 0;
width: 100%;
}
#content {
overflow: hidden;
}
.form-item-search-block-form {
width: 50%;
}
.tabs ul.primary,
.region-header .block-menu li a,
.comment-form .form-item {
zoom: 1;
}
#block-search-form .form-item-search-block-form input {
width: 67%;
}
.node-teaser {
border-bottom: 1px solid #d3d7d9;
}
......@@ -23,7 +23,6 @@ function bartik_preprocess_html(&$variables) {
// Add conditional stylesheets for IE
drupal_add_css(path_to_theme() . '/css/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'preprocess' => FALSE));
drupal_add_css(path_to_theme() . '/css/ie6.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'IE 6', '!IE' => FALSE), 'preprocess' => FALSE));
}
/**
......
body {
/* Center layout */
text-align: center;
}
#squeeze {
zoom: 1;
direction: ltr;
}
#squeeze .left-corner {
direction: rtl
}
#header-region,
#wrapper #container {
/* Reset text alignment */
text-align: right;
}
#wrapper #container #center {
/* Reduce amount of damage done by extremely wide content */
overflow: hidden;
}
#wrapper #container #center .right-corner .left-corner {
/* Because of the lack of min-height, we use height as an alternative */
height: 400px;
}
fieldset {
/* Don't draw backgrounds on fieldsets in IE, as they look really bad. */
background: none;
}
/* Prevent fieldsets from shifting when changing collapsed state. */
html.js fieldset.collapsible {
top: -1em;
}
html.js fieldset.collapsed {
top: 0;
margin-bottom: 1em;
}
tr.menu-disabled {
/* Use filter to emulate CSS3 opacity */
filter: alpha(opacity=50);
}
#header-region {
/* Because of the lack of min-height, we use height as an alternative */
height: 1em;
}
#attach-hide label,
#uploadprogress div.message {
/* Fading elements in IE causes the text to bleed unless they have a background. */
background-color: #ffffff;
}
body {
/* Center layout */
text-align: center;
}
#header-region,
#wrapper #container {
/* Reset text alignment */
text-align: left; /* LTR */
}
#wrapper #container #center {
/* Reduce amount of damage done by extremely wide content */
overflow: hidden;
}
#wrapper #container #center .right-corner .left-corner {
/* Because of the lack of min-height, we use height as an alternative */
height: 400px;
}
fieldset {
/* Don't draw backgrounds on fieldsets in IE, as they look really bad. */
background: none;
}
div.vertical-tabs ul.vertical-tabs-list li.first {
background-image: none;
}
ul.primary {
/* Fix missing top margin */
position: relative; /* LTR */
/* top: 0.5em; */
}
/* Prevent fieldsets from shifting when changing collapsed state. */
html.js fieldset.collapsible {
top: -1em;
}
html.js fieldset.collapsed {
top: 0;
margin-bottom: 1em;
}
tr.menu-disabled {
/* Use filter to emulate CSS3 opacity */
filter: alpha(opacity=50);
}
#header-region {
/* Because of the lack of min-height, we use height as an alternative */
height: 1em;
}
tr.taxonomy-term-preview {
filter: alpha(opacity=50);
}
#attach-hide label,
#uploadprogress div.message {
/* Fading elements in IE causes the text to bleed unless they have a background. */
background-color: #ffffff;
}
......@@ -40,8 +40,6 @@ function garland_preprocess_html(&$vars) {
if (theme_get_setting('garland_width') == 'fluid') {
$vars['classes_array'][] = 'fluid-width';
}
// Add conditional CSS for IE6.
drupal_add_css(path_to_theme() . '/fix-ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lt IE 7', '!IE' => FALSE), 'preprocess' => FALSE));
}
/**
......
ul.menu li,
ul.menu li a,
ul.links li,
ul.links li a,
.action-links,
#page {
height: 1%;
}
#block-system-main ul.admin-list li a {
height: 1px;
position: relative;
display: block;
}
#block-system-main ul.admin-list li div.description a {
display: inline;
}
......@@ -205,13 +205,6 @@ ul.inline:after {
display: none;
clear: none;
}
/* IE6 */
* html .form-item,
* html ul.links,
* html div.admin-panel .body,
* html .clearfix {
height: 1%;
}
/* IE7 */
*:first-child + html .form-item,
*:first-child + html ul.links,
......
......@@ -20,8 +20,6 @@ function seven_preprocess_html(&$vars) {
drupal_add_css(path_to_theme() . '/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
// Add conditional CSS for IE7 and below.
drupal_add_css(path_to_theme() . '/ie7.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
// Add conditional CSS for IE6.
drupal_add_css(path_to_theme() . '/ie6.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 6', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE));
}
/**
......
......@@ -87,7 +87,3 @@ div.vertical-tabs .vertical-tabs-panes legend {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
* html .vertical-tabs .form-type-textfield,
* html .vertical-tabs .form-textarea-wrapper {
width: 95%; /* IE6 */
}
......@@ -10,9 +10,7 @@
* This layout method works reasonably well, but shouldn't be used on a
* production site because it can break. For example, if an over-large image
* (one that is wider than 20% of the viewport) is in the left sidebar, the
* image will overlap with the #content to the right. The exception to this
* is IE6 which will just hide the navigation block completely in these
* instances due to a positioning bug.
* image will overlap with the #content to the right.
*/
#content,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment