Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
89d83c6f
Commit
89d83c6f
authored
Jan 22, 2012
by
Dries Buytaert
Browse files
- Patch
#1217788
by droplet: drop IE7 support from Drupal 8.x.
parent
eeed9ed8
Changes
10
Hide whitespace changes
Inline
Side-by-side
core/misc/tableheader.js
View file @
89d83c6f
...
...
@@ -98,10 +98,6 @@ Drupal.tableHeader.prototype.eventhandlerRecalculateStickyHeader = function (eve
// Resize header and its cell widths.
this
.
stickyHeaderCells
.
each
(
function
(
index
)
{
var
cellWidth
=
self
.
originalHeaderCells
.
eq
(
index
).
css
(
'
width
'
);
// Exception for IE7.
if
(
cellWidth
==
'
auto
'
)
{
cellWidth
=
self
.
originalHeaderCells
.
get
(
index
).
clientWidth
+
'
px
'
;
}
$
(
this
).
css
(
'
width
'
,
cellWidth
);
});
this
.
stickyTable
.
css
(
'
width
'
,
this
.
originalTable
.
css
(
'
width
'
));
...
...
core/misc/vertical-tabs.css
View file @
89d83c6f
...
...
@@ -2,12 +2,10 @@
div
.vertical-tabs
{
margin
:
1em
0
1em
15em
;
/* LTR */
border
:
1px
solid
#ccc
;
position
:
relative
;
/* IE7 */
}
.vertical-tabs
ul
.vertical-tabs-list
{
width
:
15em
;
list-style
:
none
;
list-style-image
:
none
;
/* IE7 */
border-top
:
1px
solid
#ccc
;
padding
:
0
;
margin
:
-1px
0
-1px
-15em
;
/* LTR */
...
...
@@ -29,7 +27,6 @@ fieldset.vertical-tabs-pane > legend {
border-top
:
0
;
padding
:
0
;
margin
:
0
;
min-width
:
0
;
/* IE7 */
}
.vertical-tabs
ul
.vertical-tabs-list
li
a
{
display
:
block
;
...
...
core/modules/book/book.theme-rtl.css
View file @
89d83c6f
...
...
@@ -11,9 +11,6 @@
float
:
right
;
text-align
:
right
;
}
.book-pager
.up
{
*
float
:
right
;
}
.book-pager
.next
{
float
:
left
;
text-align
:
left
;
...
...
core/modules/book/book.theme.css
View file @
89d83c6f
...
...
@@ -18,12 +18,8 @@
}
.book-pager
li
{
display
:
inline-block
;
*
display
:
inline
;
/* Prevents a line break caused by the float in .page-next in IE7. */
*
float
:
left
;
/* LTR */
list-style-type
:
none
;
vertical-align
:
top
;
zoom
:
1
;
}
.book-pager
.previous
{
text-align
:
left
;
/* LTR */
...
...
core/modules/overlay/overlay-parent.js
View file @
89d83c6f
...
...
@@ -421,10 +421,7 @@ Drupal.overlay.eventhandlerAlterDisplacedElements = function (event) {
$
(
this
.
iframeWindow
.
document
.
body
).
css
({
marginTop
:
Drupal
.
overlay
.
getDisplacement
(
'
top
'
),
marginBottom
:
Drupal
.
overlay
.
getDisplacement
(
'
bottom
'
)
})
// IE7 isn't reflowing the document immediately.
// @todo This might be fixed in a cleaner way.
.
addClass
(
'
overlay-trigger-reflow
'
).
removeClass
(
'
overlay-trigger-reflow
'
);
});
var
documentHeight
=
this
.
iframeWindow
.
document
.
body
.
clientHeight
;
var
documentWidth
=
this
.
iframeWindow
.
document
.
body
.
clientWidth
;
...
...
@@ -873,18 +870,6 @@ Drupal.overlay.getDisplacement = function (region) {
* the entire page.
*/
Drupal
.
overlay
.
makeDocumentUntabbable
=
function
(
context
)
{
// Manipulating tabindexes for the entire document is unacceptably slow in IE6
// and IE7, so in those browsers, the underlying page will still be reachable
// via the tab key. However, we still make the links within the Disable
// message unreachable, because the same message also exists within the
// child document. The duplicate copy in the underlying document is only for
// assisting screen-reader users navigating the document with reading commands
// that follow markup order rather than tab order.
if
(
jQuery
.
browser
.
msie
&&
parseInt
(
jQuery
.
browser
.
version
,
10
)
<
8
)
{
$
(
'
#overlay-disable-message a
'
,
context
).
attr
(
'
tabindex
'
,
-
1
);
return
;
}
context
=
context
||
document
.
body
;
var
$overlay
,
$tabbable
,
$hasTabindex
;
...
...
@@ -920,31 +905,12 @@ Drupal.overlay.makeDocumentUntabbable = function (context) {
* the entire page.
*/
Drupal
.
overlay
.
makeDocumentTabbable
=
function
(
context
)
{
// Manipulating tabindexes is unacceptably slow in IE6 and IE7. In those
// browsers, the underlying page was never made unreachable via tab, so
// there is no work to be done here.
if
(
jQuery
.
browser
.
msie
&&
parseInt
(
jQuery
.
browser
.
version
,
10
)
<
8
)
{
return
;
}
var
$needsTabindex
;
context
=
context
||
document
.
body
;
// Make the underlying document tabbable again by removing all existing
// tabindex attributes.
var
$tabindex
=
$
(
'
[tabindex]
'
,
context
);
if
(
jQuery
.
browser
.
msie
&&
parseInt
(
jQuery
.
browser
.
version
,
10
)
<
8
)
{
// removeAttr('tabindex') is broken in IE6-7, but the DOM function
// removeAttribute works.
var
i
;
var
length
=
$tabindex
.
length
;
for
(
i
=
0
;
i
<
length
;
i
++
)
{
$tabindex
[
i
].
removeAttribute
(
'
tabIndex
'
);
}
}
else
{
$tabindex
.
removeAttr
(
'
tabindex
'
);
}
$
(
'
[tabindex]
'
,
context
).
removeAttr
(
'
tabindex
'
);
// Restore the tabindex attributes that existed before the overlay was opened.
$needsTabindex
=
$
(
Drupal
.
overlay
.
_hasTabindex
,
context
);
...
...
core/modules/system/system.base.css
View file @
89d83c6f
...
...
@@ -227,7 +227,6 @@ html.js .js-hide {
*/
.element-invisible
{
position
:
absolute
!important
;
clip
:
rect
(
1px
1px
1px
1px
);
/* IE7 */
clip
:
rect
(
1px
,
1px
,
1px
,
1px
);
}
...
...
@@ -255,10 +254,6 @@ html.js .js-hide {
clear
:
both
;
}
.clearfix
{
zoom
:
1
;
/* hasLayout trigger to clear floats in IE */
}
/**
* Block-level HTML5 display definition.
*
...
...
core/themes/seven/ie.css
View file @
89d83c6f
/* IE7 renders legends in nested fieldsets without a width. */
fieldset
legend
{
height
:
1%
;
}
/* IE renders absolute positioned legend where fieldset content starts. */
fieldset
.fieldset-legend
{
left
:
0
;
...
...
core/themes/seven/ie7.css
deleted
100644 → 0
View file @
eeed9ed8
ul
.tabs.primary
{
padding
:
0
;
}
ul
.primary
li
,
ul
.primary
li
a
,
ul
.primary
li
.active
a
{
float
:
none
!important
;
display
:
inline
;
}
ul
.primary
li
,
ul
.primary
li
a
,
ul
.primary
li
a
.active
,
ul
.primary
li
a
:active
,
ul
.primary
li
a
:visited
,
ul
.primary
li
a
:hover
,
ul
.primary
li
.active
a
{
zoom
:
1
;
position
:
relative
;
}
ul
.admin-list
li
{
position
:
static
;
}
core/themes/seven/reset.css
View file @
89d83c6f
...
...
@@ -200,10 +200,3 @@ ul.inline:after {
display
:
none
;
clear
:
none
;
}
/* IE7 */
*
:first-child
+
html
.form-item
,
*
:first-child
+
html
ul
.links
,
*
:first-child
+
html
div
.admin-panel
.body
,
*
:first-child
+
html
.clearfix
{
min-height
:
1%
;
}
core/themes/seven/template.php
View file @
89d83c6f
...
...
@@ -18,8 +18,6 @@ function seven_preprocess_maintenance_page(&$vars) {
function
seven_preprocess_html
(
&
$vars
)
{
// Add conditional CSS for IE8 and below.
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
));
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment