WordPress.org

Make WordPress Core

Changeset 21025


Ignore:
Timestamp:
06/07/2012 10:05:01 PM (9 years ago)
Author:
nacin
Message:

Prevent a scrollbar in the admin caused by padding given to the toolbar. props SergeyBiryukov, ocean90. fixes #19196.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.dev.css

    r21014 r21025  
    18931893------------------------------------------------------------------------------*/
    18941894
    1895 body.admin-bar {
     1895html.wp-toolbar {
    18961896    padding-top: 28px;
     1897    -webkit-box-sizing: border-box;
     1898    -moz-box-sizing: border-box;
     1899    box-sizing: border-box;
    18971900}
    18981901
  • trunk/wp-admin/includes/template.php

    r20891 r21025  
    16731673
    16741674function _wp_admin_html_begin() {
     1675    $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
    16751676?>
    16761677<!DOCTYPE html>
    16771678<!--[if IE 8]>
    1678 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
     1679<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    16791680<![endif]-->
    16801681<!--[if !(IE 8) ]><!-->
    1681 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
     1682<html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    16821683<!--<![endif]-->
    16831684<head>
Note: See TracChangeset for help on using the changeset viewer.