mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-01-30 21:47:31 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@29518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a1aa297d82
commit
7de002f960
@ -612,7 +612,7 @@ li#wp-admin-bar-menu-toggle {
|
||||
|
||||
|
||||
/* Auto-folding of the admin menu */
|
||||
@media only screen and (max-width: 900px) {
|
||||
@media only screen and (max-width: 960px) {
|
||||
.auto-fold #wpcontent,
|
||||
.auto-fold #wpfooter {
|
||||
margin-left: 36px;
|
||||
|
||||
@ -193,10 +193,10 @@ $(document).ready( function() {
|
||||
respWidth = Math.max( window.innerWidth, document.documentElement.clientWidth );
|
||||
} else {
|
||||
// IE < 9 doesn't support @media CSS rules
|
||||
respWidth = 901;
|
||||
respWidth = 961;
|
||||
}
|
||||
|
||||
if ( respWidth && respWidth < 900 ) {
|
||||
if ( respWidth && respWidth < 960 ) {
|
||||
if ( body.hasClass('auto-fold') ) {
|
||||
body.removeClass('auto-fold').removeClass('folded');
|
||||
setUserSetting('unfold', 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user