More targeted background image styling for admin menu SVG icons. fixes #25147.
Built from https://develop.svn.wordpress.org/trunk@26671 git-svn-id: http://core.svn.wordpress.org/trunk@26561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2bac800656
commit
7f8584d37b
|
@ -1874,9 +1874,13 @@ form.upgrade .hint {
|
|||
width: 34px;
|
||||
height: 30px;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#adminmenu div.wp-menu-image.svg {
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
text-align: center;
|
||||
background-size: 20px auto;
|
||||
}
|
||||
|
||||
div.wp-menu-image:before {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1874,9 +1874,13 @@ form.upgrade .hint {
|
|||
width: 34px;
|
||||
height: 30px;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#adminmenu div.wp-menu-image.svg {
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
text-align: center;
|
||||
background-size: 20px auto;
|
||||
}
|
||||
|
||||
div.wp-menu-image:before {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -80,6 +80,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
|
|||
} elseif ( 0 === strpos( $item[6], 'data:image/svg+xml;base64,' ) ) {
|
||||
$img = '<br />';
|
||||
$img_style = ' style="background-image:url(\'' . esc_attr( $item[6] ) . '\')"';
|
||||
$img_class = ' svg';
|
||||
} elseif ( 0 === strpos( $item[6], 'dashicons-' ) ) {
|
||||
$img = '<br />';
|
||||
$img_class = ' dashicons ' . sanitize_html_class( $item[6] );
|
||||
|
|
Loading…
Reference in New Issue