diff --git a/wp-admin/css/wp-admin.dev.css b/wp-admin/css/wp-admin.dev.css index cb7f9f890d..f0d8706b83 100644 --- a/wp-admin/css/wp-admin.dev.css +++ b/wp-admin/css/wp-admin.dev.css @@ -1892,8 +1892,11 @@ strong .post-com-count { 8.0 - Layout Blocks ------------------------------------------------------------------------------*/ -body.admin-bar { +html.wp-toolbar { padding-top: 28px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } .narrow { diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index b9a0f65ddb..6ad2eec96c 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1672,13 +1672,14 @@ function get_submit_button( $text = null, $type = 'primary', $name = 'submit', $ } function _wp_admin_html_begin() { + $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : ''; ?> - > + >