Make WordPress Core

Changeset 29518


Ignore:
Timestamp:
08/17/2014 02:14:09 PM (10 years ago)
Author:
ocean90
Message:

Admin Menu: Auto fold the menu at 960px.

This gives us some more room at the post edit screen.

props vinod dalvi for initial patch.
fixes #28592.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/admin-menu.css

    r29502 r29518  
    613613
    614614/* Auto-folding of the admin menu */
    615 @media only screen and (max-width: 900px) {
     615@media only screen and (max-width: 960px) {
    616616    .auto-fold #wpcontent,
    617617    .auto-fold #wpfooter {
  • trunk/src/wp-admin/js/common.js

    r29280 r29518  
    194194        } else {
    195195            // IE < 9 doesn't support @media CSS rules
    196             respWidth = 901;
    197         }
    198 
    199         if ( respWidth && respWidth < 900 ) {
     196            respWidth = 961;
     197        }
     198
     199        if ( respWidth && respWidth < 960 ) {
    200200            if ( body.hasClass('auto-fold') ) {
    201201                body.removeClass('auto-fold').removeClass('folded');
Note: See TracChangeset for help on using the changeset viewer.