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.
Built from https://develop.svn.wordpress.org/trunk@29518


git-svn-id: http://core.svn.wordpress.org/trunk@29294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-08-17 14:15:17 +00:00
parent 4dc4277a60
commit 27e564113d
6 changed files with 7 additions and 7 deletions

View File

@ -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-right: 36px;

View File

@ -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;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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);

File diff suppressed because one or more lines are too long