mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01: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. 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:
parent
4dc4277a60
commit
27e564113d
@ -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;
|
||||
|
@ -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;
|
||||
|
2
wp-admin/css/wp-admin-rtl.min.css
vendored
2
wp-admin/css/wp-admin-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/css/wp-admin.min.css
vendored
2
wp-admin/css/wp-admin.min.css
vendored
File diff suppressed because one or more lines are too long
@ -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);
|
||||
|
2
wp-admin/js/common.min.js
vendored
2
wp-admin/js/common.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user