Skip to content

Commit 70a6b63

Browse files
committed
IE8 doesn't support ::before and ::after pseudo-elements. Replace them with :before and :after.
props andrezrv, DrewAPicture, ocean90. fixes #28082. git-svn-id: https://develop.svn.wordpress.org/trunk@29314 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 41360a0 commit 70a6b63

5 files changed

Lines changed: 32 additions & 24 deletions

File tree

src/wp-admin/css/common.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ h3.dashboard-widget-title small,
746746
}
747747

748748
/* @todo can we combine these into a class or use an existing dashicon one? */
749-
#welcome-panel.welcome-panel .welcome-panel-close::before,
749+
#welcome-panel.welcome-panel .welcome-panel-close:before,
750750
.tagchecklist span a:before,
751751
#bulk-titles div a:before {
752752
background: none;
@@ -756,12 +756,20 @@ h3.dashboard-widget-title small,
756756
font: normal 16px/1 'dashicons';
757757
speak: none;
758758
height: 20px;
759-
margin: 2px 0;
760759
text-align: center;
761760
width: 20px;
762761
-webkit-font-smoothing: antialiased !important;
763762
}
764763

764+
#welcome-panel.welcome-panel .welcome-panel-close:before {
765+
margin: 0;
766+
}
767+
768+
.tagchecklist span a:before,
769+
#bulk-titles div a:before {
770+
margin: 2px 0;
771+
}
772+
765773
#welcome-panel.welcome-panel .welcome-panel-close:hover:before,
766774
.tagchecklist span a:hover:before,
767775
#bulk-titles div a:hover:before {

src/wp-admin/css/customize-controls.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ body {
111111
background: #f5f5f5;
112112
}
113113

114-
#customize-theme-controls .control-section:hover > .accordion-section-title::after,
115-
#customize-theme-controls .control-section .accordion-section-title:hover::after,
116-
#customize-theme-controls .control-section.open .accordion-section-title::after,
117-
#customize-theme-controls .control-section .accordion-section-title:focus::after {
114+
#customize-theme-controls .control-section:hover > .accordion-section-title:after,
115+
#customize-theme-controls .control-section .accordion-section-title:hover:after,
116+
#customize-theme-controls .control-section.open .accordion-section-title:after,
117+
#customize-theme-controls .control-section .accordion-section-title:focus:after {
118118
color: #555555;
119119
}
120120

src/wp-admin/css/dashboard.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ h3.dashboard-widget-title small a:hover {
168168
line-height: 1;
169169
}
170170

171-
#welcome-panel.welcome-panel .welcome-panel-close::before {
171+
#welcome-panel.welcome-panel .welcome-panel-close:before {
172172
position: absolute;
173173
left: -18px;
174174
margin-top: -2px;
@@ -1128,7 +1128,7 @@ a.rsswidget {
11281128
}
11291129

11301130
/* Make the close icon larger for tappability. */
1131-
#welcome-panel.welcome-panel .welcome-panel-close::before {
1131+
#welcome-panel.welcome-panel .welcome-panel-close:before {
11321132
font-size: 20px;
11331133
margin: 0;
11341134
}

src/wp-admin/css/revisions.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ table.diff .diff-addedline ins {
408408
z-index: 10000;
409409
}
410410

411-
.arrow::after {
411+
.arrow:after {
412412
z-index: 9999;
413413
background-color: #fff;
414414
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);

src/wp-includes/css/media-views.css

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@
15881588
color: #d54e21;
15891589
}
15901590

1591-
.attachment-info .advanced-toggle::after {
1591+
.attachment-info .advanced-toggle:after {
15921592
font: normal 20px/1 'dashicons';
15931593
speak: none;
15941594
vertical-align: top;
@@ -1598,7 +1598,7 @@
15981598
display: inline-block;
15991599
margin-top: -2px;
16001600
}
1601-
.attachment-info .advanced-visible .advanced-toggle::after {
1601+
.attachment-info .advanced-visible .advanced-toggle:after {
16021602
content: '\f142';
16031603
}
16041604

@@ -1855,7 +1855,7 @@
18551855
display: block;
18561856
}
18571857

1858-
.image-details .advanced-toggle::after {
1858+
.image-details .advanced-toggle:after {
18591859
font: normal 20px/1 'dashicons';
18601860
speak: none;
18611861
vertical-align: top;
@@ -1866,7 +1866,7 @@
18661866
margin-top: -2px;
18671867
}
18681868

1869-
.image-details .advanced-visible .advanced-toggle::after {
1869+
.image-details .advanced-visible .advanced-toggle:after {
18701870
content: '\f142';
18711871
}
18721872

@@ -1897,10 +1897,10 @@
18971897
margin: 26px 6px 0 6px;
18981898
}
18991899

1900-
.image-details .custom-size::after {
1901-
content: '';
1900+
.image-details .custom-size:after {
1901+
content: '';
19021902
display: table;
1903-
clear: both;
1903+
clear: both;
19041904
}
19051905

19061906
.media-embed .thumbnail {
@@ -2534,15 +2534,15 @@
25342534
(-webkit-min-device-pixel-ratio: 1.25),
25352535
(min-resolution: 120dpi) {
25362536

2537-
.media-modal-icon {
2538-
background-image: url(../images/uploader-icons-2x.png);
2539-
-webkit-background-size: 134px 15px;
2540-
background-size: 134px 15px;
2541-
}
2537+
.media-modal-icon {
2538+
background-image: url(../images/uploader-icons-2x.png);
2539+
-webkit-background-size: 134px 15px;
2540+
background-size: 134px 15px;
2541+
}
25422542

2543-
.media-frame .spinner {
2544-
background-image: url(../images/spinner-2x.gif);
2545-
}
2543+
.media-frame .spinner {
2544+
background-image: url(../images/spinner-2x.gif);
2545+
}
25462546
}
25472547

25482548

0 commit comments

Comments
 (0)