About: Fix the WordPress badge.

`css-clean` (minifies our CSS) has an issue when using multiple backgrounds and background position together. Instead of relying on browser support for multiple backgrounds to display the WP logo as SVG, use the `.svg` CSS class.

Merges [30946] to the 4.1 branch.

Fixes #30735.

Built from https://develop.svn.wordpress.org/branches/4.1@30949


git-svn-id: http://core.svn.wordpress.org/branches/4.1@30938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2014-12-16 23:28:22 +00:00
parent 3f08968a01
commit 2fba9b2f63
4 changed files with 10 additions and 6 deletions

View File

@ -45,7 +45,6 @@
.wp-badge {
background: #0074a2 url(../images/w-logo-white.png?ver=20131202) no-repeat;
background: #0074a2, url(../images/wordpress-logo-white.svg?ver=20131110) no-repeat; /* multiple backgrounds are ignored by browsers that don't support SVGs */
background-position: center 24px;
-webkit-background-size: 85px 85px;
background-size: 85px 85px;
@ -63,6 +62,9 @@
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.svg .wp-badge {
background-image: url(../images/wordpress-logo-white.svg?ver=20131110);
}
.about-wrap .wp-badge {
position: absolute;
@ -474,4 +476,4 @@
.about-wrap .feature-list.finer-points p {
margin-right: 80px;
}
}
}

View File

@ -45,7 +45,6 @@
.wp-badge {
background: #0074a2 url(../images/w-logo-white.png?ver=20131202) no-repeat;
background: #0074a2, url(../images/wordpress-logo-white.svg?ver=20131110) no-repeat; /* multiple backgrounds are ignored by browsers that don't support SVGs */
background-position: center 24px;
-webkit-background-size: 85px 85px;
background-size: 85px 85px;
@ -63,6 +62,9 @@
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.svg .wp-badge {
background-image: url(../images/wordpress-logo-white.svg?ver=20131110);
}
.about-wrap .wp-badge {
position: absolute;
@ -474,4 +476,4 @@
.about-wrap .feature-list.finer-points p {
margin-left: 80px;
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long